Types for Google Cloud Apigateway v1 API¶
- class google.cloud.apigateway_v1.types.Api(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
An API that can be served by one or more Gateways.
- name¶
Output only. Resource name of the API. Format: projects/{project}/locations/global/apis/{api}
- Type
- create_time¶
Output only. Created time.
- update_time¶
Output only. Updated time.
- labels¶
Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
- managed_service¶
Optional. Immutable. The name of a Google Managed Service ( https://cloud.google.com/service-infrastructure/docs/glossary#managed). If not specified, a new Service will automatically be created in the same project as this API.
- Type
- state¶
Output only. State of the API.
- class LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)¶
Bases:
proto.message.Message
- class State(value)[source]¶
Bases:
proto.enums.Enum
All the possible API states.
- Values:
- STATE_UNSPECIFIED (0):
API does not have a state yet.
- CREATING (1):
API is being created.
- ACTIVE (2):
API is active.
- FAILED (3):
API creation failed.
- DELETING (4):
API is being deleted.
- UPDATING (5):
API is being updated.
- class google.cloud.apigateway_v1.types.ApiConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
An API Configuration is a combination of settings for both the Managed Service and Gateways serving this API Config.
- name¶
Output only. Resource name of the API Config. Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
- Type
- create_time¶
Output only. Created time.
- update_time¶
Output only. Updated time.
- labels¶
Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
- gateway_service_account¶
Immutable. The Google Cloud IAM Service Account that Gateways serving this config should use to authenticate to other services. This may either be the Service Account’s email (
{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com
) or its full resource name (projects/{PROJECT}/accounts/{UNIQUE_ID}
). This is most often used when the service is a GCP resource such as a Cloud Run Service or an IAP-secured service.- Type
- service_config_id¶
Output only. The ID of the associated Service Config ( https://cloud.google.com/service-infrastructure/docs/glossary#config).
- Type
- state¶
Output only. State of the API Config.
- openapi_documents¶
Optional. OpenAPI specification documents. If specified, grpc_services and managed_service_configs must not be included.
- Type
MutableSequence[google.cloud.apigateway_v1.types.ApiConfig.OpenApiDocument]
- grpc_services¶
Optional. gRPC service definition files. If specified, openapi_documents must not be included.
- Type
MutableSequence[google.cloud.apigateway_v1.types.ApiConfig.GrpcServiceDefinition]
- managed_service_configs¶
Optional. Service Configuration files. At least one must be included when using gRPC service definitions. See https://cloud.google.com/endpoints/docs/grpc/grpc-service-config#service_configuration_overview for the expected file contents.
If multiple files are specified, the files are merged with the following rules:
All singular scalar fields are merged using “last one wins” semantics in the order of the files uploaded.
Repeated fields are concatenated.
Singular embedded messages are merged using these rules for nested fields.
- Type
MutableSequence[google.cloud.apigateway_v1.types.ApiConfig.File]
- class File(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A lightweight description of a file.
- path¶
The file path (full or relative path). This is typically the path of the file when it is uploaded.
- Type
- class GrpcServiceDefinition(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A gRPC service definition.
- file_descriptor_set¶
Input only. File descriptor set, generated by protoc.
To generate, use protoc with imports and source info included. For an example test.proto file, the following command would put the value in a new file named out.pb.
$ protoc –include_imports –include_source_info test.proto -o out.pb
- source¶
Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to ‘protoc’ command used to generate file_descriptor_set.
- Type
MutableSequence[google.cloud.apigateway_v1.types.ApiConfig.File]
- class LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)¶
Bases:
proto.message.Message
- class OpenApiDocument(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
An OpenAPI Specification Document describing an API.
- document¶
The OpenAPI Specification document file.
- class State(value)[source]¶
Bases:
proto.enums.Enum
All the possible API Config states.
- Values:
- STATE_UNSPECIFIED (0):
API Config does not have a state yet.
- CREATING (1):
API Config is being created and deployed to the API Controller.
- ACTIVE (2):
API Config is ready for use by Gateways.
- FAILED (3):
API Config creation failed.
- DELETING (4):
API Config is being deleted.
- UPDATING (5):
API Config is being updated.
- ACTIVATING (6):
API Config settings are being activated in downstream systems. API Configs in this state cannot be used by Gateways.
- class google.cloud.apigateway_v1.types.CreateApiConfigRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ApiGatewayService.CreateApiConfig
- parent¶
Required. Parent resource of the API Config, of the form:
projects/*/locations/global/apis/*
- Type
- api_config_id¶
Required. Identifier to assign to the API Config. Must be unique within scope of the parent resource.
- Type
- api_config¶
Required. API resource.
- class google.cloud.apigateway_v1.types.CreateApiRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ApiGatewayService.CreateApi
- api_id¶
Required. Identifier to assign to the API. Must be unique within scope of the parent resource.
- Type
- api¶
Required. API resource.
- class google.cloud.apigateway_v1.types.CreateGatewayRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ApiGatewayService.CreateGateway
- gateway_id¶
Required. Identifier to assign to the Gateway. Must be unique within scope of the parent resource.
- Type
- gateway¶
Required. Gateway resource.
- class google.cloud.apigateway_v1.types.DeleteApiConfigRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ApiGatewayService.DeleteApiConfig
- class google.cloud.apigateway_v1.types.DeleteApiRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ApiGatewayService.DeleteApi
- class google.cloud.apigateway_v1.types.DeleteGatewayRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ApiGatewayService.DeleteGateway
- class google.cloud.apigateway_v1.types.Gateway(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A Gateway is an API-aware HTTP proxy. It performs API-Method and/or API-Consumer specific actions based on an API Config such as authentication, policy enforcement, and backend selection.
- name¶
Output only. Resource name of the Gateway. Format: projects/{project}/locations/{location}/gateways/{gateway}
- Type
- create_time¶
Output only. Created time.
- update_time¶
Output only. Updated time.
- labels¶
Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
- api_config¶
Required. Resource name of the API Config for this Gateway. Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
- Type
- state¶
Output only. The current state of the Gateway.
- default_hostname¶
Output only. The default API Gateway host name of the form
{gateway_id}-{hash}.{region_code}.gateway.dev
.- Type
- class LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)¶
Bases:
proto.message.Message
- class State(value)[source]¶
Bases:
proto.enums.Enum
All the possible Gateway states.
- Values:
- STATE_UNSPECIFIED (0):
Gateway does not have a state yet.
- CREATING (1):
Gateway is being created.
- ACTIVE (2):
Gateway is running and ready for requests.
- FAILED (3):
Gateway creation failed.
- DELETING (4):
Gateway is being deleted.
- UPDATING (5):
Gateway is being updated.
- class google.cloud.apigateway_v1.types.GetApiConfigRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ApiGatewayService.GetApiConfig
- view¶
Specifies which fields of the API Config are returned in the response. Defaults to
BASIC
view.
- class ConfigView(value)[source]¶
Bases:
proto.enums.Enum
Enum to control which fields should be included in the response.
- Values:
- CONFIG_VIEW_UNSPECIFIED (0):
No description available.
- BASIC (1):
Do not include configuration source files.
- FULL (2):
Include configuration source files.
- class google.cloud.apigateway_v1.types.GetApiRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ApiGatewayService.GetApi
- class google.cloud.apigateway_v1.types.GetGatewayRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ApiGatewayService.GetGateway
- class google.cloud.apigateway_v1.types.ListApiConfigsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ApiGatewayService.ListApiConfigs
- parent¶
Required. Parent resource of the API Config, of the form:
projects/*/locations/global/apis/*
- Type
- class google.cloud.apigateway_v1.types.ListApiConfigsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Response message for ApiGatewayService.ListApiConfigs
- api_configs¶
API Configs.
- Type
MutableSequence[google.cloud.apigateway_v1.types.ApiConfig]
- class google.cloud.apigateway_v1.types.ListApisRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ApiGatewayService.ListApis
- class google.cloud.apigateway_v1.types.ListApisResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Response message for ApiGatewayService.ListApis
- apis¶
APIs.
- Type
MutableSequence[google.cloud.apigateway_v1.types.Api]
- class google.cloud.apigateway_v1.types.ListGatewaysRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ApiGatewayService.ListGateways
- class google.cloud.apigateway_v1.types.ListGatewaysResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Response message for ApiGatewayService.ListGateways
- gateways¶
Gateways.
- Type
MutableSequence[google.cloud.apigateway_v1.types.Gateway]
- class google.cloud.apigateway_v1.types.OperationMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Represents the metadata of the long-running operation.
- create_time¶
Output only. The time the operation was created.
- end_time¶
Output only. The time the operation finished running.
- requested_cancellation¶
Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
Code.CANCELLED
.- Type
- diagnostics¶
Output only. Diagnostics generated during processing of configuration source files.
- Type
MutableSequence[google.cloud.apigateway_v1.types.OperationMetadata.Diagnostic]
- class google.cloud.apigateway_v1.types.UpdateApiConfigRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ApiGatewayService.UpdateApiConfig
- update_mask¶
Field mask is used to specify the fields to be overwritten in the ApiConfig resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- api_config¶
Required. API Config resource.
- class google.cloud.apigateway_v1.types.UpdateApiRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ApiGatewayService.UpdateApi
- update_mask¶
Field mask is used to specify the fields to be overwritten in the Api resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- api¶
Required. API resource.
- class google.cloud.apigateway_v1.types.UpdateGatewayRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ApiGatewayService.UpdateGateway
- update_mask¶
Field mask is used to specify the fields to be overwritten in the Gateway resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- gateway¶
Required. Gateway resource.