Struct googapis::google::cloud::apigateway::v1::ApiConfig [−][src]
pub struct ApiConfig {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub display_name: String,
pub gateway_service_account: String,
pub service_config_id: String,
pub state: i32,
pub openapi_documents: Vec<OpenApiDocument>,
pub grpc_services: Vec<GrpcServiceDefinition>,
pub managed_service_configs: Vec<File>,
}
Expand description
An API Configuration is a combination of settings for both the Managed Service and Gateways serving this API Config.
Fields
name: String
Output only. Resource name of the API Config. Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
create_time: Option<Timestamp>
Output only. Created time.
update_time: Option<Timestamp>
Output only. Updated time.
labels: HashMap<String, String>
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
display_name: String
Optional. Display name.
gateway_service_account: String
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.
service_config_id: String
Output only. The ID of the associated Service Config ( https://cloud.google.com/service-infrastructure/docs/glossary#config).
state: i32
Output only. State of the API Config.
openapi_documents: Vec<OpenApiDocument>
Optional. OpenAPI specification documents. If specified, grpc_services and managed_service_configs must not be included.
grpc_services: Vec<GrpcServiceDefinition>
Optional. gRPC service definition files. If specified, openapi_documents must not be included.
managed_service_configs: Vec<File>
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.
Implementations
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ApiConfig
impl UnwindSafe for ApiConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more