Class RegistryAsyncClient (0.6.0)

RegistryAsyncClient(*, credentials: Optional[google.auth.credentials.Credentials] = None, transport: Union[str, google.cloud.apigee_registry_v1.services.registry.transports.base.RegistryTransport] = 'grpc_asyncio', client_options: Optional[google.api_core.client_options.ClientOptions] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo = <google.api_core.gapic_v1.client_info.ClientInfo object>)

The Registry service allows teams to manage descriptions of APIs.

Properties

transport

Returns the transport used by the client instance.

Returns
TypeDescription
RegistryTransportThe transport used by the client instance.

Methods

RegistryAsyncClient

RegistryAsyncClient(*, credentials: Optional[google.auth.credentials.Credentials] = None, transport: Union[str, google.cloud.apigee_registry_v1.services.registry.transports.base.RegistryTransport] = 'grpc_asyncio', client_options: Optional[google.api_core.client_options.ClientOptions] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo = <google.api_core.gapic_v1.client_info.ClientInfo object>)

Instantiates the registry client.

Parameters
NameDescription
credentials Optional[google.auth.credentials.Credentials]

The authorization credentials to attach to requests. These credentials identify the application to the service; if none are specified, the client will attempt to ascertain the credentials from the environment.

transport Union[str, .RegistryTransport]

The transport to use. If set to None, a transport is chosen automatically.

client_options ClientOptions

Custom options for the client. It won't take effect if a transport instance is provided. (1) The api_endpoint property can be used to override the default endpoint provided by the client. GOOGLE_API_USE_MTLS_ENDPOINT environment variable can also be used to override the endpoint: "always" (always use the default mTLS endpoint), "never" (always use the default regular endpoint) and "auto" (auto switch to the default mTLS endpoint if client certificate is present, this is the default value). However, the api_endpoint property takes precedence if provided. (2) If GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is "true", then the client_cert_source property can be used to provide client certificate for mutual TLS transport. If not provided, the default SSL client certificate will be used if present. If GOOGLE_API_USE_CLIENT_CERTIFICATE is "false" or not set, no client certificate will be used.

Exceptions
TypeDescription
google.auth.exceptions.MutualTlsChannelErrorIf mutual TLS transport creation failed for any reason.

api_deployment_path

api_deployment_path(project: str, location: str, api: str, deployment: str)

Returns a fully-qualified api_deployment string.

api_path

api_path(project: str, location: str, api: str)

Returns a fully-qualified api string.

api_spec_path

api_spec_path(project: str, location: str, api: str, version: str, spec: str)

Returns a fully-qualified api_spec string.

api_version_path

api_version_path(project: str, location: str, api: str, version: str)

Returns a fully-qualified api_version string.

artifact_path

artifact_path(project: str, location: str, artifact: str)

Returns a fully-qualified artifact string.

cancel_operation

cancel_operation(request: Optional[google.longrunning.operations_pb2.CancelOperationRequest] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Starts asynchronous cancellation on a long-running operation.

The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.

Parameters
NameDescription
request .operations_pb2.CancelOperationRequest

The request object. Request message for CancelOperation method.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

common_billing_account_path

common_billing_account_path(billing_account: str)

Returns a fully-qualified billing_account string.

common_folder_path

common_folder_path(folder: str)

Returns a fully-qualified folder string.

common_location_path

common_location_path(project: str, location: str)

Returns a fully-qualified location string.

common_organization_path

common_organization_path(organization: str)

Returns a fully-qualified organization string.

common_project_path

common_project_path(project: str)

Returns a fully-qualified project string.

create_api

create_api(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.CreateApiRequest, dict]] = None, *, parent: Optional[str] = None, api: Optional[google.cloud.apigee_registry_v1.types.registry_models.Api] = None, api_id: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Creates a specified API.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_create_api():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.CreateApiRequest(
        parent="parent_value",
        api_id="api_id_value",
    )

    # Make the request
    response = await client.create_api(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.CreateApiRequest, dict]]

The request object. Request message for CreateApi.

parent str

Required. The parent, which owns this collection of APIs. Format: projects//locations/ This corresponds to the parent field on the request instance; if request is provided, this should not be set.

api Api

Required. The API to create. This corresponds to the api field on the request instance; if request is provided, this should not be set.

api_id str

Required. The ID to use for the API, which will become the final component of the API's resource name. This value should be 4-63 characters, and valid characters are /a-z][0-9]-/. Following AIP-162, IDs must not have the form of a UUID. This corresponds to the api_id field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ApiA top-level description of an API. Produced by producers and are commitments to provide services.

create_api_deployment

create_api_deployment(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.CreateApiDeploymentRequest, dict]] = None, *, parent: Optional[str] = None, api_deployment: Optional[google.cloud.apigee_registry_v1.types.registry_models.ApiDeployment] = None, api_deployment_id: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Creates a specified deployment.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_create_api_deployment():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.CreateApiDeploymentRequest(
        parent="parent_value",
        api_deployment_id="api_deployment_id_value",
    )

    # Make the request
    response = await client.create_api_deployment(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.CreateApiDeploymentRequest, dict]]

The request object. Request message for CreateApiDeployment.

parent str

Required. The parent, which owns this collection of deployments. Format: projects//locations//apis/* This corresponds to the parent field on the request instance; if request is provided, this should not be set.

api_deployment ApiDeployment

Required. The deployment to create. This corresponds to the api_deployment field on the request instance; if request is provided, this should not be set.

api_deployment_id str

Required. The ID to use for the deployment, which will become the final component of the deployment's resource name. This value should be 4-63 characters, and valid characters are /a-z][0-9]-/. Following AIP-162, IDs must not have the form of a UUID. This corresponds to the api_deployment_id field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ApiDeploymentDescribes a service running at particular address that provides a particular version of an API. ApiDeployments have revisions which correspond to different configurations of a single deployment in time. Revision identifiers should be updated whenever the served API spec or endpoint address changes.

create_api_spec

create_api_spec(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.CreateApiSpecRequest, dict]] = None, *, parent: Optional[str] = None, api_spec: Optional[google.cloud.apigee_registry_v1.types.registry_models.ApiSpec] = None, api_spec_id: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Creates a specified spec.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_create_api_spec():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.CreateApiSpecRequest(
        parent="parent_value",
        api_spec_id="api_spec_id_value",
    )

    # Make the request
    response = await client.create_api_spec(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.CreateApiSpecRequest, dict]]

The request object. Request message for CreateApiSpec.

parent str

Required. The parent, which owns this collection of specs. Format: projects//locations//apis//versions/ This corresponds to the parent field on the request instance; if request is provided, this should not be set.

api_spec ApiSpec

Required. The spec to create. This corresponds to the api_spec field on the request instance; if request is provided, this should not be set.

api_spec_id str

Required. The ID to use for the spec, which will become the final component of the spec's resource name. This value should be 4-63 characters, and valid characters are /a-z][0-9]-/. Following AIP-162, IDs must not have the form of a UUID. This corresponds to the api_spec_id field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ApiSpecDescribes a version of an API in a structured way. ApiSpecs provide formal descriptions that consumers can use to use a version. ApiSpec resources are intended to be fully-resolved descriptions of an ApiVersion. When specs consist of multiple files, these should be bundled together (e.g., in a zip archive) and stored as a unit. Multiple specs can exist to provide representations in different API description formats. Synchronization of these representations would be provided by tooling and background services.

create_api_version

create_api_version(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.CreateApiVersionRequest, dict]] = None, *, parent: Optional[str] = None, api_version: Optional[google.cloud.apigee_registry_v1.types.registry_models.ApiVersion] = None, api_version_id: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Creates a specified version.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_create_api_version():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.CreateApiVersionRequest(
        parent="parent_value",
        api_version_id="api_version_id_value",
    )

    # Make the request
    response = await client.create_api_version(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.CreateApiVersionRequest, dict]]

The request object. Request message for CreateApiVersion.

parent str

Required. The parent, which owns this collection of versions. Format: projects//locations//apis/* This corresponds to the parent field on the request instance; if request is provided, this should not be set.

api_version ApiVersion

Required. The version to create. This corresponds to the api_version field on the request instance; if request is provided, this should not be set.

api_version_id str

Required. The ID to use for the version, which will become the final component of the version's resource name. This value should be 1-63 characters, and valid characters are /a-z][0-9]-/. Following AIP-162, IDs must not have the form of a UUID. This corresponds to the api_version_id field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ApiVersionDescribes a particular version of an API. ApiVersions are what consumers actually use.

create_artifact

create_artifact(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.CreateArtifactRequest, dict]] = None, *, parent: Optional[str] = None, artifact: Optional[google.cloud.apigee_registry_v1.types.registry_models.Artifact] = None, artifact_id: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Creates a specified artifact.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_create_artifact():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.CreateArtifactRequest(
        parent="parent_value",
        artifact_id="artifact_id_value",
    )

    # Make the request
    response = await client.create_artifact(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.CreateArtifactRequest, dict]]

The request object. Request message for CreateArtifact.

parent str

Required. The parent, which owns this collection of artifacts. Format: {parent} This corresponds to the parent field on the request instance; if request is provided, this should not be set.

artifact Artifact

Required. The artifact to create. This corresponds to the artifact field on the request instance; if request is provided, this should not be set.

artifact_id str

Required. The ID to use for the artifact, which will become the final component of the artifact's resource name. This value should be 4-63 characters, and valid characters are /a-z][0-9]-/. Following AIP-162, IDs must not have the form of a UUID. This corresponds to the artifact_id field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ArtifactArtifacts of resources. Artifacts are unique (single-value) per resource and are used to store metadata that is too large or numerous to be stored directly on the resource. Since artifacts are stored separately from parent resources, they should generally be used for metadata that is needed infrequently, i.e., not for display in primary views of the resource but perhaps displayed or downloaded upon request. The ListArtifacts method allows artifacts to be quickly enumerated and checked for presence without downloading their (potentially-large) contents.

delete_api

delete_api(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.DeleteApiRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Removes a specified API and all of the resources that it owns.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_delete_api():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.DeleteApiRequest(
        name="name_value",
    )

    # Make the request
    await client.delete_api(request=request)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.DeleteApiRequest, dict]]

The request object. Request message for DeleteApi.

name str

Required. The name of the API to delete. Format: projects//locations//apis/* This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

delete_api_deployment

delete_api_deployment(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.DeleteApiDeploymentRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Removes a specified deployment, all revisions, and all child resources (e.g., artifacts).

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_delete_api_deployment():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.DeleteApiDeploymentRequest(
        name="name_value",
    )

    # Make the request
    await client.delete_api_deployment(request=request)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.DeleteApiDeploymentRequest, dict]]

The request object. Request message for DeleteApiDeployment.

name str

Required. The name of the deployment to delete. Format: projects//locations//apis//deployments/ This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

delete_api_deployment_revision

delete_api_deployment_revision(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.DeleteApiDeploymentRevisionRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Deletes a revision of a deployment.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_delete_api_deployment_revision():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.DeleteApiDeploymentRevisionRequest(
        name="name_value",
    )

    # Make the request
    response = await client.delete_api_deployment_revision(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.DeleteApiDeploymentRevisionRequest, dict]]

The request object. Request message for DeleteApiDeploymentRevision.

name str

Required. The name of the deployment revision to be deleted, with a revision ID explicitly included. Example: projects/sample/locations/global/apis/petstore/deployments/prod@c7cfa2a8 This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ApiDeploymentDescribes a service running at particular address that provides a particular version of an API. ApiDeployments have revisions which correspond to different configurations of a single deployment in time. Revision identifiers should be updated whenever the served API spec or endpoint address changes.

delete_api_spec

delete_api_spec(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.DeleteApiSpecRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Removes a specified spec, all revisions, and all child resources (e.g., artifacts).

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_delete_api_spec():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.DeleteApiSpecRequest(
        name="name_value",
    )

    # Make the request
    await client.delete_api_spec(request=request)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.DeleteApiSpecRequest, dict]]

The request object. Request message for DeleteApiSpec.

name str

Required. The name of the spec to delete. Format: projects//locations//apis//versions//specs/* This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

delete_api_spec_revision

delete_api_spec_revision(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.DeleteApiSpecRevisionRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Deletes a revision of a spec.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_delete_api_spec_revision():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.DeleteApiSpecRevisionRequest(
        name="name_value",
    )

    # Make the request
    response = await client.delete_api_spec_revision(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.DeleteApiSpecRevisionRequest, dict]]

The request object. Request message for DeleteApiSpecRevision.

name str

Required. The name of the spec revision to be deleted, with a revision ID explicitly included. Example: projects/sample/locations/global/apis/petstore/versions/1.0.0/specs/openapi.yaml@c7cfa2a8 This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ApiSpecDescribes a version of an API in a structured way. ApiSpecs provide formal descriptions that consumers can use to use a version. ApiSpec resources are intended to be fully-resolved descriptions of an ApiVersion. When specs consist of multiple files, these should be bundled together (e.g., in a zip archive) and stored as a unit. Multiple specs can exist to provide representations in different API description formats. Synchronization of these representations would be provided by tooling and background services.

delete_api_version

delete_api_version(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.DeleteApiVersionRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Removes a specified version and all of the resources that it owns.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_delete_api_version():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.DeleteApiVersionRequest(
        name="name_value",
    )

    # Make the request
    await client.delete_api_version(request=request)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.DeleteApiVersionRequest, dict]]

The request object. Request message for DeleteApiVersion.

name str

Required. The name of the version to delete. Format: projects//locations//apis//versions/ This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

delete_artifact

delete_artifact(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.DeleteArtifactRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Removes a specified artifact.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_delete_artifact():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.DeleteArtifactRequest(
        name="name_value",
    )

    # Make the request
    await client.delete_artifact(request=request)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.DeleteArtifactRequest, dict]]

The request object. Request message for DeleteArtifact.

name str

Required. The name of the artifact to delete. Format: {parent}/artifacts/* This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

delete_operation

delete_operation(request: Optional[google.longrunning.operations_pb2.DeleteOperationRequest] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Deletes a long-running operation.

This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.

Parameters
NameDescription
request .operations_pb2.DeleteOperationRequest

The request object. Request message for DeleteOperation method.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

from_service_account_file

from_service_account_file(filename: str, *args, **kwargs)

Creates an instance of this client using the provided credentials file.

Parameter
NameDescription
filename str

The path to the service account private key json file.

Returns
TypeDescription
RegistryAsyncClientThe constructed client.

from_service_account_info

from_service_account_info(info: dict, *args, **kwargs)

Creates an instance of this client using the provided credentials info.

Parameter
NameDescription
info dict

The service account private key info.

Returns
TypeDescription
RegistryAsyncClientThe constructed client.

from_service_account_json

from_service_account_json(filename: str, *args, **kwargs)

Creates an instance of this client using the provided credentials file.

Parameter
NameDescription
filename str

The path to the service account private key json file.

Returns
TypeDescription
RegistryAsyncClientThe constructed client.

get_api

get_api(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.GetApiRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Returns a specified API.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_get_api():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.GetApiRequest(
        name="name_value",
    )

    # Make the request
    response = await client.get_api(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.GetApiRequest, dict]]

The request object. Request message for GetApi.

name str

Required. The name of the API to retrieve. Format: projects//locations//apis/* This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ApiA top-level description of an API. Produced by producers and are commitments to provide services.

get_api_deployment

get_api_deployment(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.GetApiDeploymentRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Returns a specified deployment.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_get_api_deployment():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.GetApiDeploymentRequest(
        name="name_value",
    )

    # Make the request
    response = await client.get_api_deployment(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.GetApiDeploymentRequest, dict]]

The request object. Request message for GetApiDeployment.

name str

Required. The name of the deployment to retrieve. Format: projects//locations//apis//deployments/ This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ApiDeploymentDescribes a service running at particular address that provides a particular version of an API. ApiDeployments have revisions which correspond to different configurations of a single deployment in time. Revision identifiers should be updated whenever the served API spec or endpoint address changes.

get_api_spec

get_api_spec(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.GetApiSpecRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Returns a specified spec.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_get_api_spec():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.GetApiSpecRequest(
        name="name_value",
    )

    # Make the request
    response = await client.get_api_spec(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.GetApiSpecRequest, dict]]

The request object. Request message for GetApiSpec.

name str

Required. The name of the spec to retrieve. Format: projects//locations//apis//versions//specs/* This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ApiSpecDescribes a version of an API in a structured way. ApiSpecs provide formal descriptions that consumers can use to use a version. ApiSpec resources are intended to be fully-resolved descriptions of an ApiVersion. When specs consist of multiple files, these should be bundled together (e.g., in a zip archive) and stored as a unit. Multiple specs can exist to provide representations in different API description formats. Synchronization of these representations would be provided by tooling and background services.

get_api_spec_contents

get_api_spec_contents(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.GetApiSpecContentsRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Returns the contents of a specified spec. If specs are stored with GZip compression, the default behavior is to return the spec uncompressed (the mime_type response field indicates the exact format returned).

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_get_api_spec_contents():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.GetApiSpecContentsRequest(
        name="name_value",
    )

    # Make the request
    response = await client.get_api_spec_contents(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.GetApiSpecContentsRequest, dict]]

The request object. Request message for GetApiSpecContents.

name str

Required. The name of the spec whose contents should be retrieved. Format: projects//locations//apis//versions//specs/* This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.api.httpbody_pb2.HttpBodyMessage that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.

get_api_version

get_api_version(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.GetApiVersionRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Returns a specified version.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_get_api_version():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.GetApiVersionRequest(
        name="name_value",
    )

    # Make the request
    response = await client.get_api_version(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.GetApiVersionRequest, dict]]

The request object. Request message for GetApiVersion.

name str

Required. The name of the version to retrieve. Format: projects//locations//apis//versions/ This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ApiVersionDescribes a particular version of an API. ApiVersions are what consumers actually use.

get_artifact

get_artifact(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.GetArtifactRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Returns a specified artifact.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_get_artifact():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.GetArtifactRequest(
        name="name_value",
    )

    # Make the request
    response = await client.get_artifact(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.GetArtifactRequest, dict]]

The request object. Request message for GetArtifact.

name str

Required. The name of the artifact to retrieve. Format: {parent}/artifacts/* This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ArtifactArtifacts of resources. Artifacts are unique (single-value) per resource and are used to store metadata that is too large or numerous to be stored directly on the resource. Since artifacts are stored separately from parent resources, they should generally be used for metadata that is needed infrequently, i.e., not for display in primary views of the resource but perhaps displayed or downloaded upon request. The ListArtifacts method allows artifacts to be quickly enumerated and checked for presence without downloading their (potentially-large) contents.

get_artifact_contents

get_artifact_contents(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.GetArtifactContentsRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Returns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_get_artifact_contents():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.GetArtifactContentsRequest(
        name="name_value",
    )

    # Make the request
    response = await client.get_artifact_contents(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.GetArtifactContentsRequest, dict]]

The request object. Request message for GetArtifactContents.

name str

Required. The name of the artifact whose contents should be retrieved. Format: {parent}/artifacts/* This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.api.httpbody_pb2.HttpBodyMessage that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.

get_iam_policy

get_iam_policy(request: Optional[google.iam.v1.iam_policy_pb2.GetIamPolicyRequest] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Gets the IAM access control policy for a function.

Returns an empty policy if the function exists and does not have a policy set.

Parameters
NameDescription
request .iam_policy_pb2.GetIamPolicyRequest

The request object. Request message for GetIamPolicy method.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
.policy_pb2.PolicyDefines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources. A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions (defined by IAM or configured by users). A binding can optionally specify a condition, which is a logic expression that further constrains the role binding based on attributes about the request and/or target resource. **JSON Example** :: { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01t00:00:00.000z')",="" }="" }="" ]="" }="" **yaml="" example**="" ::="" bindings:="" -="" members:="" -="" user:mike@example.com="" -="" group:admins@example.com="" -="" domain:google.com="" -="" serviceaccount:my-project-id@appspot.gserviceaccount.com="" role:="" roles/resourcemanager.organizationadmin="" -="" members:="" -="" user:eve@example.com="" role:="" roles/resourcemanager.organizationviewer="" condition:="" title:="" expirable="" access="" description:="" does="" not="" grant="" access="" after="" sep="" 2020="" expression:="" request.time="">< timestamp('2020-10-01t00:00:00.000z')="" for="" a="" description="" of="" iam="" and="" its="" features,="" see="" the="">IAM developer's guide __.

get_location

get_location(request: Optional[google.cloud.location.locations_pb2.GetLocationRequest] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Gets information about a location.

Parameters
NameDescription
request .location_pb2.GetLocationRequest

The request object. Request message for GetLocation method.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
.location_pb2.LocationLocation object.

get_mtls_endpoint_and_cert_source

get_mtls_endpoint_and_cert_source(
    client_options: Optional[google.api_core.client_options.ClientOptions] = None,
)

Return the API endpoint and client cert source for mutual TLS.

The client cert source is determined in the following order: (1) if GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is not "true", the client cert source is None. (2) if client_options.client_cert_source is provided, use the provided one; if the default client cert source exists, use the default one; otherwise the client cert source is None.

The API endpoint is determined in the following order: (1) if client_options.api_endpoint if provided, use the provided one. (2) if GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is "always", use the default mTLS endpoint; if the environment variable is "never", use the default API endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise use the default API endpoint.

More details can be found at https://google.aip.dev/auth/4114.

Parameter
NameDescription
client_options google.api_core.client_options.ClientOptions

Custom options for the client. Only the api_endpoint and client_cert_source properties may be used in this method.

Exceptions
TypeDescription
google.auth.exceptions.MutualTLSChannelErrorIf any errors happen.
Returns
TypeDescription
Tuple[str, Callable[[], Tuple[bytes, bytes]]]returns the API endpoint and the client cert source to use.

get_operation

get_operation(request: Optional[google.longrunning.operations_pb2.GetOperationRequest] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Gets the latest state of a long-running operation.

Parameters
NameDescription
request .operations_pb2.GetOperationRequest

The request object. Request message for GetOperation method.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
.operations_pb2.OperationAn Operation object.

get_transport_class

get_transport_class()

Returns an appropriate transport class.

list_api_deployment_revisions

list_api_deployment_revisions(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.ListApiDeploymentRevisionsRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Lists all revisions of a deployment. Revisions are returned in descending order of revision creation time.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_list_api_deployment_revisions():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.ListApiDeploymentRevisionsRequest(
        name="name_value",
    )

    # Make the request
    page_result = client.list_api_deployment_revisions(request=request)

    # Handle the response
    async for response in page_result:
        print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.ListApiDeploymentRevisionsRequest, dict]]

The request object. Request message for ListApiDeploymentRevisions.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.services.registry.pagers.ListApiDeploymentRevisionsAsyncPagerResponse message for ListApiDeploymentRevisionsResponse. Iterating over this object will yield results and resolve additional pages automatically.

list_api_deployments

list_api_deployments(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.ListApiDeploymentsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Returns matching deployments.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_list_api_deployments():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.ListApiDeploymentsRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_api_deployments(request=request)

    # Handle the response
    async for response in page_result:
        print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.ListApiDeploymentsRequest, dict]]

The request object. Request message for ListApiDeployments.

parent str

Required. The parent, which owns this collection of deployments. Format: projects//locations//apis/* This corresponds to the parent field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.services.registry.pagers.ListApiDeploymentsAsyncPagerResponse message for ListApiDeployments. Iterating over this object will yield results and resolve additional pages automatically.

list_api_spec_revisions

list_api_spec_revisions(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.ListApiSpecRevisionsRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Lists all revisions of a spec. Revisions are returned in descending order of revision creation time.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_list_api_spec_revisions():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.ListApiSpecRevisionsRequest(
        name="name_value",
    )

    # Make the request
    page_result = client.list_api_spec_revisions(request=request)

    # Handle the response
    async for response in page_result:
        print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.ListApiSpecRevisionsRequest, dict]]

The request object. Request message for ListApiSpecRevisions.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.services.registry.pagers.ListApiSpecRevisionsAsyncPagerResponse message for ListApiSpecRevisionsResponse. Iterating over this object will yield results and resolve additional pages automatically.

list_api_specs

list_api_specs(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.ListApiSpecsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Returns matching specs.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_list_api_specs():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.ListApiSpecsRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_api_specs(request=request)

    # Handle the response
    async for response in page_result:
        print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.ListApiSpecsRequest, dict]]

The request object. Request message for ListApiSpecs.

parent str

Required. The parent, which owns this collection of specs. Format: projects//locations//apis//versions/ This corresponds to the parent field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.services.registry.pagers.ListApiSpecsAsyncPagerResponse message for ListApiSpecs. Iterating over this object will yield results and resolve additional pages automatically.

list_api_versions

list_api_versions(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.ListApiVersionsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Returns matching versions.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_list_api_versions():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.ListApiVersionsRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_api_versions(request=request)

    # Handle the response
    async for response in page_result:
        print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.ListApiVersionsRequest, dict]]

The request object. Request message for ListApiVersions.

parent str

Required. The parent, which owns this collection of versions. Format: projects//locations//apis/* This corresponds to the parent field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.services.registry.pagers.ListApiVersionsAsyncPagerResponse message for ListApiVersions. Iterating over this object will yield results and resolve additional pages automatically.

list_apis

list_apis(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.ListApisRequest, dict]] = None, *, parent: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Returns matching APIs.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_list_apis():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.ListApisRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_apis(request=request)

    # Handle the response
    async for response in page_result:
        print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.ListApisRequest, dict]]

The request object. Request message for ListApis.

parent str

Required. The parent, which owns this collection of APIs. Format: projects//locations/ This corresponds to the parent field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.services.registry.pagers.ListApisAsyncPagerResponse message for ListApis. Iterating over this object will yield results and resolve additional pages automatically.

list_artifacts

list_artifacts(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.ListArtifactsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Returns matching artifacts.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_list_artifacts():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.ListArtifactsRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_artifacts(request=request)

    # Handle the response
    async for response in page_result:
        print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.ListArtifactsRequest, dict]]

The request object. Request message for ListArtifacts.

parent str

Required. The parent, which owns this collection of artifacts. Format: {parent} This corresponds to the parent field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.services.registry.pagers.ListArtifactsAsyncPagerResponse message for ListArtifacts. Iterating over this object will yield results and resolve additional pages automatically.

list_locations

list_locations(request: Optional[google.cloud.location.locations_pb2.ListLocationsRequest] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Lists information about the supported locations for this service.

Parameters
NameDescription
request .location_pb2.ListLocationsRequest

The request object. Request message for ListLocations method.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
.location_pb2.ListLocationsResponseResponse message for ListLocations method.

list_operations

list_operations(request: Optional[google.longrunning.operations_pb2.ListOperationsRequest] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Lists operations that match the specified filter in the request.

Parameters
NameDescription
request .operations_pb2.ListOperationsRequest

The request object. Request message for ListOperations method.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
.operations_pb2.ListOperationsResponseResponse message for ListOperations method.

parse_api_deployment_path

parse_api_deployment_path(path: str)

Parses a api_deployment path into its component segments.

parse_api_path

parse_api_path(path: str)

Parses a api path into its component segments.

parse_api_spec_path

parse_api_spec_path(path: str)

Parses a api_spec path into its component segments.

parse_api_version_path

parse_api_version_path(path: str)

Parses a api_version path into its component segments.

parse_artifact_path

parse_artifact_path(path: str)

Parses a artifact path into its component segments.

parse_common_billing_account_path

parse_common_billing_account_path(path: str)

Parse a billing_account path into its component segments.

parse_common_folder_path

parse_common_folder_path(path: str)

Parse a folder path into its component segments.

parse_common_location_path

parse_common_location_path(path: str)

Parse a location path into its component segments.

parse_common_organization_path

parse_common_organization_path(path: str)

Parse a organization path into its component segments.

parse_common_project_path

parse_common_project_path(path: str)

Parse a project path into its component segments.

replace_artifact

replace_artifact(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.ReplaceArtifactRequest, dict]] = None, *, artifact: Optional[google.cloud.apigee_registry_v1.types.registry_models.Artifact] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Used to replace a specified artifact.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_replace_artifact():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.ReplaceArtifactRequest(
    )

    # Make the request
    response = await client.replace_artifact(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.ReplaceArtifactRequest, dict]]

The request object. Request message for ReplaceArtifact.

artifact Artifact

Required. The artifact to replace. The name field is used to identify the artifact to replace. Format: {parent}/artifacts/* This corresponds to the artifact field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ArtifactArtifacts of resources. Artifacts are unique (single-value) per resource and are used to store metadata that is too large or numerous to be stored directly on the resource. Since artifacts are stored separately from parent resources, they should generally be used for metadata that is needed infrequently, i.e., not for display in primary views of the resource but perhaps displayed or downloaded upon request. The ListArtifacts method allows artifacts to be quickly enumerated and checked for presence without downloading their (potentially-large) contents.

rollback_api_deployment

rollback_api_deployment(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.RollbackApiDeploymentRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Sets the current revision to a specified prior revision. Note that this creates a new revision with a new revision ID.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_rollback_api_deployment():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.RollbackApiDeploymentRequest(
        name="name_value",
        revision_id="revision_id_value",
    )

    # Make the request
    response = await client.rollback_api_deployment(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.RollbackApiDeploymentRequest, dict]]

The request object. Request message for RollbackApiDeployment.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ApiDeploymentDescribes a service running at particular address that provides a particular version of an API. ApiDeployments have revisions which correspond to different configurations of a single deployment in time. Revision identifiers should be updated whenever the served API spec or endpoint address changes.

rollback_api_spec

rollback_api_spec(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.RollbackApiSpecRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Sets the current revision to a specified prior revision. Note that this creates a new revision with a new revision ID.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_rollback_api_spec():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.RollbackApiSpecRequest(
        name="name_value",
        revision_id="revision_id_value",
    )

    # Make the request
    response = await client.rollback_api_spec(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.RollbackApiSpecRequest, dict]]

The request object. Request message for RollbackApiSpec.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ApiSpecDescribes a version of an API in a structured way. ApiSpecs provide formal descriptions that consumers can use to use a version. ApiSpec resources are intended to be fully-resolved descriptions of an ApiVersion. When specs consist of multiple files, these should be bundled together (e.g., in a zip archive) and stored as a unit. Multiple specs can exist to provide representations in different API description formats. Synchronization of these representations would be provided by tooling and background services.

set_iam_policy

set_iam_policy(request: Optional[google.iam.v1.iam_policy_pb2.SetIamPolicyRequest] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Sets the IAM access control policy on the specified function.

Replaces any existing policy.

Parameters
NameDescription
request .iam_policy_pb2.SetIamPolicyRequest

The request object. Request message for SetIamPolicy method.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
.policy_pb2.PolicyDefines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources. A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions (defined by IAM or configured by users). A binding can optionally specify a condition, which is a logic expression that further constrains the role binding based on attributes about the request and/or target resource. **JSON Example** :: { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01t00:00:00.000z')",="" }="" }="" ]="" }="" **yaml="" example**="" ::="" bindings:="" -="" members:="" -="" user:mike@example.com="" -="" group:admins@example.com="" -="" domain:google.com="" -="" serviceaccount:my-project-id@appspot.gserviceaccount.com="" role:="" roles/resourcemanager.organizationadmin="" -="" members:="" -="" user:eve@example.com="" role:="" roles/resourcemanager.organizationviewer="" condition:="" title:="" expirable="" access="" description:="" does="" not="" grant="" access="" after="" sep="" 2020="" expression:="" request.time="">< timestamp('2020-10-01t00:00:00.000z')="" for="" a="" description="" of="" iam="" and="" its="" features,="" see="" the="">IAM developer's guide __.

tag_api_deployment_revision

tag_api_deployment_revision(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.TagApiDeploymentRevisionRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Adds a tag to a specified revision of a deployment.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_tag_api_deployment_revision():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.TagApiDeploymentRevisionRequest(
        name="name_value",
        tag="tag_value",
    )

    # Make the request
    response = await client.tag_api_deployment_revision(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.TagApiDeploymentRevisionRequest, dict]]

The request object. Request message for TagApiDeploymentRevision.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ApiDeploymentDescribes a service running at particular address that provides a particular version of an API. ApiDeployments have revisions which correspond to different configurations of a single deployment in time. Revision identifiers should be updated whenever the served API spec or endpoint address changes.

tag_api_spec_revision

tag_api_spec_revision(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.TagApiSpecRevisionRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Adds a tag to a specified revision of a spec.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_tag_api_spec_revision():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.TagApiSpecRevisionRequest(
        name="name_value",
        tag="tag_value",
    )

    # Make the request
    response = await client.tag_api_spec_revision(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.TagApiSpecRevisionRequest, dict]]

The request object. Request message for TagApiSpecRevision.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ApiSpecDescribes a version of an API in a structured way. ApiSpecs provide formal descriptions that consumers can use to use a version. ApiSpec resources are intended to be fully-resolved descriptions of an ApiVersion. When specs consist of multiple files, these should be bundled together (e.g., in a zip archive) and stored as a unit. Multiple specs can exist to provide representations in different API description formats. Synchronization of these representations would be provided by tooling and background services.

test_iam_permissions

test_iam_permissions(request: Optional[google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Tests the specified IAM permissions against the IAM access control policy for a function.

If the function does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

Parameters
NameDescription
request .iam_policy_pb2.TestIamPermissionsRequest

The request object. Request message for TestIamPermissions method.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
.iam_policy_pb2.TestIamPermissionsResponseResponse message for TestIamPermissions method.

update_api

update_api(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.UpdateApiRequest, dict]] = None, *, api: Optional[google.cloud.apigee_registry_v1.types.registry_models.Api] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Used to modify a specified API.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_update_api():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.UpdateApiRequest(
    )

    # Make the request
    response = await client.update_api(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.UpdateApiRequest, dict]]

The request object. Request message for UpdateApi.

api Api

Required. The API to update. The name field is used to identify the API to update. Format: projects//locations//apis/* This corresponds to the api field on the request instance; if request is provided, this should not be set.

update_mask google.protobuf.field_mask_pb2.FieldMask

The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request. This corresponds to the update_mask field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ApiA top-level description of an API. Produced by producers and are commitments to provide services.

update_api_deployment

update_api_deployment(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.UpdateApiDeploymentRequest, dict]] = None, *, api_deployment: Optional[google.cloud.apigee_registry_v1.types.registry_models.ApiDeployment] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Used to modify a specified deployment.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_update_api_deployment():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.UpdateApiDeploymentRequest(
    )

    # Make the request
    response = await client.update_api_deployment(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.UpdateApiDeploymentRequest, dict]]

The request object. Request message for UpdateApiDeployment.

api_deployment ApiDeployment

Required. The deployment to update. The name field is used to identify the deployment to update. Format: projects//locations//apis//deployments/ This corresponds to the api_deployment field on the request instance; if request is provided, this should not be set.

update_mask google.protobuf.field_mask_pb2.FieldMask

The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request. This corresponds to the update_mask field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ApiDeploymentDescribes a service running at particular address that provides a particular version of an API. ApiDeployments have revisions which correspond to different configurations of a single deployment in time. Revision identifiers should be updated whenever the served API spec or endpoint address changes.

update_api_spec

update_api_spec(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.UpdateApiSpecRequest, dict]] = None, *, api_spec: Optional[google.cloud.apigee_registry_v1.types.registry_models.ApiSpec] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Used to modify a specified spec.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_update_api_spec():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.UpdateApiSpecRequest(
    )

    # Make the request
    response = await client.update_api_spec(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.UpdateApiSpecRequest, dict]]

The request object. Request message for UpdateApiSpec.

api_spec ApiSpec

Required. The spec to update. The name field is used to identify the spec to update. Format: projects//locations//apis//versions//specs/* This corresponds to the api_spec field on the request instance; if request is provided, this should not be set.

update_mask google.protobuf.field_mask_pb2.FieldMask

The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request. This corresponds to the update_mask field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ApiSpecDescribes a version of an API in a structured way. ApiSpecs provide formal descriptions that consumers can use to use a version. ApiSpec resources are intended to be fully-resolved descriptions of an ApiVersion. When specs consist of multiple files, these should be bundled together (e.g., in a zip archive) and stored as a unit. Multiple specs can exist to provide representations in different API description formats. Synchronization of these representations would be provided by tooling and background services.

update_api_version

update_api_version(request: Optional[Union[google.cloud.apigee_registry_v1.types.registry_service.UpdateApiVersionRequest, dict]] = None, *, api_version: Optional[google.cloud.apigee_registry_v1.types.registry_models.ApiVersion] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Union[float, object] = <_MethodDefault._DEFAULT_VALUE: <object object>>, metadata: Sequence[Tuple[str, str]] = ())

Used to modify a specified version.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import apigee_registry_v1

async def sample_update_api_version():
    # Create a client
    client = apigee_registry_v1.RegistryAsyncClient()

    # Initialize request argument(s)
    request = apigee_registry_v1.UpdateApiVersionRequest(
    )

    # Make the request
    response = await client.update_api_version(request=request)

    # Handle the response
    print(response)
Parameters
NameDescription
request Optional[Union[google.cloud.apigee_registry_v1.types.UpdateApiVersionRequest, dict]]

The request object. Request message for UpdateApiVersion.

api_version ApiVersion

Required. The version to update. The name field is used to identify the version to update. Format: projects//locations//apis//versions/ This corresponds to the api_version field on the request instance; if request is provided, this should not be set.

update_mask google.protobuf.field_mask_pb2.FieldMask

The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request. This corresponds to the update_mask field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
TypeDescription
google.cloud.apigee_registry_v1.types.ApiVersionDescribes a particular version of an API. ApiVersions are what consumers actually use.