Cloud Billing API . billingAccounts . services

Instance Methods

close()

Close httplib2 connections.

get(name, x__xgafv=None)

Gets a Google Cloud service visible to a billing account.

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

Lists services 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 Google Cloud service visible to a billing account.

Args:
  name: string, Required. The name of the billing account service to retrieve. Format: billingAccounts/{billing_account}/services/{service} (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 Google Cloud service visible to a billing account.
  "displayName": "A String", # Description of the BillingAccountService. Example: "BigQuery", "Compute Engine".
  "name": "A String", # Resource name for the BillingAccountService. Example: "billingAccounts/012345-567890-ABCDEF/services/DA34-426B-A397".
  "serviceId": "A String", # Identifier for the service. It is the string after the collection identifier "services/". Example: "DA34-426B-A397".
}
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists services visible to a billing account.

Args:
  parent: string, Required. The billing account to list billing account service from. Format: billingAccounts/{billing_account} (required)
  pageSize: integer, Maximum number of billing account service 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 ListBillingAccountServices 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 ListBillingAccountServices.
  "billingAccountServices": [ # The returned billing account services.
    { # Encapsulates a Google Cloud service visible to a billing account.
      "displayName": "A String", # Description of the BillingAccountService. Example: "BigQuery", "Compute Engine".
      "name": "A String", # Resource name for the BillingAccountService. Example: "billingAccounts/012345-567890-ABCDEF/services/DA34-426B-A397".
      "serviceId": "A String", # Identifier for the service. It is the string after the collection identifier "services/". Example: "DA34-426B-A397".
    },
  ],
  "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.