projects

PATCH /v1/projects/{projectsId}/locations/{locationsId}/dependencies/{dependenciesId}

Changed on

Update a dependency based on the update_mask provided in the request. The following fields in the dependency can be updated: * description

Request

  • Base URL
    https://apihub.googleapis.com
  • Auth
    • OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/apihub.readwrite
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/apihub.readwrite
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud-platform
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud-platform
  • TypeScript

Path parameters

projectsIdstring required
locationsIdstring required
dependenciesIdstring required

Query parameters

updateMaskstring google-fieldmask

Required. The list of fields to update.

Request body

attributesobject

Optional. The list of user defined attributes associated with the dependency resource. The key is the attribute name. It will be of the format: projects/{project}/locations/{location}/attributes/{attribute}. The value is the attribute values associated with the resource.

createTimestring google-datetime

Output only. The time at which the dependency was created.

descriptionstring

Optional. Human readable description corresponding of the dependency.

discoveryMode'DISCOVERY_MODE_UNSPECIFIED' | 'MANUAL'

Output only. Discovery mode of the dependency.

namestring

Identifier. The name of the dependency in the API Hub. Format: projects/{project}/locations/{location}/dependencies/{dependency}

state'STATE_UNSPECIFIED' | 'PROPOSED' | 'VALIDATED'

Output only. State of the dependency.

updateTimestring google-datetime

Output only. The time at which the dependency was last updated.

Response

Successful response

attributesobject

Optional. The list of user defined attributes associated with the dependency resource. The key is the attribute name. It will be of the format: projects/{project}/locations/{location}/attributes/{attribute}. The value is the attribute values associated with the resource.

createTimestring google-datetime

Output only. The time at which the dependency was created.

descriptionstring

Optional. Human readable description corresponding of the dependency.

discoveryMode'DISCOVERY_MODE_UNSPECIFIED' | 'MANUAL'

Output only. Discovery mode of the dependency.

namestring

Identifier. The name of the dependency in the API Hub. Format: projects/{project}/locations/{location}/dependencies/{dependency}

state'STATE_UNSPECIFIED' | 'PROPOSED' | 'VALIDATED'

Output only. State of the dependency.

updateTimestring google-datetime

Output only. The time at which the dependency was last updated.

Changes

    • info

      the security scope https://www.googleapis.com/auth/apihub.readwrite was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/apihub.readwrite was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was removed from the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was removed from the endpoint's security scheme Oauth2c