Compute Engine API (compute:v1)

2022-09-01

7 new methods

Additions

    Methods
  • compute.globalAddresses.setLabels

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/compute
    • Path: projects/{project}/global/addresses/{resource}/setLabels

      HTTP Method: POST

      Description: Sets the labels on a GlobalAddress. To learn more about labels, read the Labeling Resources documentation.

      Parameters:

        project

          Required: Yes

          Type: string

          Location: path

          Pattern: (?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))

          Description: Project ID for this request.

        resource

          Type: string

          Description: Name or id of the resource for this request.

          Location: path

          Required: Yes

          Pattern: [a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}

      Parameter Order:

    • project
    • resource
    • Flat Path: projects/{project}/global/addresses/{resource}/setLabels

  • compute.vpnTunnels.setLabels

      Description: Sets the labels on a VpnTunnel. To learn more about labels, read the Labeling Resources documentation.

      Path: projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels

      Parameters:

        project

          Description: Project ID for this request.

          Required: Yes

          Pattern: (?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))

          Location: path

          Type: string

        resource

          Description: Name or id of the resource for this request.

          Pattern: [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}

          Location: path

          Required: Yes

          Type: string

        region

          Required: Yes

          Type: string

          Location: path

          Pattern: [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?

          Description: The region for this request.

        requestId

          Type: string

          Description: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).

          Location: query

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/compute
    • Parameter Order:

    • project
    • region
    • resource
    • HTTP Method: POST

      Flat Path: projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels

  • compute.addresses.setLabels

      Path: projects/{project}/regions/{region}/addresses/{resource}/setLabels

      Parameters:

        project

          Location: path

          Required: Yes

          Description: Project ID for this request.

          Pattern: (?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))

          Type: string

        requestId

          Description: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).

          Location: query

          Type: string

        resource

          Pattern: [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}

          Type: string

          Required: Yes

          Location: path

          Description: Name or id of the resource for this request.

        region

          Pattern: [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?

          Required: Yes

          Description: The region for this request.

          Type: string

          Location: path

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/compute
    • HTTP Method: POST

      Flat Path: projects/{project}/regions/{region}/addresses/{resource}/setLabels

      Parameter Order:

    • project
    • region
    • resource
    • Description: Sets the labels on an Address. To learn more about labels, read the Labeling Resources documentation.

  • compute.interconnectAttachments.setLabels

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/compute
    • Description: Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling Resources documentation.

      Path: projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels

      Parameters:

        region

          Location: path

          Pattern: [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?

          Required: Yes

          Description: The region for this request.

          Type: string

        requestId

          Description: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).

          Type: string

          Location: query

        project

          Location: path

          Type: string

          Pattern: (?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))

          Required: Yes

          Description: Project ID for this request.

        resource

          Pattern: [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}

          Description: Name or id of the resource for this request.

          Type: string

          Required: Yes

          Location: path

      HTTP Method: POST

      Flat Path: projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels

      Parameter Order:

    • project
    • region
    • resource
  • compute.securityPolicies.setLabels

      Path: projects/{project}/global/securityPolicies/{resource}/setLabels

      Flat Path: projects/{project}/global/securityPolicies/{resource}/setLabels

      Description: Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation.

      Parameter Order:

    • project
    • resource
    • Parameters:

        resource

          Location: path

          Required: Yes

          Type: string

          Pattern: [a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}

          Description: Name or id of the resource for this request.

        project

          Type: string

          Location: path

          Pattern: (?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))

          Description: Project ID for this request.

          Required: Yes

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/compute
    • HTTP Method: POST

  • compute.interconnects.setLabels

      Description: Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources documentation.

      Flat Path: projects/{project}/global/interconnects/{resource}/setLabels

      Parameter Order:

    • project
    • resource
    • Path: projects/{project}/global/interconnects/{resource}/setLabels

      HTTP Method: POST

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/compute
    • Parameters:

        resource

          Pattern: [a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}

          Required: Yes

          Description: Name or id of the resource for this request.

          Type: string

          Location: path

        project

          Pattern: (?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))

          Required: Yes

          Location: path

          Description: Project ID for this request.

          Type: string

  • compute.targetVpnGateways.setLabels

      Parameter Order:

    • project
    • region
    • resource
    • Parameters:

        region

          Required: Yes

          Location: path

          Description: The region for this request.

          Pattern: [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?

          Type: string

        resource

          Location: path

          Required: Yes

          Type: string

          Pattern: [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}

          Description: Name or id of the resource for this request.

        project

          Type: string

          Required: Yes

          Pattern: (?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))

          Description: Project ID for this request.

          Location: path

        requestId

          Description: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).

          Type: string

          Location: query

      Description: Sets the labels on a TargetVpnGateway. To learn more about labels, read the Labeling Resources documentation.

      HTTP Method: POST

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/compute
    • Path: projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels

      Flat Path: projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels