Cloud Channel API . products . skus

Instance Methods

close()

Close httplib2 connections.

list(parent, account=None, languageCode=None, pageSize=None, pageToken=None, x__xgafv=None)

Lists the SKUs for a product the reseller is authorized to sell. Possible error codes: * INVALID_ARGUMENT: Required request parameters are missing or invalid.

list_next(previous_request, previous_response)

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
list(parent, account=None, languageCode=None, pageSize=None, pageToken=None, x__xgafv=None)
Lists the SKUs for a product the reseller is authorized to sell. Possible error codes: * INVALID_ARGUMENT: Required request parameters are missing or invalid.

Args:
  parent: string, Required. The resource name of the Product to list SKUs for. Parent uses the format: products/{product_id}. Supports products/- to retrieve SKUs for all products. (required)
  account: string, Required. Resource name of the reseller. Format: accounts/{account_id}.
  languageCode: string, Optional. The BCP-47 language code. For example, "en-US". The response will localize in the corresponding language code, if specified. The default value is "en-US".
  pageSize: integer, Optional. Requested page size. Server might return fewer results than requested. If unspecified, returns at most 100 SKUs. The maximum value is 1000; the server will coerce values above 1000.
  pageToken: string, Optional. A token for a page of results other than the first page. Optional.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for ListSkus.
  "nextPageToken": "A String", # A token to retrieve the next page of results.
  "skus": [ # The list of SKUs requested.
    { # Represents a product's purchasable Stock Keeping Unit (SKU). SKUs represent the different variations of the product. For example, Google Workspace Business Standard and Google Workspace Business Plus are Google Workspace product SKUs.
      "marketingInfo": { # Represents the marketing information for a Product, SKU or Offer. # Marketing information for the SKU.
        "defaultLogo": { # Represents media information. # Default logo.
          "content": "A String", # URL of the media.
          "title": "A String", # Title of the media.
          "type": "A String", # Type of the media.
        },
        "description": "A String", # Human readable description. Description can contain HTML.
        "displayName": "A String", # Human readable name.
      },
      "name": "A String", # Resource Name of the SKU. Format: products/{product_id}/skus/{sku_id}
      "product": { # A Product is the entity a customer uses when placing an order. For example, Google Workspace, Google Voice, etc. # Product the SKU is associated with.
        "marketingInfo": { # Represents the marketing information for a Product, SKU or Offer. # Marketing information for the product.
          "defaultLogo": { # Represents media information. # Default logo.
            "content": "A String", # URL of the media.
            "title": "A String", # Title of the media.
            "type": "A String", # Type of the media.
          },
          "description": "A String", # Human readable description. Description can contain HTML.
          "displayName": "A String", # Human readable name.
        },
        "name": "A String", # Resource Name of the Product. Format: products/{product_id}
      },
    },
  ],
}
list_next(previous_request, previous_response)
Retrieves the next page of results.

Args:
  previous_request: The request for the previous page. (required)
  previous_response: The response from the request for the previous page. (required)

Returns:
  A request object that you can call 'execute()' on to request the next
  page. Returns None if there are no more items in the collection.