Cloud Billing API . billingAccounts . skus

Instance Methods

price()

Returns the price Resource.

prices()

Returns the prices Resource.

close()

Close httplib2 connections.

get(name, x__xgafv=None)

Gets a SKU visible to a billing account.

list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)

Lists SKUs visible to a billing account.

list_next()

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
get(name, x__xgafv=None)
Gets a SKU visible to a billing account.

Args:
  name: string, Required. The name of the billing account SKU to retrieve. Format: billingAccounts/{billing_account}/skus/{sku} (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Encapsulates a stock keeping unit (SKU) visible to a billing account. A SKU distinctly identifies a resource that you can purchase. For a list of available SKUs, see [SKUs](https://cloud.google.com/skus).
  "billingAccountService": "A String", # BillingAccountService that the BillingAccountSku belongs to.
  "displayName": "A String", # Description of the BillingAccountSku. Example: "A2 Instance Core running in Hong Kong".
  "geoTaxonomy": { # Encapsulates geographic metadata, such as regions and multi-regions like `us-east4` or `European Union`. # Geographic metadata that applies to the BillingAccountSku.
    "globalMetadata": { # Encapsulates a global geographic taxonomy. # Global geographic metadata with no regions.
    },
    "multiRegionalMetadata": { # Encapsulates a multi-regional geographic taxonomy. # Multi-regional geographic metadata with 2 or more regions.
      "regions": [ # Google Cloud regions associated with the multi-regional geographic taxonomy.
        { # Encapsulates a Google Cloud region.
          "region": "A String", # Description of a Google Cloud region. Example: "us-west2".
        },
      ],
    },
    "regionalMetadata": { # Encapsulates a regional geographic taxonomy. # Regional geographic metadata with 1 region.
      "region": { # Encapsulates a Google Cloud region. # Google Cloud region associated with the regional geographic taxonomy.
        "region": "A String", # Description of a Google Cloud region. Example: "us-west2".
      },
    },
    "type": "A String", # Type of geographic taxonomy associated with the billing account SKU.
  },
  "name": "A String", # Resource name for the BillingAccountSku. Example: "billingAccounts/012345-567890-ABCDEF/skus/AA95-CD31-42FE".
  "productTaxonomy": { # Encapsulates product categories, such as `Serverless`, `Cloud Run`, `TaskQueue`, and others. # List of product categories that apply to the BillingAccountSku.
    "taxonomyCategories": [ # All product categories that the billing account SKU belong to.
      { # Encapsulates a product category.
        "category": "A String", # Name of the product category.
      },
    ],
  },
  "skuId": "A String", # Unique identifier for the SKU. It is the string after the collection identifier "skus/" Example: "AA95-CD31-42FE".
}
list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)
Lists SKUs visible to a billing account.

Args:
  parent: string, Required. The billing account to list billing account SKU from. Format: billingAccounts/{billing_account} (required)
  filter: string, Options for how to filter the billing account SKUs. Currently, only filter on `billing_account_service` is supported. Only !=, = operators are supported. Examples: - billing_account_service = "billingAccounts/012345-567890-ABCDEF/services/DA34-426B-A397"
  pageSize: integer, Maximum number of billing account SKUs to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.
  pageToken: string, Page token received from a previous ListBillingAccountSkus call to retrieve the next page of results. If this field is empty, the first page is returned.
  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 ListBillingAccountSkus.
  "billingAccountSkus": [ # The returned billing account SKUs.
    { # Encapsulates a stock keeping unit (SKU) visible to a billing account. A SKU distinctly identifies a resource that you can purchase. For a list of available SKUs, see [SKUs](https://cloud.google.com/skus).
      "billingAccountService": "A String", # BillingAccountService that the BillingAccountSku belongs to.
      "displayName": "A String", # Description of the BillingAccountSku. Example: "A2 Instance Core running in Hong Kong".
      "geoTaxonomy": { # Encapsulates geographic metadata, such as regions and multi-regions like `us-east4` or `European Union`. # Geographic metadata that applies to the BillingAccountSku.
        "globalMetadata": { # Encapsulates a global geographic taxonomy. # Global geographic metadata with no regions.
        },
        "multiRegionalMetadata": { # Encapsulates a multi-regional geographic taxonomy. # Multi-regional geographic metadata with 2 or more regions.
          "regions": [ # Google Cloud regions associated with the multi-regional geographic taxonomy.
            { # Encapsulates a Google Cloud region.
              "region": "A String", # Description of a Google Cloud region. Example: "us-west2".
            },
          ],
        },
        "regionalMetadata": { # Encapsulates a regional geographic taxonomy. # Regional geographic metadata with 1 region.
          "region": { # Encapsulates a Google Cloud region. # Google Cloud region associated with the regional geographic taxonomy.
            "region": "A String", # Description of a Google Cloud region. Example: "us-west2".
          },
        },
        "type": "A String", # Type of geographic taxonomy associated with the billing account SKU.
      },
      "name": "A String", # Resource name for the BillingAccountSku. Example: "billingAccounts/012345-567890-ABCDEF/skus/AA95-CD31-42FE".
      "productTaxonomy": { # Encapsulates product categories, such as `Serverless`, `Cloud Run`, `TaskQueue`, and others. # List of product categories that apply to the BillingAccountSku.
        "taxonomyCategories": [ # All product categories that the billing account SKU belong to.
          { # Encapsulates a product category.
            "category": "A String", # Name of the product category.
          },
        ],
      },
      "skuId": "A String", # Unique identifier for the SKU. It is the string after the collection identifier "skus/" Example: "AA95-CD31-42FE".
    },
  ],
  "nextPageToken": "A String", # Token that can be sent as `page_token` in the subsequent request to retrieve the next page. If this field is empty, there are no subsequent pages.
}
list_next()
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.