@swamp/gcp/reseller
v2026.04.23.1
Google Cloud reseller infrastructure models
Repository
https://github.com/systeminit/swamp-extensions
Labels
gcpgoogle-cloudresellercloudinfrastructure
Contents
Quality score
Verified by SwampHow well-documented and verifiable this extension is.
Grade A
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types1/1earned
- Has description1/1earned
- At least one platform tag (or universal)1/1earned
- Two or more platform tags (or universal)1/1earned
- License declared1/1earned
- Verified public repository2/2earned
Install
$ swamp extension pull @swamp/gcp/reseller@swamp/gcp/reseller/customersv2026.04.23.1customers.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| alternateEmail? | string | Like the "Customer email" in the reseller tools, this email is the secondary contact used if something happens to the customer\ |
| customerDomain? | string | The customer's primary domain name string. `customerDomain` is required when creating a new customer. Do not include the `www` prefix in the domain when adding a customer. |
| customerDomainVerified? | boolean | Whether the customer's primary domain has been verified. |
| customerId? | string | This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google. |
| customerType? | enum | Identifies the type of the customer. Acceptable values include: * `domain`: Implies a domain-verified customer (default). * `team`: Implies an email-verified customer. For more information, see [managed teams](https://support.google.com/a/users/answer/9939479). |
| phoneNumber? | string | Customer contact phone number. Must start with "+" followed by the country code. The rest of the number can be contiguous numbers or respect the phone local format conventions, but it must be a real phone number and not, for example, "123". This field is silently ignored if invalid. |
| postalAddress? | object | JSON template for address of a customer. |
| primaryAdmin? | object | JSON template for primary admin in case of TEAM customers |
| resourceUiUrl? | string | URL to customer's Admin console dashboard. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task in the Admin console. |
| customerAuthToken? | string | The `customerAuthToken` query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer's subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the administrator help center. |
createCreate a customers
getGet a customers
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the customers |
updateUpdate customers attributes
syncSync customers state from GCP
Resources
state(infinite)— When a Google customer's account is registered with a reseller, the customer'...
@swamp/gcp/reseller/subscriptionsv2026.04.23.1subscriptions.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| billingMethod? | string | Read-only field that returns the current billing method for a subscription. |
| creationTime? | string | The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter. |
| customerDomain? | string | Primary domain name of the customer |
| customerId? | string | This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google. |
| dealCode? | string | Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty. |
| plan? | object | The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API"s payment plans, see the API concepts. |
| purchaseOrderId? | string | This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters. |
| renewalSettings? | object | JSON template for a subscription renewal settings. |
| resourceUiUrl? | string | URL to customer's Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console. |
| seats? | object | JSON template for subscription seats. |
| skuId? | string | A required property. The `skuId` is a unique system identifier for a product's SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs. |
| skuName? | string | Read-only external display name for a product's SKU assigned to a customer in the subscription. SKU names are subject to change at Google's discretion. For products and SKUs available in this version of the API, see Product and SKU IDs. |
| status? | string | This is an optional property. |
| subscriptionId? | string | The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions. |
| suspensionReasons? | array | Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription's `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer's commitment ended and their service was canc |
| transferInfo? | object | Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer. |
| trialSettings? | object | The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts. |
| action? | string | The intented insert action. Advised to set this when the customer already has a subscription for a different SKU in the same product. |
| customerAuthToken? | string | The `customerAuthToken` query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer's subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the administrator help center. |
| sourceSkuId? | string | The sku_id of the existing subscription to be upgraded or downgraded. This is required when action is SWITCH. |
createCreate a subscriptions
getGet a subscriptions
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the subscriptions |
deleteDelete the subscriptions
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the subscriptions |
syncSync subscriptions state from GCP
activateactivate
change_planchange plan
| Argument | Type | Description |
|---|---|---|
| dealCode? | any | |
| kind? | any | |
| planName? | any | |
| purchaseOrderId? | any | |
| seats? | any |
change_renewal_settingschange renewal settings
| Argument | Type | Description |
|---|---|---|
| kind? | any | |
| renewalType? | any |
change_seatschange seats
| Argument | Type | Description |
|---|---|---|
| kind? | any | |
| licensedNumberOfSeats? | any | |
| maximumNumberOfSeats? | any | |
| numberOfSeats? | any |
start_paid_servicestart paid service
suspendsuspend
Resources
state(infinite)— JSON template for a subscription.
2026.04.03.326.2 KBApr 3, 2026
Google Cloud reseller infrastructure models
Release Notes
- Updated: customers, subscriptions
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-cloudresellercloudinfrastructure
2026.04.03.125.9 KBApr 3, 2026
Google Cloud reseller infrastructure models
Release Notes
- Updated: customers, subscriptions
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-cloudresellercloudinfrastructure
2026.04.02.223.9 KBApr 2, 2026
Google Cloud reseller infrastructure models
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-cloudresellercloudinfrastructure
2026.03.27.126.6 KBMar 27, 2026
Google Cloud reseller infrastructure models
Release Notes
- Added: customers, subscriptions
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-cloudresellercloudinfrastructure