Google Cloud RuntimeConfig API . projects . configs

Instance Methods

operations()

Returns the operations Resource.

variables()

Returns the variables Resource.

waiters()

Returns the waiters Resource.

create(parent=None, body, x__xgafv=None)

Creates a new RuntimeConfig resource. The configuration name must be

delete(name=None, x__xgafv=None)

Deletes a RuntimeConfig resource.

get(name=None, x__xgafv=None)

Gets information about a RuntimeConfig resource.

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

Lists all the RuntimeConfig resources within project.

list_next(previous_request, previous_response)

Retrieves the next page of results.

update(name=None, body, x__xgafv=None)

Updates a RuntimeConfig resource. The configuration must exist beforehand.

Method Details

create(parent=None, body, x__xgafv=None)
Creates a new RuntimeConfig resource. The configuration name must be
unique within project.

Args:
  parent: string, The [project ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848)
for this request, in the format `projects/[PROJECT_ID]`. (required)
  body: object, The request body. (required)
    The object takes the form of:

{ # A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig
      # service. A RuntimeConfig resource consists of metadata and a hierarchy of
      # variables.
    "description": "A String", # An optional description of the RuntimeConfig object.
        # The length of the description must be less than 256 bytes.
    "name": "A String", # The resource name of a runtime config. The name must have the format:
        # 
        #     projects/[PROJECT_ID]/configs/[CONFIG_NAME]
        # 
        # The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an
        # arbitrary name that matches RFC 1035 segment specification. The length of
        # `[CONFIG_NAME]` must be less than 64 bytes.
        # 
        # You pick the RuntimeConfig resource name, but the server will validate that
        # the name adheres to this format. After you create the resource, you cannot
        # change the resource's name.
  }

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig
        # service. A RuntimeConfig resource consists of metadata and a hierarchy of
        # variables.
      "description": "A String", # An optional description of the RuntimeConfig object.
          # The length of the description must be less than 256 bytes.
      "name": "A String", # The resource name of a runtime config. The name must have the format:
          #
          #     projects/[PROJECT_ID]/configs/[CONFIG_NAME]
          #
          # The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an
          # arbitrary name that matches RFC 1035 segment specification. The length of
          # `[CONFIG_NAME]` must be less than 64 bytes.
          #
          # You pick the RuntimeConfig resource name, but the server will validate that
          # the name adheres to this format. After you create the resource, you cannot
          # change the resource's name.
    }
delete(name=None, x__xgafv=None)
Deletes a RuntimeConfig resource.

Args:
  name: string, The RuntimeConfig resource to delete, in the format:

`projects/[PROJECT_ID]/configs/[CONFIG_NAME]` (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A generic empty message that you can re-use to avoid defining duplicated
      # empty messages in your APIs. A typical example is to use it as the request
      # or the response type of an API method. For instance:
      #
      #     service Foo {
      #       rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
      #     }
      #
      # The JSON representation for `Empty` is empty JSON object `{}`.
  }
get(name=None, x__xgafv=None)
Gets information about a RuntimeConfig resource.

Args:
  name: string, The name of the RuntimeConfig resource to retrieve, in the format:

`projects/[PROJECT_ID]/configs/[CONFIG_NAME]` (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig
        # service. A RuntimeConfig resource consists of metadata and a hierarchy of
        # variables.
      "description": "A String", # An optional description of the RuntimeConfig object.
          # The length of the description must be less than 256 bytes.
      "name": "A String", # The resource name of a runtime config. The name must have the format:
          #
          #     projects/[PROJECT_ID]/configs/[CONFIG_NAME]
          #
          # The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an
          # arbitrary name that matches RFC 1035 segment specification. The length of
          # `[CONFIG_NAME]` must be less than 64 bytes.
          #
          # You pick the RuntimeConfig resource name, but the server will validate that
          # the name adheres to this format. After you create the resource, you cannot
          # change the resource's name.
    }
list(parent=None, pageToken=None, x__xgafv=None, pageSize=None)
Lists all the RuntimeConfig resources within project.

Args:
  parent: string, The [project ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848)
for this request, in the format `projects/[PROJECT_ID]`. (required)
  pageToken: string, Specifies a page token to use. Set `pageToken` to a `nextPageToken`
returned by a previous list request to get the next page of results.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
  pageSize: integer, Specifies the number of results to return per page. If there are fewer
elements than the specified number, returns all elements.

Returns:
  An object of the form:

    { # `ListConfigs()` returns the following response. The order of returned
      # objects is arbitrary; that is, it is not ordered in any particular way.
    "nextPageToken": "A String", # This token allows you to get the next page of results for list requests.
        # If the number of results is larger than `pageSize`, use the `nextPageToken`
        # as a value for the query parameter `pageToken` in the next list request.
        # Subsequent list requests will have their own `nextPageToken` to continue
        # paging through the results
    "configs": [ # A list of the configurations in the project. The order of returned
        # objects is arbitrary; that is, it is not ordered in any particular way.
      { # A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig
            # service. A RuntimeConfig resource consists of metadata and a hierarchy of
            # variables.
          "description": "A String", # An optional description of the RuntimeConfig object.
              # The length of the description must be less than 256 bytes.
          "name": "A String", # The resource name of a runtime config. The name must have the format:
              #
              #     projects/[PROJECT_ID]/configs/[CONFIG_NAME]
              #
              # The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an
              # arbitrary name that matches RFC 1035 segment specification. The length of
              # `[CONFIG_NAME]` must be less than 64 bytes.
              #
              # You pick the RuntimeConfig resource name, but the server will validate that
              # the name adheres to this format. After you create the resource, you cannot
              # change the resource's name.
        },
    ],
  }
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.
    
update(name=None, body, x__xgafv=None)
Updates a RuntimeConfig resource. The configuration must exist beforehand.

Args:
  name: string, The name of the RuntimeConfig resource to update, in the format:

`projects/[PROJECT_ID]/configs/[CONFIG_NAME]` (required)
  body: object, The request body. (required)
    The object takes the form of:

{ # A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig
      # service. A RuntimeConfig resource consists of metadata and a hierarchy of
      # variables.
    "description": "A String", # An optional description of the RuntimeConfig object.
        # The length of the description must be less than 256 bytes.
    "name": "A String", # The resource name of a runtime config. The name must have the format:
        # 
        #     projects/[PROJECT_ID]/configs/[CONFIG_NAME]
        # 
        # The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an
        # arbitrary name that matches RFC 1035 segment specification. The length of
        # `[CONFIG_NAME]` must be less than 64 bytes.
        # 
        # You pick the RuntimeConfig resource name, but the server will validate that
        # the name adheres to this format. After you create the resource, you cannot
        # change the resource's name.
  }

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig
        # service. A RuntimeConfig resource consists of metadata and a hierarchy of
        # variables.
      "description": "A String", # An optional description of the RuntimeConfig object.
          # The length of the description must be less than 256 bytes.
      "name": "A String", # The resource name of a runtime config. The name must have the format:
          #
          #     projects/[PROJECT_ID]/configs/[CONFIG_NAME]
          #
          # The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an
          # arbitrary name that matches RFC 1035 segment specification. The length of
          # `[CONFIG_NAME]` must be less than 64 bytes.
          #
          # You pick the RuntimeConfig resource name, but the server will validate that
          # the name adheres to this format. After you create the resource, you cannot
          # change the resource's name.
    }