Infrastructure Manager API . projects . locations . terraformVersions

Instance Methods

close()

Close httplib2 connections.

get(name, x__xgafv=None)

Gets details about a TerraformVersion.

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

Lists TerraformVersions in a given project and location.

list_next()

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
get(name, x__xgafv=None)
Gets details about a TerraformVersion.

Args:
  name: string, Required. The name of the TerraformVersion. Format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}' (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A TerraformVersion represents the support state the corresponding Terraform version.
  "deprecateTime": "A String", # Output only. When the version is deprecated.
  "name": "A String", # Identifier. The version name is in the format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'.
  "obsoleteTime": "A String", # Output only. When the version is obsolete.
  "state": "A String", # Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE.
  "supportTime": "A String", # Output only. When the version is supported.
}
list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)
Lists TerraformVersions in a given project and location.

Args:
  parent: string, Required. The parent in whose context the TerraformVersions are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}'. (required)
  filter: string, Optional. Lists the TerraformVersions that match the filter expression. A filter expression filters the resources listed in the response. The expression must be of the form '{field} {operator} {value}' where operators: '<', '>', '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS operator which is roughly synonymous with equality). {field} can refer to a proto or JSON field, or a synthetic field. Field names can be camelCase or snake_case.
  orderBy: string, Optional. Field to use to sort the list.
  pageSize: integer, Optional. When requesting a page of resources, 'page_size' specifies number of resources to return. If unspecified, at most 500 will be returned. The maximum value is 1000.
  pageToken: string, Optional. Token returned by previous call to 'ListTerraformVersions' which specifies the position in the list from where to continue listing the resources.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The response message for the `ListTerraformVersions` method.
  "nextPageToken": "A String", # Token to be supplied to the next ListTerraformVersions request via `page_token` to obtain the next set of results.
  "terraformVersions": [ # List of TerraformVersions.
    { # A TerraformVersion represents the support state the corresponding Terraform version.
      "deprecateTime": "A String", # Output only. When the version is deprecated.
      "name": "A String", # Identifier. The version name is in the format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'.
      "obsoleteTime": "A String", # Output only. When the version is obsolete.
      "state": "A String", # Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE.
      "supportTime": "A String", # Output only. When the version is supported.
    },
  ],
  "unreachable": [ # Unreachable resources, if any.
    "A String",
  ],
}
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.