///
/// Messages
///
/// Contains the configurations necessary to generate a signature for access to private storage buckets that support Signature Version 4 for authentication. The service name for generating the authentication header will always default to 's3'.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Awsv4Signature {
/// The access key used for s3 bucket authentication. Required for updating or creating a backend that uses AWS v4 signature authentication, but will not be returned as part of the configuration when queried with a REST API GET request. @InputOnly
#[prost(string, optional, tag = "468922628")]
pub access_key: ::core::option::Option<::prost::alloc::string::String>,
/// The identifier of an access key used for s3 bucket authentication.
#[prost(string, optional, tag = "292975158")]
pub access_key_id: ::core::option::Option<::prost::alloc::string::String>,
/// The optional version identifier for the access key. You can use this to keep track of different iterations of your access key.
#[prost(string, optional, tag = "80261277")]
pub access_key_version: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the cloud region of your origin. This is a free-form field with the name of the region your cloud uses to host your origin. For example, "us-east-1" for AWS or "us-ashburn-1" for OCI.
#[prost(string, optional, tag = "265305645")]
pub origin_region: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for InstanceGroupManagers.AbandonInstances. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AbandonInstancesInstanceGroupManagerRequest {
/// The name of the managed instance group.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "320929016")]
pub instance_group_managers_abandon_instances_request_resource: ::core::option::Option<
InstanceGroupManagersAbandonInstancesRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where the managed instance group is located.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionInstanceGroupManagers.AbandonInstances. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AbandonInstancesRegionInstanceGroupManagerRequest {
/// Name of the managed instance group.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "488499491")]
pub region_instance_group_managers_abandon_instances_request_resource: ::core::option::Option<
RegionInstanceGroupManagersAbandonInstancesRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A specification of the type and number of accelerator cards attached to the instance.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AcceleratorConfig {
/// The number of the guest accelerator cards exposed to this instance.
#[prost(int32, optional, tag = "504879675")]
pub accelerator_count: ::core::option::Option<i32>,
/// Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
#[prost(string, optional, tag = "138031246")]
pub accelerator_type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents an Accelerator Type resource. Google Cloud Platform provides graphics processing units (accelerators) that you can add to VM instances to improve or accelerate performance when working with intensive workloads. For more information, read GPUs on Compute Engine.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AcceleratorType {
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The deprecation status associated with this accelerator type.
#[prost(message, optional, tag = "515138995")]
pub deprecated: ::core::option::Option<DeprecationStatus>,
/// \[Output Only\] An optional textual description of the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] The type of the resource. Always compute#acceleratorType for accelerator types.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Maximum number of accelerator cards allowed per instance.
#[prost(int32, optional, tag = "263814482")]
pub maximum_cards_per_instance: ::core::option::Option<i32>,
/// \[Output Only\] Name of the resource.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined, fully qualified URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The name of the zone where the accelerator type resides, such as us-central1-a. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "3744684")]
pub zone: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AcceleratorTypeAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of AcceleratorTypesScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
AcceleratorTypesScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#acceleratorTypeAggregatedList for aggregated lists of accelerator types.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of accelerator types.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AcceleratorTypeList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of AcceleratorType resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<AcceleratorType>,
/// \[Output Only\] Type of resource. Always compute#acceleratorTypeList for lists of accelerator types.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AcceleratorTypesScopedList {
/// \[Output Only\] A list of accelerator types contained in this scope.
#[prost(message, repeated, tag = "520872357")]
pub accelerator_types: ::prost::alloc::vec::Vec<AcceleratorType>,
/// \[Output Only\] An informational warning that appears when the accelerator types list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Accelerators {
/// Number of accelerator cards exposed to the guest.
#[prost(int32, optional, tag = "479079316")]
pub guest_accelerator_count: ::core::option::Option<i32>,
/// The accelerator type resource name, not a full URL, e.g. nvidia-tesla-t4.
#[prost(string, optional, tag = "293064725")]
pub guest_accelerator_type: ::core::option::Option<::prost::alloc::string::String>,
}
/// An access configuration attached to an instance's network interface. Only one access config per instance is supported.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccessConfig {
/// Applies to ipv6AccessConfigs only. The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
#[prost(string, optional, tag = "532703707")]
pub external_ipv6: ::core::option::Option<::prost::alloc::string::String>,
/// Applies to ipv6AccessConfigs only. The prefix length of the external IPv6 range.
#[prost(int32, optional, tag = "425672143")]
pub external_ipv6_prefix_length: ::core::option::Option<i32>,
/// \[Output Only\] Type of the resource. Always compute#accessConfig for access configs.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// The name of this access configuration. In accessConfigs (IPv4), the default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access. In ipv6AccessConfigs, the recommend name is External IPv6.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Applies to accessConfigs (IPv4) only. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
#[prost(string, optional, tag = "117634556")]
pub nat_i_p: ::core::option::Option<::prost::alloc::string::String>,
/// This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.
/// Check the NetworkTier enum for the list of possible values.
#[prost(string, optional, tag = "517397843")]
pub network_tier: ::core::option::Option<::prost::alloc::string::String>,
/// The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be createc for first IP in associated external IPv6 range.
#[prost(string, optional, tag = "316599167")]
pub public_ptr_domain_name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The resource URL for the security policy associated with this access config.
#[prost(string, optional, tag = "171082513")]
pub security_policy: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name. This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has external IPv6 range associated.
#[prost(bool, optional, tag = "523870229")]
pub set_public_ptr: ::core::option::Option<bool>,
/// The type of configuration. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `AccessConfig`.
pub mod access_config {
/// This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum NetworkTier {
/// A value indicating that the enum field is not set.
UndefinedNetworkTier = 0,
/// Public internet quality with fixed bandwidth.
FixedStandard = 310464328,
/// High quality, Google-grade network tier, support for all networking products.
Premium = 399530551,
/// Public internet quality, only limited support for other networking products.
Standard = 484642493,
/// (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier is expired or not configured.
StandardOverridesFixedStandard = 465847234,
}
impl NetworkTier {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
NetworkTier::UndefinedNetworkTier => "UNDEFINED_NETWORK_TIER",
NetworkTier::FixedStandard => "FIXED_STANDARD",
NetworkTier::Premium => "PREMIUM",
NetworkTier::Standard => "STANDARD",
NetworkTier::StandardOverridesFixedStandard => {
"STANDARD_OVERRIDES_FIXED_STANDARD"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_NETWORK_TIER" => Some(Self::UndefinedNetworkTier),
"FIXED_STANDARD" => Some(Self::FixedStandard),
"PREMIUM" => Some(Self::Premium),
"STANDARD" => Some(Self::Standard),
"STANDARD_OVERRIDES_FIXED_STANDARD" => {
Some(Self::StandardOverridesFixedStandard)
}
_ => None,
}
}
}
/// The type of configuration. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
DirectIpv6 = 4397213,
OneToOneNat = 84090205,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::DirectIpv6 => "DIRECT_IPV6",
Type::OneToOneNat => "ONE_TO_ONE_NAT",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"DIRECT_IPV6" => Some(Self::DirectIpv6),
"ONE_TO_ONE_NAT" => Some(Self::OneToOneNat),
_ => None,
}
}
}
}
/// A request message for Instances.AddAccessConfig. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddAccessConfigInstanceRequest {
/// The body resource for this request
#[prost(message, optional, tag = "387825552")]
pub access_config_resource: ::core::option::Option<AccessConfig>,
/// The instance name for this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// The name of the network interface to add to this instance.
#[prost(string, tag = "365387880")]
pub network_interface: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for FirewallPolicies.AddAssociation. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddAssociationFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "259546170")]
pub firewall_policy_association_resource: ::core::option::Option<
FirewallPolicyAssociation,
>,
/// Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an association already exists.
#[prost(bool, optional, tag = "209541240")]
pub replace_existing_association: ::core::option::Option<bool>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NetworkFirewallPolicies.AddAssociation. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddAssociationNetworkFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "259546170")]
pub firewall_policy_association_resource: ::core::option::Option<
FirewallPolicyAssociation,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an association already exists.
#[prost(bool, optional, tag = "209541240")]
pub replace_existing_association: ::core::option::Option<bool>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionNetworkFirewallPolicies.AddAssociation. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddAssociationRegionNetworkFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "259546170")]
pub firewall_policy_association_resource: ::core::option::Option<
FirewallPolicyAssociation,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Indicates whether or not to replace it if an association already exists. This is false by default, in which case an error will be returned if an association already exists.
#[prost(bool, optional, tag = "209541240")]
pub replace_existing_association: ::core::option::Option<bool>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for TargetPools.AddHealthCheck. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddHealthCheckTargetPoolRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the target pool to add a health check to.
#[prost(string, tag = "62796298")]
pub target_pool: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "269573412")]
pub target_pools_add_health_check_request_resource: ::core::option::Option<
TargetPoolsAddHealthCheckRequest,
>,
}
/// A request message for TargetPools.AddInstance. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddInstanceTargetPoolRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetPool resource to add instances to.
#[prost(string, tag = "62796298")]
pub target_pool: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "428796404")]
pub target_pools_add_instance_request_resource: ::core::option::Option<
TargetPoolsAddInstanceRequest,
>,
}
/// A request message for InstanceGroups.AddInstances. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddInstancesInstanceGroupRequest {
/// The name of the instance group where you are adding instances.
#[prost(string, tag = "81095253")]
pub instance_group: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "453713246")]
pub instance_groups_add_instances_request_resource: ::core::option::Option<
InstanceGroupsAddInstancesRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where the instance group is located.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for NodeGroups.AddNodes. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddNodesNodeGroupRequest {
/// Name of the NodeGroup resource.
#[prost(string, tag = "469958146")]
pub node_group: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "131263288")]
pub node_groups_add_nodes_request_resource: ::core::option::Option<
NodeGroupsAddNodesRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Networks.AddPeering. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddPeeringNetworkRequest {
/// Name of the network resource to add peering to.
#[prost(string, tag = "232872494")]
pub network: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "388810421")]
pub networks_add_peering_request_resource: ::core::option::Option<
NetworksAddPeeringRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Disks.AddResourcePolicies. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddResourcePoliciesDiskRequest {
/// The disk name for this request.
#[prost(string, tag = "3083677")]
pub disk: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "496483363")]
pub disks_add_resource_policies_request_resource: ::core::option::Option<
DisksAddResourcePoliciesRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Instances.AddResourcePolicies. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddResourcePoliciesInstanceRequest {
/// The instance name for this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "489351963")]
pub instances_add_resource_policies_request_resource: ::core::option::Option<
InstancesAddResourcePoliciesRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionDisks.AddResourcePolicies. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddResourcePoliciesRegionDiskRequest {
/// The disk name for this request.
#[prost(string, tag = "3083677")]
pub disk: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "284196750")]
pub region_disks_add_resource_policies_request_resource: ::core::option::Option<
RegionDisksAddResourcePoliciesRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for FirewallPolicies.AddRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddRuleFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "250523523")]
pub firewall_policy_rule_resource: ::core::option::Option<FirewallPolicyRule>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NetworkFirewallPolicies.AddRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddRuleNetworkFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "250523523")]
pub firewall_policy_rule_resource: ::core::option::Option<FirewallPolicyRule>,
/// When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority.
#[prost(int32, optional, tag = "329635359")]
pub max_priority: ::core::option::Option<i32>,
/// When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority.
#[prost(int32, optional, tag = "267190513")]
pub min_priority: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionNetworkFirewallPolicies.AddRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddRuleRegionNetworkFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "250523523")]
pub firewall_policy_rule_resource: ::core::option::Option<FirewallPolicyRule>,
/// When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority.
#[prost(int32, optional, tag = "329635359")]
pub max_priority: ::core::option::Option<i32>,
/// When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority.
#[prost(int32, optional, tag = "267190513")]
pub min_priority: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionSecurityPolicies.AddRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddRuleRegionSecurityPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the security policy to update.
#[prost(string, tag = "171082513")]
pub security_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "402693443")]
pub security_policy_rule_resource: ::core::option::Option<SecurityPolicyRule>,
/// If true, the request will not be committed.
#[prost(bool, optional, tag = "242744629")]
pub validate_only: ::core::option::Option<bool>,
}
/// A request message for SecurityPolicies.AddRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddRuleSecurityPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the security policy to update.
#[prost(string, tag = "171082513")]
pub security_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "402693443")]
pub security_policy_rule_resource: ::core::option::Option<SecurityPolicyRule>,
/// If true, the request will not be committed.
#[prost(bool, optional, tag = "242744629")]
pub validate_only: ::core::option::Option<bool>,
}
/// A request message for BackendBuckets.AddSignedUrlKey. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddSignedUrlKeyBackendBucketRequest {
/// Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035.
#[prost(string, tag = "91714037")]
pub backend_bucket: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "457625985")]
pub signed_url_key_resource: ::core::option::Option<SignedUrlKey>,
}
/// A request message for BackendServices.AddSignedUrlKey. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddSignedUrlKeyBackendServiceRequest {
/// Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035.
#[prost(string, tag = "306946058")]
pub backend_service: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "457625985")]
pub signed_url_key_resource: ::core::option::Option<SignedUrlKey>,
}
/// Represents an IP Address resource. Google Compute Engine has two IP Address resources: * [Global (external and internal)](<https://cloud.google.com/compute/docs/reference/rest/v1/globalAddresses>) * [Regional (external and internal)](<https://cloud.google.com/compute/docs/reference/rest/v1/addresses>) For more information, see Reserving a static external IP address.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Address {
/// The static IP address represented by this resource.
#[prost(string, optional, tag = "462920692")]
pub address: ::core::option::Option<::prost::alloc::string::String>,
/// The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL.
/// Check the AddressType enum for the list of possible values.
#[prost(string, optional, tag = "264307877")]
pub address_type: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this field when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// The IP version that will be used by this address. Valid options are IPV4 or IPV6.
/// Check the IpVersion enum for the list of possible values.
#[prost(string, optional, tag = "294959552")]
pub ip_version: ::core::option::Option<::prost::alloc::string::String>,
/// The endpoint type of this address, which should be VM or NETLB. This is used for deciding which type of endpoint this address can be used after the external IPv6 address reservation.
/// Check the Ipv6EndpointType enum for the list of possible values.
#[prost(string, optional, tag = "97501004")]
pub ipv6_endpoint_type: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Type of the resource. Always compute#address for addresses.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// A fingerprint for the labels being applied to this Address, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an Address.
#[prost(string, optional, tag = "178124825")]
pub label_fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with the VPC_PEERING purpose.
#[prost(string, optional, tag = "232872494")]
pub network: ::core::option::Option<::prost::alloc::string::String>,
/// This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD. Internal IP addresses are always Premium Tier; global external IP addresses are always Premium Tier; regional external IP addresses can be either Standard or Premium Tier. If this field is not specified, it is assumed to be PREMIUM.
/// Check the NetworkTier enum for the list of possible values.
#[prost(string, optional, tag = "517397843")]
pub network_tier: ::core::option::Option<::prost::alloc::string::String>,
/// The prefix length if the resource represents an IP range.
#[prost(int32, optional, tag = "453565747")]
pub prefix_length: ::core::option::Option<i32>,
/// The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for private services access allocated ranges. - NAT_AUTO for the regional external IP addresses used by Cloud NAT when allocating addresses using automatic NAT IP address allocation. - IPSEC_INTERCONNECT for addresses created from a private IP range that are reserved for a VLAN attachment in an *HA VPN over Cloud Interconnect* configuration. These addresses are regional resources. - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is used to configure Private Service Connect. Only global internal addresses can use this purpose.
/// Check the Purpose enum for the list of possible values.
#[prost(string, optional, tag = "316407070")]
pub purpose: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The URL of the region where a regional address resides. For regional addresses, you must specify the region as a path parameter in the HTTP request URL. *This field is not applicable to global addresses.*
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The status of the address, which can be one of RESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork's IP range. This field can only be used with INTERNAL type with a GCE_ENDPOINT or DNS_RESOLVER purpose.
#[prost(string, optional, tag = "307827694")]
pub subnetwork: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The URLs of the resources that are using this address.
#[prost(string, repeated, tag = "111578632")]
pub users: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Address`.
pub mod address {
/// The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum AddressType {
/// A value indicating that the enum field is not set.
UndefinedAddressType = 0,
/// A publicly visible external IP address.
External = 35607499,
/// A private network IP address, for use with an Instance or Internal Load Balancer forwarding rule.
Internal = 279295677,
UnspecifiedType = 53933922,
}
impl AddressType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
AddressType::UndefinedAddressType => "UNDEFINED_ADDRESS_TYPE",
AddressType::External => "EXTERNAL",
AddressType::Internal => "INTERNAL",
AddressType::UnspecifiedType => "UNSPECIFIED_TYPE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ADDRESS_TYPE" => Some(Self::UndefinedAddressType),
"EXTERNAL" => Some(Self::External),
"INTERNAL" => Some(Self::Internal),
"UNSPECIFIED_TYPE" => Some(Self::UnspecifiedType),
_ => None,
}
}
}
/// The IP version that will be used by this address. Valid options are IPV4 or IPV6.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum IpVersion {
/// A value indicating that the enum field is not set.
UndefinedIpVersion = 0,
Ipv4 = 2254341,
Ipv6 = 2254343,
UnspecifiedVersion = 21850000,
}
impl IpVersion {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
IpVersion::UndefinedIpVersion => "UNDEFINED_IP_VERSION",
IpVersion::Ipv4 => "IPV4",
IpVersion::Ipv6 => "IPV6",
IpVersion::UnspecifiedVersion => "UNSPECIFIED_VERSION",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_IP_VERSION" => Some(Self::UndefinedIpVersion),
"IPV4" => Some(Self::Ipv4),
"IPV6" => Some(Self::Ipv6),
"UNSPECIFIED_VERSION" => Some(Self::UnspecifiedVersion),
_ => None,
}
}
}
/// The endpoint type of this address, which should be VM or NETLB. This is used for deciding which type of endpoint this address can be used after the external IPv6 address reservation.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Ipv6EndpointType {
/// A value indicating that the enum field is not set.
UndefinedIpv6EndpointType = 0,
/// Reserved IPv6 address can be used on network load balancer.
Netlb = 74173363,
/// Reserved IPv6 address can be used on VM.
Vm = 2743,
}
impl Ipv6EndpointType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Ipv6EndpointType::UndefinedIpv6EndpointType => {
"UNDEFINED_IPV6_ENDPOINT_TYPE"
}
Ipv6EndpointType::Netlb => "NETLB",
Ipv6EndpointType::Vm => "VM",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_IPV6_ENDPOINT_TYPE" => Some(Self::UndefinedIpv6EndpointType),
"NETLB" => Some(Self::Netlb),
"VM" => Some(Self::Vm),
_ => None,
}
}
}
/// This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD. Internal IP addresses are always Premium Tier; global external IP addresses are always Premium Tier; regional external IP addresses can be either Standard or Premium Tier. If this field is not specified, it is assumed to be PREMIUM.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum NetworkTier {
/// A value indicating that the enum field is not set.
UndefinedNetworkTier = 0,
/// Public internet quality with fixed bandwidth.
FixedStandard = 310464328,
/// High quality, Google-grade network tier, support for all networking products.
Premium = 399530551,
/// Public internet quality, only limited support for other networking products.
Standard = 484642493,
/// (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier is expired or not configured.
StandardOverridesFixedStandard = 465847234,
}
impl NetworkTier {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
NetworkTier::UndefinedNetworkTier => "UNDEFINED_NETWORK_TIER",
NetworkTier::FixedStandard => "FIXED_STANDARD",
NetworkTier::Premium => "PREMIUM",
NetworkTier::Standard => "STANDARD",
NetworkTier::StandardOverridesFixedStandard => {
"STANDARD_OVERRIDES_FIXED_STANDARD"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_NETWORK_TIER" => Some(Self::UndefinedNetworkTier),
"FIXED_STANDARD" => Some(Self::FixedStandard),
"PREMIUM" => Some(Self::Premium),
"STANDARD" => Some(Self::Standard),
"STANDARD_OVERRIDES_FIXED_STANDARD" => {
Some(Self::StandardOverridesFixedStandard)
}
_ => None,
}
}
}
/// The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for private services access allocated ranges. - NAT_AUTO for the regional external IP addresses used by Cloud NAT when allocating addresses using automatic NAT IP address allocation. - IPSEC_INTERCONNECT for addresses created from a private IP range that are reserved for a VLAN attachment in an *HA VPN over Cloud Interconnect* configuration. These addresses are regional resources. - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is used to configure Private Service Connect. Only global internal addresses can use this purpose.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Purpose {
/// A value indicating that the enum field is not set.
UndefinedPurpose = 0,
/// DNS resolver address in the subnetwork.
DnsResolver = 476114556,
/// VM internal/alias IP, Internal LB service IP, etc.
GceEndpoint = 230515243,
/// A regional internal IP address range reserved for the VLAN attachment that is used in HA VPN over Cloud Interconnect. This regional internal IP address range must not overlap with any IP address range of subnet/route in the VPC network and its peering networks. After the VLAN attachment is created with the reserved IP address range, when creating a new VPN gateway, its interface IP address is allocated from the associated VLAN attachment’s IP address range.
IpsecInterconnect = 340437251,
/// External IP automatically reserved for Cloud NAT.
NatAuto = 163666477,
/// A private network IP address that can be used to configure Private Service Connect. This purpose can be specified only for GLOBAL addresses of Type INTERNAL
PrivateServiceConnect = 48134724,
/// A regional internal IP address range reserved for Serverless.
Serverless = 270492508,
/// A private network IP address that can be shared by multiple Internal Load Balancer forwarding rules.
SharedLoadbalancerVip = 294447572,
/// IP range for peer networks.
VpcPeering = 400800170,
}
impl Purpose {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Purpose::UndefinedPurpose => "UNDEFINED_PURPOSE",
Purpose::DnsResolver => "DNS_RESOLVER",
Purpose::GceEndpoint => "GCE_ENDPOINT",
Purpose::IpsecInterconnect => "IPSEC_INTERCONNECT",
Purpose::NatAuto => "NAT_AUTO",
Purpose::PrivateServiceConnect => "PRIVATE_SERVICE_CONNECT",
Purpose::Serverless => "SERVERLESS",
Purpose::SharedLoadbalancerVip => "SHARED_LOADBALANCER_VIP",
Purpose::VpcPeering => "VPC_PEERING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PURPOSE" => Some(Self::UndefinedPurpose),
"DNS_RESOLVER" => Some(Self::DnsResolver),
"GCE_ENDPOINT" => Some(Self::GceEndpoint),
"IPSEC_INTERCONNECT" => Some(Self::IpsecInterconnect),
"NAT_AUTO" => Some(Self::NatAuto),
"PRIVATE_SERVICE_CONNECT" => Some(Self::PrivateServiceConnect),
"SERVERLESS" => Some(Self::Serverless),
"SHARED_LOADBALANCER_VIP" => Some(Self::SharedLoadbalancerVip),
"VPC_PEERING" => Some(Self::VpcPeering),
_ => None,
}
}
}
/// \[Output Only\] The status of the address, which can be one of RESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// Address is being used by another resource and is not available.
InUse = 17393485,
/// Address is reserved and available to use.
Reserved = 432241448,
/// Address is being reserved.
Reserving = 514587225,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::InUse => "IN_USE",
Status::Reserved => "RESERVED",
Status::Reserving => "RESERVING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"IN_USE" => Some(Self::InUse),
"RESERVED" => Some(Self::Reserved),
"RESERVING" => Some(Self::Reserving),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddressAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of AddressesScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
AddressesScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#addressAggregatedList for aggregated lists of addresses.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of addresses.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddressList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Address resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Address>,
/// \[Output Only\] Type of resource. Always compute#addressList for lists of addresses.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddressesScopedList {
/// \[Output Only\] A list of addresses contained in this scope.
#[prost(message, repeated, tag = "337673122")]
pub addresses: ::prost::alloc::vec::Vec<Address>,
/// \[Output Only\] Informational warning which replaces the list of addresses when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Specifies options for controlling advanced machine features. Options that would traditionally be configured in a BIOS belong here. Features that require operating system support may have corresponding entries in the GuestOsFeatures of an Image (e.g., whether or not the OS in the Image supports nested virtualization being enabled or disabled).
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdvancedMachineFeatures {
/// Whether to enable nested virtualization or not (default is false).
#[prost(bool, optional, tag = "16639365")]
pub enable_nested_virtualization: ::core::option::Option<bool>,
/// Whether to enable UEFI networking for instance creation.
#[prost(bool, optional, tag = "334485668")]
pub enable_uefi_networking: ::core::option::Option<bool>,
/// The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
#[prost(int32, optional, tag = "352611671")]
pub threads_per_core: ::core::option::Option<i32>,
/// The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
#[prost(int32, optional, tag = "193198684")]
pub visible_core_count: ::core::option::Option<i32>,
}
/// A request message for AcceleratorTypes.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListAcceleratorTypesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for Addresses.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListAddressesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for Autoscalers.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListAutoscalersRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for BackendServices.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListBackendServicesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the project scoping this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for DiskTypes.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListDiskTypesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for Disks.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListDisksRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for ForwardingRules.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListForwardingRulesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for GlobalOperations.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListGlobalOperationsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for HealthChecks.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListHealthChecksRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the project scoping this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for InstanceGroupManagers.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListInstanceGroupManagersRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for InstanceGroups.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListInstanceGroupsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for InstanceTemplates.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListInstanceTemplatesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the project scoping this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for Instances.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListInstancesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for InstantSnapshots.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListInstantSnapshotsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for InterconnectAttachments.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListInterconnectAttachmentsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for MachineTypes.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListMachineTypesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for NetworkAttachments.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListNetworkAttachmentsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for NetworkEdgeSecurityServices.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListNetworkEdgeSecurityServicesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the project scoping this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for NetworkEndpointGroups.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListNetworkEndpointGroupsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for NodeGroups.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListNodeGroupsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for NodeTemplates.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListNodeTemplatesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for NodeTypes.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListNodeTypesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for PacketMirrorings.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListPacketMirroringsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for PublicDelegatedPrefixes.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListPublicDelegatedPrefixesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the project scoping this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for RegionCommitments.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListRegionCommitmentsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for Reservations.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListReservationsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for ResourcePolicies.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListResourcePoliciesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for Routers.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListRoutersRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for SecurityPolicies.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListSecurityPoliciesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the project scoping this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for ServiceAttachments.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListServiceAttachmentsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the project scoping this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for SslCertificates.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListSslCertificatesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the project scoping this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for SslPolicies.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListSslPoliciesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the project scoping this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for Subnetworks.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListSubnetworksRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for TargetHttpProxies.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListTargetHttpProxiesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the project scoping this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for TargetHttpsProxies.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListTargetHttpsProxiesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the project scoping this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for TargetInstances.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListTargetInstancesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for TargetPools.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListTargetPoolsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for TargetTcpProxies.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListTargetTcpProxiesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the project scoping this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for TargetVpnGateways.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListTargetVpnGatewaysRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for UrlMaps.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListUrlMapsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the project scoping this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for VpnGateways.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListVpnGatewaysRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// A request message for VpnTunnels.AggregatedList. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedListVpnTunnelsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
#[prost(bool, optional, tag = "391327988")]
pub include_all_scopes: ::core::option::Option<bool>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
#[prost(int64, optional, tag = "316757497")]
pub service_project_number: ::core::option::Option<i64>,
}
/// An alias IP range attached to an instance's network interface.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AliasIpRange {
/// The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24).
#[prost(string, optional, tag = "98117322")]
pub ip_cidr_range: ::core::option::Option<::prost::alloc::string::String>,
/// The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
#[prost(string, optional, tag = "387995966")]
pub subnetwork_range_name: ::core::option::Option<::prost::alloc::string::String>,
}
/// This reservation type is specified by total resource amounts (e.g. total count of CPUs) and can account for multiple instance SKUs. In other words, one can create instances of varying shapes against this reservation.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AllocationAggregateReservation {
/// \[Output only\] List of resources currently in use.
#[prost(message, repeated, tag = "409009107")]
pub in_use_resources: ::prost::alloc::vec::Vec<
AllocationAggregateReservationReservedResourceInfo,
>,
/// List of reserved resources (CPUs, memory, accelerators).
#[prost(message, repeated, tag = "213217742")]
pub reserved_resources: ::prost::alloc::vec::Vec<
AllocationAggregateReservationReservedResourceInfo,
>,
/// The VM family that all instances scheduled against this reservation must belong to.
/// Check the VmFamily enum for the list of possible values.
#[prost(string, optional, tag = "125017580")]
pub vm_family: ::core::option::Option<::prost::alloc::string::String>,
/// The workload type of the instances that will target this reservation.
/// Check the WorkloadType enum for the list of possible values.
#[prost(string, optional, tag = "273432322")]
pub workload_type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `AllocationAggregateReservation`.
pub mod allocation_aggregate_reservation {
/// The VM family that all instances scheduled against this reservation must belong to.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum VmFamily {
/// A value indicating that the enum field is not set.
UndefinedVmFamily = 0,
CloudTpuLiteDeviceCt5l = 108020067,
CloudTpuLitePodSliceCt5lp = 18705267,
CloudTpuPodSliceCt4p = 517384407,
}
impl VmFamily {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
VmFamily::UndefinedVmFamily => "UNDEFINED_VM_FAMILY",
VmFamily::CloudTpuLiteDeviceCt5l => {
"VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L"
}
VmFamily::CloudTpuLitePodSliceCt5lp => {
"VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP"
}
VmFamily::CloudTpuPodSliceCt4p => "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_VM_FAMILY" => Some(Self::UndefinedVmFamily),
"VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L" => {
Some(Self::CloudTpuLiteDeviceCt5l)
}
"VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP" => {
Some(Self::CloudTpuLitePodSliceCt5lp)
}
"VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P" => Some(Self::CloudTpuPodSliceCt4p),
_ => None,
}
}
}
/// The workload type of the instances that will target this reservation.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum WorkloadType {
/// A value indicating that the enum field is not set.
UndefinedWorkloadType = 0,
/// Reserved resources will be optimized for BATCH workloads, such as ML training.
Batch = 62971674,
/// Reserved resources will be optimized for SERVING workloads, such as ML inference.
Serving = 17781740,
Unspecified = 526786327,
}
impl WorkloadType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
WorkloadType::UndefinedWorkloadType => "UNDEFINED_WORKLOAD_TYPE",
WorkloadType::Batch => "BATCH",
WorkloadType::Serving => "SERVING",
WorkloadType::Unspecified => "UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_WORKLOAD_TYPE" => Some(Self::UndefinedWorkloadType),
"BATCH" => Some(Self::Batch),
"SERVING" => Some(Self::Serving),
"UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AllocationAggregateReservationReservedResourceInfo {
/// Properties of accelerator resources in this reservation.
#[prost(message, optional, tag = "424338027")]
pub accelerator: ::core::option::Option<
AllocationAggregateReservationReservedResourceInfoAccelerator,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AllocationAggregateReservationReservedResourceInfoAccelerator {
/// Number of accelerators of specified type.
#[prost(int32, optional, tag = "504879675")]
pub accelerator_count: ::core::option::Option<i32>,
/// Full or partial URL to accelerator type. e.g. "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l"
#[prost(string, optional, tag = "138031246")]
pub accelerator_type: ::core::option::Option<::prost::alloc::string::String>,
}
/// \[Output Only\] Contains output only fields.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AllocationResourceStatus {
/// Allocation Properties of this reservation.
#[prost(message, optional, tag = "196231151")]
pub specific_sku_allocation: ::core::option::Option<
AllocationResourceStatusSpecificSkuAllocation,
>,
}
/// Contains Properties set for the reservation.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AllocationResourceStatusSpecificSkuAllocation {
/// ID of the instance template used to populate reservation properties.
#[prost(string, optional, tag = "111196154")]
pub source_instance_template_id: ::core::option::Option<
::prost::alloc::string::String,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk {
/// Specifies the size of the disk in base-2 GB.
#[prost(int64, optional, tag = "316263735")]
pub disk_size_gb: ::core::option::Option<i64>,
/// Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance.
/// Check the Interface enum for the list of possible values.
#[prost(string, optional, tag = "502623545")]
pub interface: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk`.
pub mod allocation_specific_sku_allocation_allocated_instance_properties_reserved_disk {
/// Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Interface {
/// A value indicating that the enum field is not set.
UndefinedInterface = 0,
Nvme = 2408800,
Scsi = 2539686,
}
impl Interface {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Interface::UndefinedInterface => "UNDEFINED_INTERFACE",
Interface::Nvme => "NVME",
Interface::Scsi => "SCSI",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_INTERFACE" => Some(Self::UndefinedInterface),
"NVME" => Some(Self::Nvme),
"SCSI" => Some(Self::Scsi),
_ => None,
}
}
}
}
/// Properties of the SKU instances being reserved. Next ID: 9
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AllocationSpecificSkuAllocationReservedInstanceProperties {
/// Specifies accelerator type and count.
#[prost(message, repeated, tag = "463595119")]
pub guest_accelerators: ::prost::alloc::vec::Vec<AcceleratorConfig>,
/// Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.
#[prost(message, repeated, tag = "229951299")]
pub local_ssds: ::prost::alloc::vec::Vec<
AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk,
>,
/// An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API.
#[prost(string, optional, tag = "350519505")]
pub location_hint: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.
#[prost(string, optional, tag = "227711026")]
pub machine_type: ::core::option::Option<::prost::alloc::string::String>,
/// Minimum cpu platform the reservation.
#[prost(string, optional, tag = "242912759")]
pub min_cpu_platform: ::core::option::Option<::prost::alloc::string::String>,
}
/// This reservation type allows to pre allocate specific instance configuration. Next ID: 6
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AllocationSpecificSkuReservation {
/// \[Output Only\] Indicates how many instances are actually usable currently.
#[prost(int64, optional, tag = "281197645")]
pub assured_count: ::core::option::Option<i64>,
/// Specifies the number of resources that are allocated.
#[prost(int64, optional, tag = "94851343")]
pub count: ::core::option::Option<i64>,
/// \[Output Only\] Indicates how many instances are in use.
#[prost(int64, optional, tag = "493458877")]
pub in_use_count: ::core::option::Option<i64>,
/// The instance properties for the reservation.
#[prost(message, optional, tag = "215355165")]
pub instance_properties: ::core::option::Option<
AllocationSpecificSkuAllocationReservedInstanceProperties,
>,
/// Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field. This field is optional, and it can be a full or partial URL. For example, the following are all valid URLs to an instance template: - <https://www.googleapis.com/compute/v1/projects/project> /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate
#[prost(string, optional, tag = "332423616")]
pub source_instance_template: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Allowed {
/// The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP protocol number.
#[prost(string, optional, tag = "488094525")]
pub i_p_protocol: ::core::option::Option<::prost::alloc::string::String>,
/// An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: \["22"\], \["80","443"\], and \["12345-12349"\].
#[prost(string, repeated, tag = "106854418")]
pub ports: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// A request message for PublicAdvertisedPrefixes.Announce. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AnnouncePublicAdvertisedPrefixeRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the public advertised prefix. It should comply with RFC1035.
#[prost(string, tag = "101874590")]
pub public_advertised_prefix: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for PublicDelegatedPrefixes.Announce. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AnnouncePublicDelegatedPrefixeRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the public delegated prefix. It should comply with RFC1035.
#[prost(string, tag = "204238440")]
pub public_delegated_prefix: ::prost::alloc::string::String,
/// The name of the region where the public delegated prefix is located. It should comply with RFC1035.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for InstanceGroupManagers.ApplyUpdatesToInstances. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplyUpdatesToInstancesInstanceGroupManagerRequest {
/// The name of the managed instance group, should conform to RFC1035.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "259242835")]
pub instance_group_managers_apply_updates_request_resource: ::core::option::Option<
InstanceGroupManagersApplyUpdatesRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the zone where the managed instance group is located. Should conform to RFC1035.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionInstanceGroupManagers.ApplyUpdatesToInstances. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest {
/// The name of the managed instance group, should conform to RFC1035.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request, should conform to RFC1035.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "76248318")]
pub region_instance_group_managers_apply_updates_request_resource: ::core::option::Option<
RegionInstanceGroupManagersApplyUpdatesRequest,
>,
}
/// A request message for Instances.AttachDisk. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AttachDiskInstanceRequest {
/// The body resource for this request
#[prost(message, optional, tag = "90605845")]
pub attached_disk_resource: ::core::option::Option<AttachedDisk>,
/// Whether to force attach the regional disk even if it's currently attached to another instance. If you try to force attach a zonal disk to an instance, you will receive an error.
#[prost(bool, optional, tag = "142758425")]
pub force_attach: ::core::option::Option<bool>,
/// The instance name for this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for GlobalNetworkEndpointGroups.AttachNetworkEndpoints. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest {
/// The body resource for this request
#[prost(message, optional, tag = "30691563")]
pub global_network_endpoint_groups_attach_endpoints_request_resource: ::core::option::Option<
GlobalNetworkEndpointGroupsAttachEndpointsRequest,
>,
/// The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035.
#[prost(string, tag = "433907078")]
pub network_endpoint_group: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NetworkEndpointGroups.AttachNetworkEndpoints. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AttachNetworkEndpointsNetworkEndpointGroupRequest {
/// The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035.
#[prost(string, tag = "433907078")]
pub network_endpoint_group: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "531079")]
pub network_endpoint_groups_attach_endpoints_request_resource: ::core::option::Option<
NetworkEndpointGroupsAttachEndpointsRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where the network endpoint group is located. It should comply with RFC1035.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionNetworkEndpointGroups.AttachNetworkEndpoints. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AttachNetworkEndpointsRegionNetworkEndpointGroupRequest {
/// The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035.
#[prost(string, tag = "433907078")]
pub network_endpoint_group: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region where you want to create the network endpoint group. It should comply with RFC1035.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "334986492")]
pub region_network_endpoint_groups_attach_endpoints_request_resource: ::core::option::Option<
RegionNetworkEndpointGroupsAttachEndpointsRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// An instance-attached disk resource.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AttachedDisk {
/// \[Output Only\] The architecture of the attached disk. Valid values are ARM64 or X86_64.
/// Check the Architecture enum for the list of possible values.
#[prost(string, optional, tag = "302803283")]
pub architecture: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
#[prost(bool, optional, tag = "464761403")]
pub auto_delete: ::core::option::Option<bool>,
/// Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
#[prost(bool, optional, tag = "3029746")]
pub boot: ::core::option::Option<bool>,
/// Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
#[prost(string, optional, tag = "67541716")]
pub device_name: ::core::option::Option<::prost::alloc::string::String>,
/// Encrypts or decrypts a disk using a customer-supplied encryption key. If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key. If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance. If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group.
#[prost(message, optional, tag = "271660677")]
pub disk_encryption_key: ::core::option::Option<CustomerEncryptionKey>,
/// The size of the disk in GB.
#[prost(int64, optional, tag = "316263735")]
pub disk_size_gb: ::core::option::Option<i64>,
/// \[Input Only\] Whether to force attach the regional disk even if it's currently attached to another instance. If you try to force attach a zonal disk to an instance, you will receive an error.
#[prost(bool, optional, tag = "142758425")]
pub force_attach: ::core::option::Option<bool>,
/// A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
#[prost(message, repeated, tag = "79294545")]
pub guest_os_features: ::prost::alloc::vec::Vec<GuestOsFeature>,
/// \[Output Only\] A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.
#[prost(int32, optional, tag = "100346066")]
pub index: ::core::option::Option<i32>,
/// \[Input Only\] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
#[prost(message, optional, tag = "17697045")]
pub initialize_params: ::core::option::Option<AttachedDiskInitializeParams>,
/// Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. For most machine types, the default is SCSI. Local SSDs can use either NVME or SCSI. In certain configurations, persistent disks can use NVMe. For more information, see About persistent disks.
/// Check the Interface enum for the list of possible values.
#[prost(string, optional, tag = "502623545")]
pub interface: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Type of the resource. Always compute#attachedDisk for attached disks.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Any valid publicly visible licenses.
#[prost(string, repeated, tag = "337642578")]
pub licenses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
/// Check the Mode enum for the list of possible values.
#[prost(string, optional, tag = "3357091")]
pub mode: ::core::option::Option<::prost::alloc::string::String>,
/// For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is set to PRESERVED if the LocalSSD data has been saved to a persistent location by customer request. (see the discard_local_ssd option on Stop/Suspend). Read-only in the api.
/// Check the SavedState enum for the list of possible values.
#[prost(string, optional, tag = "411587801")]
pub saved_state: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] shielded vm initial state stored on disk
#[prost(message, optional, tag = "192356867")]
pub shielded_instance_initial_state: ::core::option::Option<InitialStateConfig>,
/// Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. If desired, you can also attach existing non-root persistent disks using this property. This field is only applicable for persistent disks. Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional disk.
#[prost(string, optional, tag = "177235995")]
pub source: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `AttachedDisk`.
pub mod attached_disk {
/// \[Output Only\] The architecture of the attached disk. Valid values are ARM64 or X86_64.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Architecture {
/// A value indicating that the enum field is not set.
UndefinedArchitecture = 0,
/// Default value indicating Architecture is not set.
Unspecified = 394750507,
/// Machines with architecture ARM64
Arm64 = 62547450,
/// Machines with architecture X86_64
X8664 = 425300551,
}
impl Architecture {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Architecture::UndefinedArchitecture => "UNDEFINED_ARCHITECTURE",
Architecture::Unspecified => "ARCHITECTURE_UNSPECIFIED",
Architecture::Arm64 => "ARM64",
Architecture::X8664 => "X86_64",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ARCHITECTURE" => Some(Self::UndefinedArchitecture),
"ARCHITECTURE_UNSPECIFIED" => Some(Self::Unspecified),
"ARM64" => Some(Self::Arm64),
"X86_64" => Some(Self::X8664),
_ => None,
}
}
}
/// Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. For most machine types, the default is SCSI. Local SSDs can use either NVME or SCSI. In certain configurations, persistent disks can use NVMe. For more information, see About persistent disks.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Interface {
/// A value indicating that the enum field is not set.
UndefinedInterface = 0,
Nvme = 2408800,
Scsi = 2539686,
}
impl Interface {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Interface::UndefinedInterface => "UNDEFINED_INTERFACE",
Interface::Nvme => "NVME",
Interface::Scsi => "SCSI",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_INTERFACE" => Some(Self::UndefinedInterface),
"NVME" => Some(Self::Nvme),
"SCSI" => Some(Self::Scsi),
_ => None,
}
}
}
/// The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Mode {
/// A value indicating that the enum field is not set.
UndefinedMode = 0,
/// Attaches this disk in read-only mode. Multiple virtual machines can use a disk in read-only mode at a time.
ReadOnly = 91950261,
/// *\[Default\]* Attaches this disk in read-write mode. Only one virtual machine at a time can be attached to a disk in read-write mode.
ReadWrite = 173607894,
}
impl Mode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Mode::UndefinedMode => "UNDEFINED_MODE",
Mode::ReadOnly => "READ_ONLY",
Mode::ReadWrite => "READ_WRITE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_MODE" => Some(Self::UndefinedMode),
"READ_ONLY" => Some(Self::ReadOnly),
"READ_WRITE" => Some(Self::ReadWrite),
_ => None,
}
}
}
/// For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is set to PRESERVED if the LocalSSD data has been saved to a persistent location by customer request. (see the discard_local_ssd option on Stop/Suspend). Read-only in the api.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum SavedState {
/// A value indicating that the enum field is not set.
UndefinedSavedState = 0,
/// *\[Default\]* Disk state has not been preserved.
DiskSavedStateUnspecified = 391290831,
/// Disk state has been preserved.
Preserved = 254159736,
}
impl SavedState {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
SavedState::UndefinedSavedState => "UNDEFINED_SAVED_STATE",
SavedState::DiskSavedStateUnspecified => "DISK_SAVED_STATE_UNSPECIFIED",
SavedState::Preserved => "PRESERVED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_SAVED_STATE" => Some(Self::UndefinedSavedState),
"DISK_SAVED_STATE_UNSPECIFIED" => Some(Self::DiskSavedStateUnspecified),
"PRESERVED" => Some(Self::Preserved),
_ => None,
}
}
}
/// Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
Persistent = 460683927,
Scratch = 496778970,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::Persistent => "PERSISTENT",
Type::Scratch => "SCRATCH",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"PERSISTENT" => Some(Self::Persistent),
"SCRATCH" => Some(Self::Scratch),
_ => None,
}
}
}
}
/// \[Input Only\] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This field is persisted and returned for instanceTemplate and not returned in the context of instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AttachedDiskInitializeParams {
/// The architecture of the attached disk. Valid values are arm64 or x86_64.
/// Check the Architecture enum for the list of possible values.
#[prost(string, optional, tag = "302803283")]
pub architecture: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description. Provide this property when creating the disk.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the disk name. If not specified, the default is to use the name of the instance. If a disk with the same name already exists in the given region, the existing disk is attached to the new instance and the new disk is not created.
#[prost(string, optional, tag = "92807149")]
pub disk_name: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the size of the disk in base-2 GB. The size must be at least 10 GB. If you specify a sourceImage, which is required for boot disks, the default size is the size of the sourceImage. If you do not specify a sourceImage, the default disk size is 500 GB.
#[prost(int64, optional, tag = "316263735")]
pub disk_size_gb: ::core::option::Option<i64>,
/// Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: <https://www.googleapis.com/compute/v1/projects/project/zones/zone> /diskTypes/pd-standard For a full list of acceptable values, see Persistent disk types. If you specify this field when creating a VM, you can provide either the full or partial URL. For example, the following values are valid: - <https://www.googleapis.com/compute/v1/projects/project/zones/zone> /diskTypes/diskType - projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType If you specify this field when creating or updating an instance template or all-instances configuration, specify the type of the disk, not the URL. For example: pd-standard.
#[prost(string, optional, tag = "93009052")]
pub disk_type: ::core::option::Option<::prost::alloc::string::String>,
/// Whether this disk is using confidential compute mode.
#[prost(bool, optional, tag = "102135228")]
pub enable_confidential_compute: ::core::option::Option<bool>,
/// Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// A list of publicly visible licenses. Reserved for Google's use.
#[prost(string, repeated, tag = "337642578")]
pub licenses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Specifies which action to take on instance update with this disk. Default is to use the existing disk.
/// Check the OnUpdateAction enum for the list of possible values.
#[prost(string, optional, tag = "202451980")]
pub on_update_action: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
#[prost(int64, optional, tag = "186769108")]
pub provisioned_iops: ::core::option::Option<i64>,
/// Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle. Values must greater than or equal to 1.
#[prost(int64, optional, tag = "526524181")]
pub provisioned_throughput: ::core::option::Option<i64>,
/// Required for each regional disk associated with the instance. Specify the URLs of the zones where the disk should be replicated to. You must provide exactly two replica zones, and one zone must be the same as the instance zone.
#[prost(string, repeated, tag = "48438272")]
pub replica_zones: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
#[prost(btree_map = "string, string", tag = "377671164")]
pub resource_manager_tags: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name.
#[prost(string, repeated, tag = "22220385")]
pub resource_policies: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family If the source image is deleted later, this field will not be set.
#[prost(string, optional, tag = "50443319")]
pub source_image: ::core::option::Option<::prost::alloc::string::String>,
/// The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. InstanceTemplate and InstancePropertiesPatch do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
#[prost(message, optional, tag = "381503659")]
pub source_image_encryption_key: ::core::option::Option<CustomerEncryptionKey>,
/// The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required except for local SSD. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
#[prost(string, optional, tag = "126061928")]
pub source_snapshot: ::core::option::Option<::prost::alloc::string::String>,
/// The customer-supplied encryption key of the source snapshot.
#[prost(message, optional, tag = "303679322")]
pub source_snapshot_encryption_key: ::core::option::Option<CustomerEncryptionKey>,
}
/// Nested message and enum types in `AttachedDiskInitializeParams`.
pub mod attached_disk_initialize_params {
/// The architecture of the attached disk. Valid values are arm64 or x86_64.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Architecture {
/// A value indicating that the enum field is not set.
UndefinedArchitecture = 0,
/// Default value indicating Architecture is not set.
Unspecified = 394750507,
/// Machines with architecture ARM64
Arm64 = 62547450,
/// Machines with architecture X86_64
X8664 = 425300551,
}
impl Architecture {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Architecture::UndefinedArchitecture => "UNDEFINED_ARCHITECTURE",
Architecture::Unspecified => "ARCHITECTURE_UNSPECIFIED",
Architecture::Arm64 => "ARM64",
Architecture::X8664 => "X86_64",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ARCHITECTURE" => Some(Self::UndefinedArchitecture),
"ARCHITECTURE_UNSPECIFIED" => Some(Self::Unspecified),
"ARM64" => Some(Self::Arm64),
"X86_64" => Some(Self::X8664),
_ => None,
}
}
}
/// Specifies which action to take on instance update with this disk. Default is to use the existing disk.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum OnUpdateAction {
/// A value indicating that the enum field is not set.
UndefinedOnUpdateAction = 0,
/// Always recreate the disk.
RecreateDisk = 494767853,
/// Recreate the disk if source (image, snapshot) of this disk is different from source of existing disk.
RecreateDiskIfSourceChanged = 398099712,
/// Use the existing disk, this is the default behaviour.
UseExistingDisk = 232682233,
}
impl OnUpdateAction {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
OnUpdateAction::UndefinedOnUpdateAction => "UNDEFINED_ON_UPDATE_ACTION",
OnUpdateAction::RecreateDisk => "RECREATE_DISK",
OnUpdateAction::RecreateDiskIfSourceChanged => {
"RECREATE_DISK_IF_SOURCE_CHANGED"
}
OnUpdateAction::UseExistingDisk => "USE_EXISTING_DISK",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ON_UPDATE_ACTION" => Some(Self::UndefinedOnUpdateAction),
"RECREATE_DISK" => Some(Self::RecreateDisk),
"RECREATE_DISK_IF_SOURCE_CHANGED" => {
Some(Self::RecreateDiskIfSourceChanged)
}
"USE_EXISTING_DISK" => Some(Self::UseExistingDisk),
_ => None,
}
}
}
}
/// Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": \[ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" \] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": \[ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" \] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuditConfig {
/// The configuration for logging of each type of permission.
#[prost(message, repeated, tag = "488420626")]
pub audit_log_configs: ::prost::alloc::vec::Vec<AuditLogConfig>,
/// This is deprecated and has no effect. Do not use.
#[prost(string, repeated, tag = "232615576")]
pub exempted_members: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
#[prost(string, optional, tag = "373540533")]
pub service: ::core::option::Option<::prost::alloc::string::String>,
}
/// Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": \[ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" \] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuditLogConfig {
/// Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
#[prost(string, repeated, tag = "232615576")]
pub exempted_members: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// This is deprecated and has no effect. Do not use.
#[prost(bool, optional, tag = "70141850")]
pub ignore_child_exemptions: ::core::option::Option<bool>,
/// The log type that this config enables.
/// Check the LogType enum for the list of possible values.
#[prost(string, optional, tag = "403115861")]
pub log_type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `AuditLogConfig`.
pub mod audit_log_config {
/// The log type that this config enables.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum LogType {
/// A value indicating that the enum field is not set.
UndefinedLogType = 0,
/// Admin reads. Example: CloudIAM getIamPolicy
AdminRead = 128951462,
/// Data reads. Example: CloudSQL Users list
DataRead = 305224971,
/// Data writes. Example: CloudSQL Users create
DataWrite = 340181738,
/// Default case. Should never be this.
Unspecified = 154527053,
}
impl LogType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
LogType::UndefinedLogType => "UNDEFINED_LOG_TYPE",
LogType::AdminRead => "ADMIN_READ",
LogType::DataRead => "DATA_READ",
LogType::DataWrite => "DATA_WRITE",
LogType::Unspecified => "LOG_TYPE_UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_LOG_TYPE" => Some(Self::UndefinedLogType),
"ADMIN_READ" => Some(Self::AdminRead),
"DATA_READ" => Some(Self::DataRead),
"DATA_WRITE" => Some(Self::DataWrite),
"LOG_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
/// This is deprecated and has no effect. Do not use.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuthorizationLoggingOptions {
/// This is deprecated and has no effect. Do not use.
/// Check the PermissionType enum for the list of possible values.
#[prost(string, optional, tag = "525978538")]
pub permission_type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `AuthorizationLoggingOptions`.
pub mod authorization_logging_options {
/// This is deprecated and has no effect. Do not use.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum PermissionType {
/// A value indicating that the enum field is not set.
UndefinedPermissionType = 0,
/// This is deprecated and has no effect. Do not use.
AdminRead = 128951462,
/// This is deprecated and has no effect. Do not use.
AdminWrite = 244412079,
/// This is deprecated and has no effect. Do not use.
DataRead = 305224971,
/// This is deprecated and has no effect. Do not use.
DataWrite = 340181738,
/// This is deprecated and has no effect. Do not use.
Unspecified = 440313346,
}
impl PermissionType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
PermissionType::UndefinedPermissionType => "UNDEFINED_PERMISSION_TYPE",
PermissionType::AdminRead => "ADMIN_READ",
PermissionType::AdminWrite => "ADMIN_WRITE",
PermissionType::DataRead => "DATA_READ",
PermissionType::DataWrite => "DATA_WRITE",
PermissionType::Unspecified => "PERMISSION_TYPE_UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PERMISSION_TYPE" => Some(Self::UndefinedPermissionType),
"ADMIN_READ" => Some(Self::AdminRead),
"ADMIN_WRITE" => Some(Self::AdminWrite),
"DATA_READ" => Some(Self::DataRead),
"DATA_WRITE" => Some(Self::DataWrite),
"PERMISSION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
/// Represents an Autoscaler resource. Google Compute Engine has two Autoscaler resources: * [Zonal](/compute/docs/reference/rest/v1/autoscalers) * [Regional](/compute/docs/reference/rest/v1/regionAutoscalers) Use autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances. For zonal managed instance groups resource, use the autoscaler resource. For regional managed instance groups, use the regionAutoscalers resource.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Autoscaler {
/// The configuration parameters for the autoscaling algorithm. You can define one or more signals for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization. If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%.
#[prost(message, optional, tag = "221950041")]
pub autoscaling_policy: ::core::option::Option<AutoscalingPolicy>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#autoscaler for autoscalers.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Target recommended MIG size (number of instances) computed by autoscaler. Autoscaler calculates the recommended MIG size even when the autoscaling policy mode is different from ON. This field is empty when autoscaler is not connected to an existing managed instance group or autoscaler did not generate its prediction.
#[prost(int32, optional, tag = "257915749")]
pub recommended_size: ::core::option::Option<i32>,
/// \[Output Only\] URL of the region where the instance group resides (for autoscalers living in regional scope).
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Status information of existing scaling schedules.
#[prost(btree_map = "string, message", tag = "465950178")]
pub scaling_schedule_status: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
ScalingScheduleStatus,
>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The status of the autoscaler configuration. Current set of possible values: - PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: Configuration is being deleted. - ACTIVE: Configuration is acknowledged to be effective. Some warnings might be present in the statusDetails field. - ERROR: Configuration has errors. Actionable for users. Details are present in the statusDetails field. New values might be added in the future.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
#[prost(message, repeated, tag = "363353845")]
pub status_details: ::prost::alloc::vec::Vec<AutoscalerStatusDetails>,
/// URL of the managed instance group that this autoscaler will scale. This field is required when creating an autoscaler.
#[prost(string, optional, tag = "192835985")]
pub target: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
#[prost(string, optional, tag = "3744684")]
pub zone: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Autoscaler`.
pub mod autoscaler {
/// \[Output Only\] The status of the autoscaler configuration. Current set of possible values: - PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: Configuration is being deleted. - ACTIVE: Configuration is acknowledged to be effective. Some warnings might be present in the statusDetails field. - ERROR: Configuration has errors. Actionable for users. Details are present in the statusDetails field. New values might be added in the future.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// Configuration is acknowledged to be effective
Active = 314733318,
/// Configuration is being deleted
Deleting = 528602024,
/// Configuration has errors. Actionable for users.
Error = 66247144,
/// Autoscaler backend hasn't read new/updated configuration
Pending = 35394935,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Active => "ACTIVE",
Status::Deleting => "DELETING",
Status::Error => "ERROR",
Status::Pending => "PENDING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"ACTIVE" => Some(Self::Active),
"DELETING" => Some(Self::Deleting),
"ERROR" => Some(Self::Error),
"PENDING" => Some(Self::Pending),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoscalerAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of AutoscalersScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
AutoscalersScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#autoscalerAggregatedList for aggregated lists of autoscalers.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of Autoscaler resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoscalerList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Autoscaler resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Autoscaler>,
/// \[Output Only\] Type of resource. Always compute#autoscalerList for lists of autoscalers.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoscalerStatusDetails {
/// The status message.
#[prost(string, optional, tag = "418054151")]
pub message: ::core::option::Option<::prost::alloc::string::String>,
/// The type of error, warning, or notice returned. Current set of possible values: - ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the instance group are unhealthy (not in RUNNING state). - BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend service attached to the instance group. - CAPPED_AT_MAX_NUM_REPLICAS (WARNING): Autoscaler recommends a size greater than maxNumReplicas. - CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric samples are not exported often enough to be a credible base for autoscaling. - CUSTOM_METRIC_INVALID (ERROR): The custom metric that was specified does not exist or does not have the necessary labels. - MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to maxNumReplicas. This means the autoscaler cannot add or remove instances from the instance group. - MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive any data from the custom metric configured for autoscaling. - MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): The autoscaler is configured to scale based on a load balancing signal but the instance group has not received any requests from the load balancer. - MODE_OFF (WARNING): Autoscaling is turned off. The number of instances in the group won't change automatically. The autoscaling configuration is preserved. - MODE_ONLY_UP (WARNING): Autoscaling is in the "Autoscale only out" mode. The autoscaler can add instances but not remove any. - MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be autoscaled because it has more than one backend service attached to it. - NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): There is insufficient quota for the necessary resources, such as CPU or number of instances. - REGION_RESOURCE_STOCKOUT (ERROR): Shown only for regional autoscalers: there is a resource stockout in the chosen region. - SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled does not exist. - UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): Autoscaling does not work with an HTTP/S load balancer that has been configured for maxRate. - ZONE_RESOURCE_STOCKOUT (ERROR): For zonal autoscalers: there is a resource stockout in the chosen zone. For regional autoscalers: in at least one of the zones you're using there is a resource stockout. New values might be added in the future. Some of the values might not be available in all API versions.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `AutoscalerStatusDetails`.
pub mod autoscaler_status_details {
/// The type of error, warning, or notice returned. Current set of possible values: - ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the instance group are unhealthy (not in RUNNING state). - BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend service attached to the instance group. - CAPPED_AT_MAX_NUM_REPLICAS (WARNING): Autoscaler recommends a size greater than maxNumReplicas. - CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric samples are not exported often enough to be a credible base for autoscaling. - CUSTOM_METRIC_INVALID (ERROR): The custom metric that was specified does not exist or does not have the necessary labels. - MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to maxNumReplicas. This means the autoscaler cannot add or remove instances from the instance group. - MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive any data from the custom metric configured for autoscaling. - MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): The autoscaler is configured to scale based on a load balancing signal but the instance group has not received any requests from the load balancer. - MODE_OFF (WARNING): Autoscaling is turned off. The number of instances in the group won't change automatically. The autoscaling configuration is preserved. - MODE_ONLY_UP (WARNING): Autoscaling is in the "Autoscale only out" mode. The autoscaler can add instances but not remove any. - MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be autoscaled because it has more than one backend service attached to it. - NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): There is insufficient quota for the necessary resources, such as CPU or number of instances. - REGION_RESOURCE_STOCKOUT (ERROR): Shown only for regional autoscalers: there is a resource stockout in the chosen region. - SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled does not exist. - UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): Autoscaling does not work with an HTTP/S load balancer that has been configured for maxRate. - ZONE_RESOURCE_STOCKOUT (ERROR): For zonal autoscalers: there is a resource stockout in the chosen zone. For regional autoscalers: in at least one of the zones you're using there is a resource stockout. New values might be added in the future. Some of the values might not be available in all API versions.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
/// All instances in the instance group are unhealthy (not in RUNNING state).
AllInstancesUnhealthy = 404965477,
/// There is no backend service attached to the instance group.
BackendServiceDoesNotExist = 191417626,
/// Autoscaler recommends a size greater than maxNumReplicas.
CappedAtMaxNumReplicas = 518617,
/// The custom metric samples are not exported often enough to be a credible base for autoscaling.
CustomMetricDataPointsTooSparse = 328964659,
/// The custom metric that was specified does not exist or does not have the necessary labels.
CustomMetricInvalid = 204430550,
/// The minNumReplicas is equal to maxNumReplicas. This means the autoscaler cannot add or remove instances from the instance group.
MinEqualsMax = 2821361,
/// The autoscaler did not receive any data from the custom metric configured for autoscaling.
MissingCustomMetricDataPoints = 94885086,
/// The autoscaler is configured to scale based on a load balancing signal but the instance group has not received any requests from the load balancer.
MissingLoadBalancingDataPoints = 509858898,
/// Autoscaling is turned off. The number of instances in the group won't change automatically. The autoscaling configuration is preserved.
ModeOff = 164169907,
/// Autoscaling is in the "Autoscale only scale out" mode. Instances in the group will be only added.
ModeOnlyScaleOut = 3840994,
/// Autoscaling is in the "Autoscale only out" mode. Instances in the group will be only added.
ModeOnlyUp = 100969842,
/// The instance group cannot be autoscaled because it has more than one backend service attached to it.
MoreThanOneBackendService = 151922141,
/// There is insufficient quota for the necessary resources, such as CPU or number of instances.
NotEnoughQuotaAvailable = 403101631,
/// Showed only for regional autoscalers: there is a resource stockout in the chosen region.
RegionResourceStockout = 528622846,
/// The target to be scaled does not exist.
ScalingTargetDoesNotExist = 122636699,
/// For some scaling schedules minRequiredReplicas is greater than maxNumReplicas. Autoscaler always recommends at most maxNumReplicas instances.
ScheduledInstancesGreaterThanAutoscalerMax = 29275586,
/// For some scaling schedules minRequiredReplicas is less than minNumReplicas. Autoscaler always recommends at least minNumReplicas instances.
ScheduledInstancesLessThanAutoscalerMin = 398287669,
Unknown = 433141802,
/// Autoscaling does not work with an HTTP/S load balancer that has been configured for maxRate.
UnsupportedMaxRateLoadBalancingConfiguration = 330845009,
/// For zonal autoscalers: there is a resource stockout in the chosen zone. For regional autoscalers: in at least one of the zones you're using there is a resource stockout.
ZoneResourceStockout = 210200502,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::AllInstancesUnhealthy => "ALL_INSTANCES_UNHEALTHY",
Type::BackendServiceDoesNotExist => "BACKEND_SERVICE_DOES_NOT_EXIST",
Type::CappedAtMaxNumReplicas => "CAPPED_AT_MAX_NUM_REPLICAS",
Type::CustomMetricDataPointsTooSparse => {
"CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE"
}
Type::CustomMetricInvalid => "CUSTOM_METRIC_INVALID",
Type::MinEqualsMax => "MIN_EQUALS_MAX",
Type::MissingCustomMetricDataPoints => {
"MISSING_CUSTOM_METRIC_DATA_POINTS"
}
Type::MissingLoadBalancingDataPoints => {
"MISSING_LOAD_BALANCING_DATA_POINTS"
}
Type::ModeOff => "MODE_OFF",
Type::ModeOnlyScaleOut => "MODE_ONLY_SCALE_OUT",
Type::ModeOnlyUp => "MODE_ONLY_UP",
Type::MoreThanOneBackendService => "MORE_THAN_ONE_BACKEND_SERVICE",
Type::NotEnoughQuotaAvailable => "NOT_ENOUGH_QUOTA_AVAILABLE",
Type::RegionResourceStockout => "REGION_RESOURCE_STOCKOUT",
Type::ScalingTargetDoesNotExist => "SCALING_TARGET_DOES_NOT_EXIST",
Type::ScheduledInstancesGreaterThanAutoscalerMax => {
"SCHEDULED_INSTANCES_GREATER_THAN_AUTOSCALER_MAX"
}
Type::ScheduledInstancesLessThanAutoscalerMin => {
"SCHEDULED_INSTANCES_LESS_THAN_AUTOSCALER_MIN"
}
Type::Unknown => "UNKNOWN",
Type::UnsupportedMaxRateLoadBalancingConfiguration => {
"UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION"
}
Type::ZoneResourceStockout => "ZONE_RESOURCE_STOCKOUT",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"ALL_INSTANCES_UNHEALTHY" => Some(Self::AllInstancesUnhealthy),
"BACKEND_SERVICE_DOES_NOT_EXIST" => {
Some(Self::BackendServiceDoesNotExist)
}
"CAPPED_AT_MAX_NUM_REPLICAS" => Some(Self::CappedAtMaxNumReplicas),
"CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE" => {
Some(Self::CustomMetricDataPointsTooSparse)
}
"CUSTOM_METRIC_INVALID" => Some(Self::CustomMetricInvalid),
"MIN_EQUALS_MAX" => Some(Self::MinEqualsMax),
"MISSING_CUSTOM_METRIC_DATA_POINTS" => {
Some(Self::MissingCustomMetricDataPoints)
}
"MISSING_LOAD_BALANCING_DATA_POINTS" => {
Some(Self::MissingLoadBalancingDataPoints)
}
"MODE_OFF" => Some(Self::ModeOff),
"MODE_ONLY_SCALE_OUT" => Some(Self::ModeOnlyScaleOut),
"MODE_ONLY_UP" => Some(Self::ModeOnlyUp),
"MORE_THAN_ONE_BACKEND_SERVICE" => Some(Self::MoreThanOneBackendService),
"NOT_ENOUGH_QUOTA_AVAILABLE" => Some(Self::NotEnoughQuotaAvailable),
"REGION_RESOURCE_STOCKOUT" => Some(Self::RegionResourceStockout),
"SCALING_TARGET_DOES_NOT_EXIST" => Some(Self::ScalingTargetDoesNotExist),
"SCHEDULED_INSTANCES_GREATER_THAN_AUTOSCALER_MAX" => {
Some(Self::ScheduledInstancesGreaterThanAutoscalerMax)
}
"SCHEDULED_INSTANCES_LESS_THAN_AUTOSCALER_MIN" => {
Some(Self::ScheduledInstancesLessThanAutoscalerMin)
}
"UNKNOWN" => Some(Self::Unknown),
"UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION" => {
Some(Self::UnsupportedMaxRateLoadBalancingConfiguration)
}
"ZONE_RESOURCE_STOCKOUT" => Some(Self::ZoneResourceStockout),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoscalersScopedList {
/// \[Output Only\] A list of autoscalers contained in this scope.
#[prost(message, repeated, tag = "465771644")]
pub autoscalers: ::prost::alloc::vec::Vec<Autoscaler>,
/// \[Output Only\] Informational warning which replaces the list of autoscalers when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Cloud Autoscaler policy.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoscalingPolicy {
/// The number of seconds that your application takes to initialize on a VM instance. This is referred to as the [initialization period](/compute/docs/autoscaler#cool_down_period). Specifying an accurate initialization period improves autoscaler decisions. For example, when scaling out, the autoscaler ignores data from VMs that are still initializing because those VMs might not yet represent normal usage of your application. The default initialization period is 60 seconds. Initialization periods might vary because of numerous factors. We recommend that you test how long your application takes to initialize. To do this, create a VM and time your application's startup process.
#[prost(int32, optional, tag = "107692954")]
pub cool_down_period_sec: ::core::option::Option<i32>,
/// Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
#[prost(message, optional, tag = "381211147")]
pub cpu_utilization: ::core::option::Option<AutoscalingPolicyCpuUtilization>,
/// Configuration parameters of autoscaling based on a custom metric.
#[prost(message, repeated, tag = "131972850")]
pub custom_metric_utilizations: ::prost::alloc::vec::Vec<
AutoscalingPolicyCustomMetricUtilization,
>,
/// Configuration parameters of autoscaling based on load balancer.
#[prost(message, optional, tag = "429746403")]
pub load_balancing_utilization: ::core::option::Option<
AutoscalingPolicyLoadBalancingUtilization,
>,
/// The maximum number of instances that the autoscaler can scale out to. This is required when creating or updating an autoscaler. The maximum number of replicas must not be lower than minimal number of replicas.
#[prost(int32, optional, tag = "62327375")]
pub max_num_replicas: ::core::option::Option<i32>,
/// The minimum number of replicas that the autoscaler can scale in to. This cannot be less than 0. If not provided, autoscaler chooses a default value depending on maximum number of instances allowed.
#[prost(int32, optional, tag = "535329825")]
pub min_num_replicas: ::core::option::Option<i32>,
/// Defines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler"
/// Check the Mode enum for the list of possible values.
#[prost(string, optional, tag = "3357091")]
pub mode: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "527670872")]
pub scale_in_control: ::core::option::Option<AutoscalingPolicyScaleInControl>,
/// Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, and they can overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules is applied. Up to 128 scaling schedules are allowed.
#[prost(btree_map = "string, message", tag = "355416580")]
pub scaling_schedules: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
AutoscalingPolicyScalingSchedule,
>,
}
/// Nested message and enum types in `AutoscalingPolicy`.
pub mod autoscaling_policy {
/// Defines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler"
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Mode {
/// A value indicating that the enum field is not set.
UndefinedMode = 0,
/// Do not automatically scale the MIG in or out. The recommended_size field contains the size of MIG that would be set if the actuation mode was enabled.
Off = 78159,
/// Automatically scale the MIG in and out according to the policy.
On = 2527,
/// Automatically create VMs according to the policy, but do not scale the MIG in.
OnlyScaleOut = 152713670,
/// Automatically create VMs according to the policy, but do not scale the MIG in.
OnlyUp = 478095374,
}
impl Mode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Mode::UndefinedMode => "UNDEFINED_MODE",
Mode::Off => "OFF",
Mode::On => "ON",
Mode::OnlyScaleOut => "ONLY_SCALE_OUT",
Mode::OnlyUp => "ONLY_UP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_MODE" => Some(Self::UndefinedMode),
"OFF" => Some(Self::Off),
"ON" => Some(Self::On),
"ONLY_SCALE_OUT" => Some(Self::OnlyScaleOut),
"ONLY_UP" => Some(Self::OnlyUp),
_ => None,
}
}
}
}
/// CPU utilization policy.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoscalingPolicyCpuUtilization {
/// Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are: * NONE (default). No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand.
/// Check the PredictiveMethod enum for the list of possible values.
#[prost(string, optional, tag = "390220737")]
pub predictive_method: ::core::option::Option<::prost::alloc::string::String>,
/// The target CPU utilization that the autoscaler maintains. Must be a float value in the range (0, 1]. If not specified, the default is 0.6. If the CPU level is below the target utilization, the autoscaler scales in the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization. If the average CPU is above the target utilization, the autoscaler scales out until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization.
#[prost(double, optional, tag = "215905870")]
pub utilization_target: ::core::option::Option<f64>,
}
/// Nested message and enum types in `AutoscalingPolicyCpuUtilization`.
pub mod autoscaling_policy_cpu_utilization {
/// Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are: * NONE (default). No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum PredictiveMethod {
/// A value indicating that the enum field is not set.
UndefinedPredictiveMethod = 0,
/// No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics
None = 2402104,
/// Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand.
OptimizeAvailability = 11629437,
}
impl PredictiveMethod {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
PredictiveMethod::UndefinedPredictiveMethod => {
"UNDEFINED_PREDICTIVE_METHOD"
}
PredictiveMethod::None => "NONE",
PredictiveMethod::OptimizeAvailability => "OPTIMIZE_AVAILABILITY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PREDICTIVE_METHOD" => Some(Self::UndefinedPredictiveMethod),
"NONE" => Some(Self::None),
"OPTIMIZE_AVAILABILITY" => Some(Self::OptimizeAvailability),
_ => None,
}
}
}
}
/// Custom utilization metric policy.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoscalingPolicyCustomMetricUtilization {
/// A filter string, compatible with a Stackdriver Monitoring filter string for TimeSeries.list API call. This filter is used to select a specific TimeSeries for the purpose of autoscaling and to determine whether the metric is exporting per-instance or per-group data. For the filter to be valid for autoscaling purposes, the following rules apply: - You can only use the AND operator for joining selectors. - You can only use direct equality comparison operator (=) without any functions for each selector. - You can specify the metric in both the filter string and in the metric field. However, if specified in both places, the metric must be identical. - The monitored resource type determines what kind of values are expected for the metric. If it is a gce_instance, the autoscaler expects the metric to include a separate TimeSeries for each instance in a group. In such a case, you cannot filter on resource labels. If the resource type is any other value, the autoscaler expects this metric to contain values that apply to the entire autoscaled instance group and resource label filtering can be performed to point autoscaler at the correct TimeSeries to scale upon. This is called a *per-group metric* for the purpose of autoscaling. If not specified, the type defaults to gce_instance. Try to provide a filter that is selective enough to pick just one TimeSeries for the autoscaled group or for each of the instances (if you are using gce_instance resource type). If multiple TimeSeries are returned upon the query execution, the autoscaler will sum their respective values to obtain its scaling value.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative values. The metric must have a value type of INT64 or DOUBLE.
#[prost(string, optional, tag = "533067184")]
pub metric: ::core::option::Option<::prost::alloc::string::String>,
/// If scaling is based on a per-group metric value that represents the total amount of work to be done or resource usage, set this value to an amount assigned for a single instance of the scaled group. Autoscaler keeps the number of instances proportional to the value of this metric. The metric itself does not change value due to group resizing. A good metric to use with the target is for example pubsub.googleapis.com/subscription/num_undelivered_messages or a custom metric exporting the total number of requests coming to your instances. A bad example would be a metric exporting an average or median latency, since this value can't include a chunk assignable to a single instance, it could be better used with utilization_target instead.
#[prost(double, optional, tag = "504768064")]
pub single_instance_assignment: ::core::option::Option<f64>,
/// The target value of the metric that autoscaler maintains. This must be a positive value. A utilization metric scales number of virtual machines handling requests to increase or decrease proportionally to the metric. For example, a good metric to use as a utilization_target is <https://www.googleapis.com/compute/v1/instance/network/received_bytes_count.> The autoscaler works to keep this value constant for each of the instances.
#[prost(double, optional, tag = "215905870")]
pub utilization_target: ::core::option::Option<f64>,
/// Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE.
/// Check the UtilizationTargetType enum for the list of possible values.
#[prost(string, optional, tag = "340169355")]
pub utilization_target_type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `AutoscalingPolicyCustomMetricUtilization`.
pub mod autoscaling_policy_custom_metric_utilization {
/// Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum UtilizationTargetType {
/// A value indicating that the enum field is not set.
UndefinedUtilizationTargetType = 0,
/// Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per minute.
DeltaPerMinute = 87432861,
/// Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per second.
DeltaPerSecond = 255180029,
/// Sets the utilization target value for a gauge metric. The autoscaler will collect the average utilization of the virtual machines from the last couple of minutes, and compare the value to the utilization target value to perform autoscaling.
Gauge = 67590361,
}
impl UtilizationTargetType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
UtilizationTargetType::UndefinedUtilizationTargetType => {
"UNDEFINED_UTILIZATION_TARGET_TYPE"
}
UtilizationTargetType::DeltaPerMinute => "DELTA_PER_MINUTE",
UtilizationTargetType::DeltaPerSecond => "DELTA_PER_SECOND",
UtilizationTargetType::Gauge => "GAUGE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_UTILIZATION_TARGET_TYPE" => {
Some(Self::UndefinedUtilizationTargetType)
}
"DELTA_PER_MINUTE" => Some(Self::DeltaPerMinute),
"DELTA_PER_SECOND" => Some(Self::DeltaPerSecond),
"GAUGE" => Some(Self::Gauge),
_ => None,
}
}
}
}
/// Configuration parameters of autoscaling based on load balancing.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoscalingPolicyLoadBalancingUtilization {
/// Fraction of backend capacity utilization (set in HTTP(S) load balancing configuration) that the autoscaler maintains. Must be a positive float value. If not defined, the default is 0.8.
#[prost(double, optional, tag = "215905870")]
pub utilization_target: ::core::option::Option<f64>,
}
/// Configuration that allows for slower scale in so that even if Autoscaler recommends an abrupt scale in of a MIG, it will be throttled as specified by the parameters below.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoscalingPolicyScaleInControl {
/// Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.
#[prost(message, optional, tag = "180710123")]
pub max_scaled_in_replicas: ::core::option::Option<FixedOrPercent>,
/// How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above.
#[prost(int32, optional, tag = "36405300")]
pub time_window_sec: ::core::option::Option<i32>,
}
/// Scaling based on user-defined schedule. The message describes a single scaling schedule. A scaling schedule changes the minimum number of VM instances an autoscaler can recommend, which can trigger scaling out.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoscalingPolicyScalingSchedule {
/// A description of a scaling schedule.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// A boolean value that specifies whether a scaling schedule can influence autoscaler recommendations. If set to true, then a scaling schedule has no effect. This field is optional, and its value is false by default.
#[prost(bool, optional, tag = "270940796")]
pub disabled: ::core::option::Option<bool>,
/// The duration of time intervals, in seconds, for which this scaling schedule is to run. The minimum allowed value is 300. This field is required.
#[prost(int32, optional, tag = "212356902")]
pub duration_sec: ::core::option::Option<i32>,
/// The minimum number of VM instances that the autoscaler will recommend in time intervals starting according to schedule. This field is required.
#[prost(int32, optional, tag = "365514414")]
pub min_required_replicas: ::core::option::Option<i32>,
/// The start timestamps of time intervals when this scaling schedule is to provide a scaling signal. This field uses the extended cron format (with an optional year field). The expression can describe a single timestamp if the optional year is set, in which case the scaling schedule runs once. The schedule is interpreted with respect to time_zone. This field is required. Note: These timestamps only describe when autoscaler starts providing the scaling signal. The VMs need additional time to become serving.
#[prost(string, optional, tag = "375820951")]
pub schedule: ::core::option::Option<::prost::alloc::string::String>,
/// The time zone to use when interpreting the schedule. The value of this field must be a time zone name from the tz database: <https://en.wikipedia.org/wiki/Tz_database.> This field is assigned a default value of "UTC" if left empty.
#[prost(string, optional, tag = "36848094")]
pub time_zone: ::core::option::Option<::prost::alloc::string::String>,
}
/// Message containing information of one individual backend.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Backend {
/// Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded. For usage guidelines, see Connection balancing mode. Backends must use compatible balancing modes. For more information, see Supported balancing modes and target capacity settings and Restrictions and guidance for instance groups. Note: Currently, if you use the API to configure incompatible balancing modes, the configuration might be accepted even though it has no impact and is ignored. Specifically, Backend.maxUtilization is ignored when Backend.balancingMode is RATE. In the future, this incompatible combination will be rejected.
/// Check the BalancingMode enum for the list of possible values.
#[prost(string, optional, tag = "430286217")]
pub balancing_mode: ::core::option::Option<::prost::alloc::string::String>,
/// A multiplier applied to the backend's target capacity of its balancing mode. The default value is 1, which means the group serves up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available capacity. The valid ranges are 0.0 and \[0.1,1.0\]. You cannot configure a setting larger than 0 and smaller than 0.1. You cannot configure a setting of 0 when there is only one backend attached to the backend service. Not available with backends that don't support using a balancingMode. This includes backends such as global internet NEGs, regional serverless NEGs, and PSC NEGs.
#[prost(float, optional, tag = "315958157")]
pub capacity_scaler: ::core::option::Option<f32>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// This field designates whether this is a failover backend. More than one failover backend can be configured for a given BackendService.
#[prost(bool, optional, tag = "138892530")]
pub failover: ::core::option::Option<bool>,
/// The fully-qualified URL of an instance group or network endpoint group (NEG) resource. To determine what types of backends a load balancer supports, see the [Backend services overview](<https://cloud.google.com/load-balancing/docs/backend-service#backends>). You must use the *fully-qualified* URL (starting with <https://www.googleapis.com/>) to specify the instance group or NEG. Partial URLs are not supported.
#[prost(string, optional, tag = "98629247")]
pub group: ::core::option::Option<::prost::alloc::string::String>,
/// Defines a target maximum number of simultaneous connections. For usage guidelines, see Connection balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is RATE.
#[prost(int32, optional, tag = "110652154")]
pub max_connections: ::core::option::Option<i32>,
/// Defines a target maximum number of simultaneous connections. For usage guidelines, see Connection balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is RATE.
#[prost(int32, optional, tag = "216904604")]
pub max_connections_per_endpoint: ::core::option::Option<i32>,
/// Defines a target maximum number of simultaneous connections. For usage guidelines, see Connection balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is RATE.
#[prost(int32, optional, tag = "104671900")]
pub max_connections_per_instance: ::core::option::Option<i32>,
/// Defines a maximum number of HTTP requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION.
#[prost(int32, optional, tag = "408035035")]
pub max_rate: ::core::option::Option<i32>,
/// Defines a maximum target for requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION.
#[prost(float, optional, tag = "129832283")]
pub max_rate_per_endpoint: ::core::option::Option<f32>,
/// Defines a maximum target for requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION.
#[prost(float, optional, tag = "17599579")]
pub max_rate_per_instance: ::core::option::Option<f32>,
/// Optional parameter to define a target capacity for the UTILIZATION balancing mode. The valid range is \[0.0, 1.0\]. For usage guidelines, see Utilization balancing mode.
#[prost(float, optional, tag = "148192199")]
pub max_utilization: ::core::option::Option<f32>,
/// This field indicates whether this backend should be fully utilized before sending traffic to backends with default preference. The possible values are: - PREFERRED: Backends with this preference level will be filled up to their capacity limits first, based on RTT. - DEFAULT: If preferred backends don't have enough capacity, backends in this layer would be used and traffic would be assigned based on the load balancing algorithm you use. This is the default
/// Check the Preference enum for the list of possible values.
#[prost(string, optional, tag = "150781147")]
pub preference: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Backend`.
pub mod backend {
/// Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded. For usage guidelines, see Connection balancing mode. Backends must use compatible balancing modes. For more information, see Supported balancing modes and target capacity settings and Restrictions and guidance for instance groups. Note: Currently, if you use the API to configure incompatible balancing modes, the configuration might be accepted even though it has no impact and is ignored. Specifically, Backend.maxUtilization is ignored when Backend.balancingMode is RATE. In the future, this incompatible combination will be rejected.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum BalancingMode {
/// A value indicating that the enum field is not set.
UndefinedBalancingMode = 0,
/// Balance based on the number of simultaneous connections.
Connection = 246311646,
/// Balance based on requests per second (RPS).
Rate = 2508000,
/// Balance based on the backend utilization.
Utilization = 157008386,
}
impl BalancingMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
BalancingMode::UndefinedBalancingMode => "UNDEFINED_BALANCING_MODE",
BalancingMode::Connection => "CONNECTION",
BalancingMode::Rate => "RATE",
BalancingMode::Utilization => "UTILIZATION",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_BALANCING_MODE" => Some(Self::UndefinedBalancingMode),
"CONNECTION" => Some(Self::Connection),
"RATE" => Some(Self::Rate),
"UTILIZATION" => Some(Self::Utilization),
_ => None,
}
}
}
/// This field indicates whether this backend should be fully utilized before sending traffic to backends with default preference. The possible values are: - PREFERRED: Backends with this preference level will be filled up to their capacity limits first, based on RTT. - DEFAULT: If preferred backends don't have enough capacity, backends in this layer would be used and traffic would be assigned based on the load balancing algorithm you use. This is the default
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Preference {
/// A value indicating that the enum field is not set.
UndefinedPreference = 0,
/// No preference.
Default = 115302945,
/// If preference is unspecified, we set it to the DEFAULT value
Unspecified = 496219571,
/// Traffic will be sent to this backend first.
Preferred = 418847841,
}
impl Preference {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Preference::UndefinedPreference => "UNDEFINED_PREFERENCE",
Preference::Default => "DEFAULT",
Preference::Unspecified => "PREFERENCE_UNSPECIFIED",
Preference::Preferred => "PREFERRED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PREFERENCE" => Some(Self::UndefinedPreference),
"DEFAULT" => Some(Self::Default),
"PREFERENCE_UNSPECIFIED" => Some(Self::Unspecified),
"PREFERRED" => Some(Self::Preferred),
_ => None,
}
}
}
}
/// Represents a Cloud Storage Bucket resource. This Cloud Storage bucket resource is referenced by a URL map of a load balancer. For more information, read Backend Buckets.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendBucket {
/// Cloud Storage bucket name.
#[prost(string, optional, tag = "283610048")]
pub bucket_name: ::core::option::Option<::prost::alloc::string::String>,
/// Cloud CDN configuration for this BackendBucket.
#[prost(message, optional, tag = "213976452")]
pub cdn_policy: ::core::option::Option<BackendBucketCdnPolicy>,
/// Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.
/// Check the CompressionMode enum for the list of possible values.
#[prost(string, optional, tag = "95520988")]
pub compression_mode: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// Headers that the Application Load Balancer should add to proxied responses.
#[prost(string, repeated, tag = "387539094")]
pub custom_response_headers: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// An optional textual description of the resource; provided by the client when the resource is created.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The resource URL for the edge security policy associated with this backend bucket.
#[prost(string, optional, tag = "41036943")]
pub edge_security_policy: ::core::option::Option<::prost::alloc::string::String>,
/// If true, enable Cloud CDN for this BackendBucket.
#[prost(bool, optional, tag = "282942321")]
pub enable_cdn: ::core::option::Option<bool>,
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// Type of the resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `BackendBucket`.
pub mod backend_bucket {
/// Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum CompressionMode {
/// A value indicating that the enum field is not set.
UndefinedCompressionMode = 0,
/// Automatically uses the best compression based on the Accept-Encoding header sent by the client.
Automatic = 165298699,
/// Disables compression. Existing compressed responses cached by Cloud CDN will not be served to clients.
Disabled = 516696700,
}
impl CompressionMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
CompressionMode::UndefinedCompressionMode => "UNDEFINED_COMPRESSION_MODE",
CompressionMode::Automatic => "AUTOMATIC",
CompressionMode::Disabled => "DISABLED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_COMPRESSION_MODE" => Some(Self::UndefinedCompressionMode),
"AUTOMATIC" => Some(Self::Automatic),
"DISABLED" => Some(Self::Disabled),
_ => None,
}
}
}
}
/// Message containing Cloud CDN configuration for a backend bucket.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendBucketCdnPolicy {
/// Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode settings.
#[prost(message, repeated, tag = "486203082")]
pub bypass_cache_on_request_headers: ::prost::alloc::vec::Vec<
BackendBucketCdnPolicyBypassCacheOnRequestHeader,
>,
/// The CacheKeyPolicy for this CdnPolicy.
#[prost(message, optional, tag = "159263727")]
pub cache_key_policy: ::core::option::Option<BackendBucketCdnPolicyCacheKeyPolicy>,
/// Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
/// Check the CacheMode enum for the list of possible values.
#[prost(string, optional, tag = "28877888")]
pub cache_mode: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max-age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the response max-age directive, along with a "public" directive. For cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if specified), or else sets the response max-age directive to the lesser of the client_ttl and default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is not specified, a default value (1 hour) will be used. The maximum allowed value is 31,622,400s (1 year).
#[prost(int32, optional, tag = "29034360")]
pub client_ttl: ::core::option::Option<i32>,
/// Specifies the default TTL for cached content served by this origin for responses that do not have an existing valid TTL (max-age or s-max-age). Setting a TTL of "0" means "always revalidate". The value of defaultTTL cannot be set to a value greater than that of maxTTL, but can be equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses. The maximum allowed value is 31,622,400s (1 year), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.
#[prost(int32, optional, tag = "100253422")]
pub default_ttl: ::core::option::Option<i32>,
/// Specifies the maximum allowed TTL for cached content served by this origin. Cache directives that attempt to set a max-age or s-maxage higher than this, or an Expires header more than maxTTL seconds in the future will be capped at the value of maxTTL, as if it were the value of an s-maxage Cache-Control directive. Headers sent to the client will not be modified. Setting a TTL of "0" means "always revalidate". The maximum allowed value is 31,622,400s (1 year), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.
#[prost(int32, optional, tag = "307578001")]
pub max_ttl: ::core::option::Option<i32>,
/// Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, and override any caching headers. By default, Cloud CDN will apply the following default TTLs to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy.
#[prost(bool, optional, tag = "336110005")]
pub negative_caching: ::core::option::Option<bool>,
/// Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled will use Cloud CDN's default cache TTLs. Note that when specifying an explicit negative_caching_policy, you should take care to specify a cache TTL for all response codes that you wish to cache. Cloud CDN will not apply any default negative caching when a policy exists.
#[prost(message, repeated, tag = "155359996")]
pub negative_caching_policy: ::prost::alloc::vec::Vec<
BackendBucketCdnPolicyNegativeCachingPolicy,
>,
/// If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number of requests to the origin.
#[prost(bool, optional, tag = "532808276")]
pub request_coalescing: ::core::option::Option<bool>,
/// Serve existing content from the cache (if available) when revalidating content with the origin, or when an error is encountered when refreshing the cache. This setting defines the default "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale responses that exceed the TTL configured here will not be served. The default limit (max-stale) is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max-age (or s-max-age) of a cached response. The maximum allowed value is 604800 (1 week). Set this to zero (0) to disable serve-while-stale.
#[prost(int32, optional, tag = "236682203")]
pub serve_while_stale: ::core::option::Option<i32>,
/// Maximum number of seconds the response to a signed URL request will be considered fresh. After this time period, the response will be revalidated before being served. Defaults to 1hr (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as though all responses from this backend had a "Cache-Control: public, max-age=\[TTL\]" header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.
#[prost(int64, optional, tag = "269374534")]
pub signed_url_cache_max_age_sec: ::core::option::Option<i64>,
/// \[Output Only\] Names of the keys for signing request URLs.
#[prost(string, repeated, tag = "371848885")]
pub signed_url_key_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `BackendBucketCdnPolicy`.
pub mod backend_bucket_cdn_policy {
/// Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum CacheMode {
/// A value indicating that the enum field is not set.
UndefinedCacheMode = 0,
/// Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
CacheAllStatic = 355027945,
/// Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content.
ForceCacheAll = 486026928,
InvalidCacheMode = 381295560,
/// Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server.
UseOriginHeaders = 55380261,
}
impl CacheMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
CacheMode::UndefinedCacheMode => "UNDEFINED_CACHE_MODE",
CacheMode::CacheAllStatic => "CACHE_ALL_STATIC",
CacheMode::ForceCacheAll => "FORCE_CACHE_ALL",
CacheMode::InvalidCacheMode => "INVALID_CACHE_MODE",
CacheMode::UseOriginHeaders => "USE_ORIGIN_HEADERS",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_CACHE_MODE" => Some(Self::UndefinedCacheMode),
"CACHE_ALL_STATIC" => Some(Self::CacheAllStatic),
"FORCE_CACHE_ALL" => Some(Self::ForceCacheAll),
"INVALID_CACHE_MODE" => Some(Self::InvalidCacheMode),
"USE_ORIGIN_HEADERS" => Some(Self::UseOriginHeaders),
_ => None,
}
}
}
}
/// Bypass the cache when the specified request headers are present, e.g. Pragma or Authorization headers. Values are case insensitive. The presence of such a header overrides the cache_mode setting.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendBucketCdnPolicyBypassCacheOnRequestHeader {
/// The header field name to match on when bypassing cache. Values are case-insensitive.
#[prost(string, optional, tag = "110223613")]
pub header_name: ::core::option::Option<::prost::alloc::string::String>,
}
/// Message containing what to include in the cache key for a request for Cloud CDN.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendBucketCdnPolicyCacheKeyPolicy {
/// Allows HTTP request headers (by name) to be used in the cache key.
#[prost(string, repeated, tag = "2489606")]
pub include_http_headers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Names of query string parameters to include in cache keys. Default parameters are always included. '&' and '=' will be percent encoded and not treated as delimiters.
#[prost(string, repeated, tag = "52456496")]
pub query_string_whitelist: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Specify CDN TTLs for response error codes.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendBucketCdnPolicyNegativeCachingPolicy {
/// The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 are can be specified as values, and you cannot specify a status code more than once.
#[prost(int32, optional, tag = "3059181")]
pub code: ::core::option::Option<i32>,
/// The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.
#[prost(int32, optional, tag = "115180")]
pub ttl: ::core::option::Option<i32>,
}
/// Contains a list of BackendBucket resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendBucketList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of BackendBucket resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<BackendBucket>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represents a Backend Service resource. A backend service defines how Google Cloud load balancers distribute traffic. The backend service configuration contains a set of values, such as the protocol used to connect to backends, various distribution and session settings, health checks, and timeouts. These settings provide fine-grained control over how your load balancer behaves. Most of the settings have default values that allow for easy configuration if you need to get started quickly. Backend services in Google Compute Engine can be either regionally or globally scoped. * [Global](<https://cloud.google.com/compute/docs/reference/rest/v1/backendServices>) * [Regional](<https://cloud.google.com/compute/docs/reference/rest/v1/regionBackendServices>) For more information, see Backend Services.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendService {
/// Lifetime of cookies in seconds. This setting is applicable to Application Load Balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is two weeks (1,209,600). Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
#[prost(int32, optional, tag = "369996954")]
pub affinity_cookie_ttl_sec: ::core::option::Option<i32>,
/// The list of backends that serve this BackendService.
#[prost(message, repeated, tag = "510839903")]
pub backends: ::prost::alloc::vec::Vec<Backend>,
/// Cloud CDN configuration for this BackendService. Only available for specified load balancer types.
#[prost(message, optional, tag = "213976452")]
pub cdn_policy: ::core::option::Option<BackendServiceCdnPolicy>,
#[prost(message, optional, tag = "421340061")]
pub circuit_breakers: ::core::option::Option<CircuitBreakers>,
/// Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.
/// Check the CompressionMode enum for the list of possible values.
#[prost(string, optional, tag = "95520988")]
pub compression_mode: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "461096747")]
pub connection_draining: ::core::option::Option<ConnectionDraining>,
/// Connection Tracking configuration for this BackendService. Connection tracking policy settings are only available for external passthrough Network Load Balancers and internal passthrough Network Load Balancers.
#[prost(message, optional, tag = "143994969")]
pub connection_tracking_policy: ::core::option::Option<
BackendServiceConnectionTrackingPolicy,
>,
/// Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or RING_HASH. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
#[prost(message, optional, tag = "905883")]
pub consistent_hash: ::core::option::Option<ConsistentHashLoadBalancerSettings>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// Headers that the load balancer adds to proxied requests. See [Creating custom headers](<https://cloud.google.com/load-balancing/docs/custom-headers>).
#[prost(string, repeated, tag = "27977992")]
pub custom_request_headers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Headers that the load balancer adds to proxied responses. See [Creating custom headers](<https://cloud.google.com/load-balancing/docs/custom-headers>).
#[prost(string, repeated, tag = "387539094")]
pub custom_response_headers: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The resource URL for the edge security policy associated with this backend service.
#[prost(string, optional, tag = "41036943")]
pub edge_security_policy: ::core::option::Option<::prost::alloc::string::String>,
/// If true, enables Cloud CDN for the backend service of a global external Application Load Balancer.
#[prost(bool, optional, tag = "250733499")]
pub enable_c_d_n: ::core::option::Option<bool>,
/// Requires at least one backend instance group to be defined as a backup (failover) backend. For load balancers that have configurable failover: [Internal passthrough Network Load Balancers](<https://cloud.google.com/load-balancing/docs/internal/failover-overview>) and [external passthrough Network Load Balancers](<https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview>).
#[prost(message, optional, tag = "105658655")]
pub failover_policy: ::core::option::Option<BackendServiceFailoverPolicy>,
/// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a BackendService. An up-to-date fingerprint must be provided in order to update the BackendService, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a BackendService.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service. Not all backend services support legacy health checks. See Load balancer guide. Currently, at most one health check can be specified for each backend service. Backend services with instance group or zonal NEG backends must have a health check. Backend services with internet or serverless NEG backends must not have a health check.
#[prost(string, repeated, tag = "448370606")]
pub health_checks: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The configurations for Identity-Aware Proxy on this resource. Not available for internal passthrough Network Load Balancers and external passthrough Network Load Balancers.
#[prost(message, optional, tag = "104024")]
pub iap: ::core::option::Option<BackendServiceIap>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of resource. Always compute#backendService for backend services.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the load balancer type. A backend service created for one type of load balancer cannot be used with another. For more information, refer to Choosing a load balancer.
/// Check the LoadBalancingScheme enum for the list of possible values.
#[prost(string, optional, tag = "363890244")]
pub load_balancing_scheme: ::core::option::Option<::prost::alloc::string::String>,
/// A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies\[\].policy or the localityLbPolicies\[\].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
#[prost(message, repeated, tag = "140982557")]
pub locality_lb_policies: ::prost::alloc::vec::Vec<
BackendServiceLocalityLoadBalancingPolicyConfig,
>,
/// The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see <https://ai.google/research/pubs/pub44824> This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
/// Check the LocalityLbPolicy enum for the list of possible values.
#[prost(string, optional, tag = "131431487")]
pub locality_lb_policy: ::core::option::Option<::prost::alloc::string::String>,
/// This field denotes the logging options for the load balancer traffic served by this backend service. If logging is enabled, logs will be exported to Stackdriver.
#[prost(message, optional, tag = "351299741")]
pub log_config: ::core::option::Option<BackendServiceLogConfig>,
/// Specifies the default maximum duration (timeout) for streams to this service. Duration is computed from the beginning of the stream until the response has been completely processed, including all retries. A stream that does not complete in this duration is closed. If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. This field is only allowed when the loadBalancingScheme of the backend service is INTERNAL_SELF_MANAGED.
#[prost(message, optional, tag = "61428376")]
pub max_stream_duration: ::core::option::Option<Duration>,
/// Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTH
#[prost(btree_map = "string, string", tag = "8514340")]
pub metadatas: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the network to which this backend service belongs. This field can only be specified when the load balancing scheme is set to INTERNAL.
#[prost(string, optional, tag = "232872494")]
pub network: ::core::option::Option<::prost::alloc::string::String>,
/// Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service. If not set, this feature is considered disabled. Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool and returning them back to the pool) are executed independently by each proxy instance of the load balancer. In most cases, more than one proxy instance handles the traffic received by a backend service. Thus, it is possible that an unhealthy endpoint is detected and ejected by only some of the proxies, and while this happens, other proxies may continue to send requests to the same unhealthy endpoint until they detect and eject the unhealthy endpoint. Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud Functions Services - Private Service Connect NEGs, that resolve to Google-managed regional API endpoints or managed services published using Private Service Connect Applicable backend service types can be: - A global backend service with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend service with the serviceProtocol set to HTTP, HTTPS, or HTTP2, and loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
#[prost(message, optional, tag = "354625086")]
pub outlier_detection: ::core::option::Option<OutlierDetection>,
/// Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. For internal passthrough Network Load Balancers and external passthrough Network Load Balancers, omit port.
#[prost(int32, optional, tag = "3446913")]
pub port: ::core::option::Option<i32>,
/// A named port on a backend instance group representing the port for communication to the backend VMs in that group. The named port must be [defined on each backend instance group](<https://cloud.google.com/load-balancing/docs/backend-service#named_ports>). This parameter has no meaning if the backends are NEGs. For internal passthrough Network Load Balancers and external passthrough Network Load Balancers, omit port_name.
#[prost(string, optional, tag = "41534345")]
pub port_name: ::core::option::Option<::prost::alloc::string::String>,
/// The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancers or for Traffic Director for more information. Must be set to GRPC when the backend service is referenced by a URL map that is bound to target gRPC proxy.
/// Check the Protocol enum for the list of possible values.
#[prost(string, optional, tag = "84577944")]
pub protocol: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the region where the regional backend service resides. This field is not applicable to global backend services. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The resource URL for the security policy associated with this backend service.
#[prost(string, optional, tag = "171082513")]
pub security_policy: ::core::option::Option<::prost::alloc::string::String>,
/// This field specifies the security settings that apply to this backend service. This field is applicable to a global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
#[prost(message, optional, tag = "478649922")]
pub security_settings: ::core::option::Option<SecuritySettings>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// URLs of networkservices.ServiceBinding resources. Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends and health checks must be both empty.
#[prost(string, repeated, tag = "133581016")]
pub service_bindings: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// URL to networkservices.ServiceLbPolicy resource. Can only be set if load balancing scheme is EXTERNAL, EXTERNAL_MANAGED, INTERNAL_MANAGED or INTERNAL_SELF_MANAGED and the scope is global.
#[prost(string, optional, tag = "94848785")]
pub service_lb_policy: ::core::option::Option<::prost::alloc::string::String>,
/// Type of session affinity to use. The default is NONE. Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. For more details, see: [Session Affinity](<https://cloud.google.com/load-balancing/docs/backend-service#session_affinity>).
/// Check the SessionAffinity enum for the list of possible values.
#[prost(string, optional, tag = "463888561")]
pub session_affinity: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "450283536")]
pub subsetting: ::core::option::Option<Subsetting>,
/// The backend service timeout has a different meaning depending on the type of load balancer. For more information see, Backend service settings. The default is 30 seconds. The full range of timeout values allowed goes from 1 through 2,147,483,647 seconds. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Instead, use maxStreamDuration.
#[prost(int32, optional, tag = "79994995")]
pub timeout_sec: ::core::option::Option<i32>,
#[prost(message, repeated, tag = "389320729")]
pub used_by: ::prost::alloc::vec::Vec<BackendServiceUsedBy>,
}
/// Nested message and enum types in `BackendService`.
pub mod backend_service {
/// Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum CompressionMode {
/// A value indicating that the enum field is not set.
UndefinedCompressionMode = 0,
/// Automatically uses the best compression based on the Accept-Encoding header sent by the client.
Automatic = 165298699,
/// Disables compression. Existing compressed responses cached by Cloud CDN will not be served to clients.
Disabled = 516696700,
}
impl CompressionMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
CompressionMode::UndefinedCompressionMode => "UNDEFINED_COMPRESSION_MODE",
CompressionMode::Automatic => "AUTOMATIC",
CompressionMode::Disabled => "DISABLED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_COMPRESSION_MODE" => Some(Self::UndefinedCompressionMode),
"AUTOMATIC" => Some(Self::Automatic),
"DISABLED" => Some(Self::Disabled),
_ => None,
}
}
}
/// Specifies the load balancer type. A backend service created for one type of load balancer cannot be used with another. For more information, refer to Choosing a load balancer.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum LoadBalancingScheme {
/// A value indicating that the enum field is not set.
UndefinedLoadBalancingScheme = 0,
/// Signifies that this will be used for classic Application Load Balancers, global external proxy Network Load Balancers, or external passthrough Network Load Balancers.
External = 35607499,
/// Signifies that this will be used for global external Application Load Balancers, regional external Application Load Balancers, or regional external proxy Network Load Balancers.
ExternalManaged = 512006923,
/// Signifies that this will be used for internal passthrough Network Load Balancers.
Internal = 279295677,
/// Signifies that this will be used for internal Application Load Balancers.
InternalManaged = 37350397,
/// Signifies that this will be used by Traffic Director.
InternalSelfManaged = 236211150,
InvalidLoadBalancingScheme = 275352060,
}
impl LoadBalancingScheme {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
LoadBalancingScheme::UndefinedLoadBalancingScheme => {
"UNDEFINED_LOAD_BALANCING_SCHEME"
}
LoadBalancingScheme::External => "EXTERNAL",
LoadBalancingScheme::ExternalManaged => "EXTERNAL_MANAGED",
LoadBalancingScheme::Internal => "INTERNAL",
LoadBalancingScheme::InternalManaged => "INTERNAL_MANAGED",
LoadBalancingScheme::InternalSelfManaged => "INTERNAL_SELF_MANAGED",
LoadBalancingScheme::InvalidLoadBalancingScheme => {
"INVALID_LOAD_BALANCING_SCHEME"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_LOAD_BALANCING_SCHEME" => {
Some(Self::UndefinedLoadBalancingScheme)
}
"EXTERNAL" => Some(Self::External),
"EXTERNAL_MANAGED" => Some(Self::ExternalManaged),
"INTERNAL" => Some(Self::Internal),
"INTERNAL_MANAGED" => Some(Self::InternalManaged),
"INTERNAL_SELF_MANAGED" => Some(Self::InternalSelfManaged),
"INVALID_LOAD_BALANCING_SCHEME" => Some(Self::InvalidLoadBalancingScheme),
_ => None,
}
}
}
/// The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see <https://ai.google/research/pubs/pub44824> This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum LocalityLbPolicy {
/// A value indicating that the enum field is not set.
UndefinedLocalityLbPolicy = 0,
InvalidLbPolicy = 323318707,
/// An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests.
LeastRequest = 46604921,
/// This algorithm implements consistent hashing to backends. Maglev can be used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see <https://ai.google/research/pubs/pub44824>
Maglev = 119180266,
/// Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer.
OriginalDestination = 166297216,
/// The load balancer selects a random healthy host.
Random = 262527171,
/// The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests.
RingHash = 432795069,
/// This is a simple policy in which each healthy backend is selected in round robin order. This is the default.
RoundRobin = 153895801,
/// Per-instance weighted Load Balancing via health check reported weights. If set, the Backend Service must configure a non legacy HTTP-based Health Check, and health check replies are expected to contain non-standard HTTP response header field X-Load-Balancing-Endpoint-Weight to specify the per-instance weights. If set, Load Balancing is weighted based on the per-instance weights reported in the last processed health check replies, as long as every instance either reported a valid weight or had UNAVAILABLE_WEIGHT. Otherwise, Load Balancing remains equal-weight. This option is only supported in Network Load Balancing.
WeightedMaglev = 254930962,
}
impl LocalityLbPolicy {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
LocalityLbPolicy::UndefinedLocalityLbPolicy => {
"UNDEFINED_LOCALITY_LB_POLICY"
}
LocalityLbPolicy::InvalidLbPolicy => "INVALID_LB_POLICY",
LocalityLbPolicy::LeastRequest => "LEAST_REQUEST",
LocalityLbPolicy::Maglev => "MAGLEV",
LocalityLbPolicy::OriginalDestination => "ORIGINAL_DESTINATION",
LocalityLbPolicy::Random => "RANDOM",
LocalityLbPolicy::RingHash => "RING_HASH",
LocalityLbPolicy::RoundRobin => "ROUND_ROBIN",
LocalityLbPolicy::WeightedMaglev => "WEIGHTED_MAGLEV",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_LOCALITY_LB_POLICY" => Some(Self::UndefinedLocalityLbPolicy),
"INVALID_LB_POLICY" => Some(Self::InvalidLbPolicy),
"LEAST_REQUEST" => Some(Self::LeastRequest),
"MAGLEV" => Some(Self::Maglev),
"ORIGINAL_DESTINATION" => Some(Self::OriginalDestination),
"RANDOM" => Some(Self::Random),
"RING_HASH" => Some(Self::RingHash),
"ROUND_ROBIN" => Some(Self::RoundRobin),
"WEIGHTED_MAGLEV" => Some(Self::WeightedMaglev),
_ => None,
}
}
}
/// The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancers or for Traffic Director for more information. Must be set to GRPC when the backend service is referenced by a URL map that is bound to target gRPC proxy.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Protocol {
/// A value indicating that the enum field is not set.
UndefinedProtocol = 0,
/// gRPC (available for Traffic Director).
Grpc = 2196510,
Http = 2228360,
/// HTTP/2 with SSL.
Http2 = 69079210,
Https = 69079243,
/// TCP proxying with SSL.
Ssl = 82412,
/// TCP proxying or TCP pass-through.
Tcp = 82881,
/// UDP.
Udp = 83873,
/// If a Backend Service has UNSPECIFIED as its protocol, it can be used with any L3/L4 Forwarding Rules.
Unspecified = 526786327,
}
impl Protocol {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Protocol::UndefinedProtocol => "UNDEFINED_PROTOCOL",
Protocol::Grpc => "GRPC",
Protocol::Http => "HTTP",
Protocol::Http2 => "HTTP2",
Protocol::Https => "HTTPS",
Protocol::Ssl => "SSL",
Protocol::Tcp => "TCP",
Protocol::Udp => "UDP",
Protocol::Unspecified => "UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PROTOCOL" => Some(Self::UndefinedProtocol),
"GRPC" => Some(Self::Grpc),
"HTTP" => Some(Self::Http),
"HTTP2" => Some(Self::Http2),
"HTTPS" => Some(Self::Https),
"SSL" => Some(Self::Ssl),
"TCP" => Some(Self::Tcp),
"UDP" => Some(Self::Udp),
"UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
/// Type of session affinity to use. The default is NONE. Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. For more details, see: [Session Affinity](<https://cloud.google.com/load-balancing/docs/backend-service#session_affinity>).
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum SessionAffinity {
/// A value indicating that the enum field is not set.
UndefinedSessionAffinity = 0,
/// 2-tuple hash on packet's source and destination IP addresses. Connections from the same source IP address to the same destination IP address will be served by the same backend VM while that VM remains healthy.
ClientIp = 345665051,
/// 1-tuple hash only on packet's source IP address. Connections from the same source IP address will be served by the same backend VM while that VM remains healthy. This option can only be used for Internal TCP/UDP Load Balancing.
ClientIpNoDestination = 106122516,
/// 5-tuple hash on packet's source and destination IP addresses, IP protocol, and source and destination ports. Connections for the same IP protocol from the same source IP address and port to the same destination IP address and port will be served by the same backend VM while that VM remains healthy. This option cannot be used for HTTP(S) load balancing.
ClientIpPortProto = 221722926,
/// 3-tuple hash on packet's source and destination IP addresses, and IP protocol. Connections for the same IP protocol from the same source IP address to the same destination IP address will be served by the same backend VM while that VM remains healthy. This option cannot be used for HTTP(S) load balancing.
ClientIpProto = 25322148,
/// Hash based on a cookie generated by the L7 loadbalancer. Only valid for HTTP(S) load balancing.
GeneratedCookie = 370321204,
/// The hash is based on a user specified header field.
HeaderField = 200737960,
/// The hash is based on a user provided cookie.
HttpCookie = 494981627,
/// No session affinity. Connections from the same client IP may go to any instance in the pool.
None = 2402104,
}
impl SessionAffinity {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
SessionAffinity::UndefinedSessionAffinity => "UNDEFINED_SESSION_AFFINITY",
SessionAffinity::ClientIp => "CLIENT_IP",
SessionAffinity::ClientIpNoDestination => "CLIENT_IP_NO_DESTINATION",
SessionAffinity::ClientIpPortProto => "CLIENT_IP_PORT_PROTO",
SessionAffinity::ClientIpProto => "CLIENT_IP_PROTO",
SessionAffinity::GeneratedCookie => "GENERATED_COOKIE",
SessionAffinity::HeaderField => "HEADER_FIELD",
SessionAffinity::HttpCookie => "HTTP_COOKIE",
SessionAffinity::None => "NONE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_SESSION_AFFINITY" => Some(Self::UndefinedSessionAffinity),
"CLIENT_IP" => Some(Self::ClientIp),
"CLIENT_IP_NO_DESTINATION" => Some(Self::ClientIpNoDestination),
"CLIENT_IP_PORT_PROTO" => Some(Self::ClientIpPortProto),
"CLIENT_IP_PROTO" => Some(Self::ClientIpProto),
"GENERATED_COOKIE" => Some(Self::GeneratedCookie),
"HEADER_FIELD" => Some(Self::HeaderField),
"HTTP_COOKIE" => Some(Self::HttpCookie),
"NONE" => Some(Self::None),
_ => None,
}
}
}
}
/// Contains a list of BackendServicesScopedList.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendServiceAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of BackendServicesScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
BackendServicesScopedList,
>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Message containing Cloud CDN configuration for a backend service.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendServiceCdnPolicy {
/// Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode settings.
#[prost(message, repeated, tag = "486203082")]
pub bypass_cache_on_request_headers: ::prost::alloc::vec::Vec<
BackendServiceCdnPolicyBypassCacheOnRequestHeader,
>,
/// The CacheKeyPolicy for this CdnPolicy.
#[prost(message, optional, tag = "159263727")]
pub cache_key_policy: ::core::option::Option<CacheKeyPolicy>,
/// Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
/// Check the CacheMode enum for the list of possible values.
#[prost(string, optional, tag = "28877888")]
pub cache_mode: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max-age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the response max-age directive, along with a "public" directive. For cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if specified), or else sets the response max-age directive to the lesser of the client_ttl and default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is not specified, a default value (1 hour) will be used. The maximum allowed value is 31,622,400s (1 year).
#[prost(int32, optional, tag = "29034360")]
pub client_ttl: ::core::option::Option<i32>,
/// Specifies the default TTL for cached content served by this origin for responses that do not have an existing valid TTL (max-age or s-max-age). Setting a TTL of "0" means "always revalidate". The value of defaultTTL cannot be set to a value greater than that of maxTTL, but can be equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses. The maximum allowed value is 31,622,400s (1 year), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.
#[prost(int32, optional, tag = "100253422")]
pub default_ttl: ::core::option::Option<i32>,
/// Specifies the maximum allowed TTL for cached content served by this origin. Cache directives that attempt to set a max-age or s-maxage higher than this, or an Expires header more than maxTTL seconds in the future will be capped at the value of maxTTL, as if it were the value of an s-maxage Cache-Control directive. Headers sent to the client will not be modified. Setting a TTL of "0" means "always revalidate". The maximum allowed value is 31,622,400s (1 year), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.
#[prost(int32, optional, tag = "307578001")]
pub max_ttl: ::core::option::Option<i32>,
/// Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, and override any caching headers. By default, Cloud CDN will apply the following default TTLs to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy.
#[prost(bool, optional, tag = "336110005")]
pub negative_caching: ::core::option::Option<bool>,
/// Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled will use Cloud CDN's default cache TTLs. Note that when specifying an explicit negative_caching_policy, you should take care to specify a cache TTL for all response codes that you wish to cache. Cloud CDN will not apply any default negative caching when a policy exists.
#[prost(message, repeated, tag = "155359996")]
pub negative_caching_policy: ::prost::alloc::vec::Vec<
BackendServiceCdnPolicyNegativeCachingPolicy,
>,
/// If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number of requests to the origin.
#[prost(bool, optional, tag = "532808276")]
pub request_coalescing: ::core::option::Option<bool>,
/// Serve existing content from the cache (if available) when revalidating content with the origin, or when an error is encountered when refreshing the cache. This setting defines the default "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale responses that exceed the TTL configured here will not be served. The default limit (max-stale) is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max-age (or s-max-age) of a cached response. The maximum allowed value is 604800 (1 week). Set this to zero (0) to disable serve-while-stale.
#[prost(int32, optional, tag = "236682203")]
pub serve_while_stale: ::core::option::Option<i32>,
/// Maximum number of seconds the response to a signed URL request will be considered fresh. After this time period, the response will be revalidated before being served. Defaults to 1hr (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as though all responses from this backend had a "Cache-Control: public, max-age=\[TTL\]" header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.
#[prost(int64, optional, tag = "269374534")]
pub signed_url_cache_max_age_sec: ::core::option::Option<i64>,
/// \[Output Only\] Names of the keys for signing request URLs.
#[prost(string, repeated, tag = "371848885")]
pub signed_url_key_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `BackendServiceCdnPolicy`.
pub mod backend_service_cdn_policy {
/// Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum CacheMode {
/// A value indicating that the enum field is not set.
UndefinedCacheMode = 0,
/// Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
CacheAllStatic = 355027945,
/// Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content.
ForceCacheAll = 486026928,
InvalidCacheMode = 381295560,
/// Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server.
UseOriginHeaders = 55380261,
}
impl CacheMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
CacheMode::UndefinedCacheMode => "UNDEFINED_CACHE_MODE",
CacheMode::CacheAllStatic => "CACHE_ALL_STATIC",
CacheMode::ForceCacheAll => "FORCE_CACHE_ALL",
CacheMode::InvalidCacheMode => "INVALID_CACHE_MODE",
CacheMode::UseOriginHeaders => "USE_ORIGIN_HEADERS",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_CACHE_MODE" => Some(Self::UndefinedCacheMode),
"CACHE_ALL_STATIC" => Some(Self::CacheAllStatic),
"FORCE_CACHE_ALL" => Some(Self::ForceCacheAll),
"INVALID_CACHE_MODE" => Some(Self::InvalidCacheMode),
"USE_ORIGIN_HEADERS" => Some(Self::UseOriginHeaders),
_ => None,
}
}
}
}
/// Bypass the cache when the specified request headers are present, e.g. Pragma or Authorization headers. Values are case insensitive. The presence of such a header overrides the cache_mode setting.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendServiceCdnPolicyBypassCacheOnRequestHeader {
/// The header field name to match on when bypassing cache. Values are case-insensitive.
#[prost(string, optional, tag = "110223613")]
pub header_name: ::core::option::Option<::prost::alloc::string::String>,
}
/// Specify CDN TTLs for response error codes.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendServiceCdnPolicyNegativeCachingPolicy {
/// The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 are can be specified as values, and you cannot specify a status code more than once.
#[prost(int32, optional, tag = "3059181")]
pub code: ::core::option::Option<i32>,
/// The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.
#[prost(int32, optional, tag = "115180")]
pub ttl: ::core::option::Option<i32>,
}
/// Connection Tracking configuration for this BackendService.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendServiceConnectionTrackingPolicy {
/// Specifies connection persistence when backends are unhealthy. The default value is DEFAULT_FOR_PROTOCOL. If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode is PER_CONNECTION (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist for UDP. If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the unhealthy backend are never persisted on the unhealthy backend. They are always diverted to newly selected healthy backends (unless all backends are unhealthy). If set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless of protocol and session affinity. It is generally not recommended to use this mode overriding the default. For more details, see [Connection Persistence for Network Load Balancing](<https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#connection-persistence>) and [Connection Persistence for Internal TCP/UDP Load Balancing](<https://cloud.google.com/load-balancing/docs/internal#connection-persistence>).
/// Check the ConnectionPersistenceOnUnhealthyBackends enum for the list of possible values.
#[prost(string, optional, tag = "152439033")]
pub connection_persistence_on_unhealthy_backends: ::core::option::Option<
::prost::alloc::string::String,
>,
/// Enable Strong Session Affinity for external passthrough Network Load Balancers. This option is not available publicly.
#[prost(bool, optional, tag = "24539924")]
pub enable_strong_affinity: ::core::option::Option<bool>,
/// Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in seconds). For internal passthrough Network Load Balancers: - The minimum (default) is 10 minutes and the maximum is 16 hours. - It can be set only if Connection Tracking is less than 5-tuple (i.e. Session Affinity is CLIENT_IP_NO_DESTINATION, CLIENT_IP or CLIENT_IP_PROTO, and Tracking Mode is PER_SESSION). For external passthrough Network Load Balancers the default is 60 seconds. This option is not available publicly.
#[prost(int32, optional, tag = "24977544")]
pub idle_timeout_sec: ::core::option::Option<i32>,
/// Specifies the key used for connection tracking. There are two options: - PER_CONNECTION: This is the default mode. The Connection Tracking is performed as per the Connection Key (default Hash Method) for the specific protocol. - PER_SESSION: The Connection Tracking is performed as per the configured Session Affinity. It matches the configured Session Affinity. For more details, see [Tracking Mode for Network Load Balancing](<https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#tracking-mode>) and [Tracking Mode for Internal TCP/UDP Load Balancing](<https://cloud.google.com/load-balancing/docs/internal#tracking-mode>).
/// Check the TrackingMode enum for the list of possible values.
#[prost(string, optional, tag = "127757867")]
pub tracking_mode: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `BackendServiceConnectionTrackingPolicy`.
pub mod backend_service_connection_tracking_policy {
/// Specifies connection persistence when backends are unhealthy. The default value is DEFAULT_FOR_PROTOCOL. If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode is PER_CONNECTION (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist for UDP. If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the unhealthy backend are never persisted on the unhealthy backend. They are always diverted to newly selected healthy backends (unless all backends are unhealthy). If set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless of protocol and session affinity. It is generally not recommended to use this mode overriding the default. For more details, see [Connection Persistence for Network Load Balancing](<https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#connection-persistence>) and [Connection Persistence for Internal TCP/UDP Load Balancing](<https://cloud.google.com/load-balancing/docs/internal#connection-persistence>).
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ConnectionPersistenceOnUnhealthyBackends {
/// A value indicating that the enum field is not set.
UndefinedConnectionPersistenceOnUnhealthyBackends = 0,
AlwaysPersist = 38400900,
DefaultForProtocol = 145265356,
NeverPersist = 138646241,
}
impl ConnectionPersistenceOnUnhealthyBackends {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ConnectionPersistenceOnUnhealthyBackends::UndefinedConnectionPersistenceOnUnhealthyBackends => {
"UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS"
}
ConnectionPersistenceOnUnhealthyBackends::AlwaysPersist => {
"ALWAYS_PERSIST"
}
ConnectionPersistenceOnUnhealthyBackends::DefaultForProtocol => {
"DEFAULT_FOR_PROTOCOL"
}
ConnectionPersistenceOnUnhealthyBackends::NeverPersist => "NEVER_PERSIST",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS" => {
Some(Self::UndefinedConnectionPersistenceOnUnhealthyBackends)
}
"ALWAYS_PERSIST" => Some(Self::AlwaysPersist),
"DEFAULT_FOR_PROTOCOL" => Some(Self::DefaultForProtocol),
"NEVER_PERSIST" => Some(Self::NeverPersist),
_ => None,
}
}
}
/// Specifies the key used for connection tracking. There are two options: - PER_CONNECTION: This is the default mode. The Connection Tracking is performed as per the Connection Key (default Hash Method) for the specific protocol. - PER_SESSION: The Connection Tracking is performed as per the configured Session Affinity. It matches the configured Session Affinity. For more details, see [Tracking Mode for Network Load Balancing](<https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#tracking-mode>) and [Tracking Mode for Internal TCP/UDP Load Balancing](<https://cloud.google.com/load-balancing/docs/internal#tracking-mode>).
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum TrackingMode {
/// A value indicating that the enum field is not set.
UndefinedTrackingMode = 0,
InvalidTrackingMode = 49234371,
PerConnection = 85162848,
PerSession = 182099252,
}
impl TrackingMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
TrackingMode::UndefinedTrackingMode => "UNDEFINED_TRACKING_MODE",
TrackingMode::InvalidTrackingMode => "INVALID_TRACKING_MODE",
TrackingMode::PerConnection => "PER_CONNECTION",
TrackingMode::PerSession => "PER_SESSION",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TRACKING_MODE" => Some(Self::UndefinedTrackingMode),
"INVALID_TRACKING_MODE" => Some(Self::InvalidTrackingMode),
"PER_CONNECTION" => Some(Self::PerConnection),
"PER_SESSION" => Some(Self::PerSession),
_ => None,
}
}
}
}
/// For load balancers that have configurable failover: [Internal passthrough Network Load Balancers](<https://cloud.google.com/load-balancing/docs/internal/failover-overview>) and [external passthrough Network Load Balancers](<https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview>). On failover or failback, this field indicates whether connection draining will be honored. Google Cloud has a fixed connection draining timeout of 10 minutes. A setting of true terminates existing TCP connections to the active pool during failover and failback, immediately draining traffic. A setting of false allows existing TCP connections to persist, even on VMs no longer in the active pool, for up to the duration of the connection draining timeout (10 minutes).
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendServiceFailoverPolicy {
/// This can be set to true only if the protocol is TCP. The default is false.
#[prost(bool, optional, tag = "182150753")]
pub disable_connection_drain_on_failover: ::core::option::Option<bool>,
/// If set to true, connections to the load balancer are dropped when all primary and all backup backend VMs are unhealthy.If set to false, connections are distributed among all primary VMs when all primary and all backup backend VMs are unhealthy. For load balancers that have configurable failover: [Internal passthrough Network Load Balancers](<https://cloud.google.com/load-balancing/docs/internal/failover-overview>) and [external passthrough Network Load Balancers](<https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview>). The default is false.
#[prost(bool, optional, tag = "112289428")]
pub drop_traffic_if_unhealthy: ::core::option::Option<bool>,
/// The value of the field must be in the range \[0, 1\]. If the value is 0, the load balancer performs a failover when the number of healthy primary VMs equals zero. For all other values, the load balancer performs a failover when the total number of healthy primary VMs is less than this ratio. For load balancers that have configurable failover: [Internal TCP/UDP Load Balancing](<https://cloud.google.com/load-balancing/docs/internal/failover-overview>) and [external TCP/UDP Load Balancing](<https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview>).
#[prost(float, optional, tag = "212667006")]
pub failover_ratio: ::core::option::Option<f32>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendServiceGroupHealth {
/// Metadata defined as annotations on the network endpoint group.
#[prost(btree_map = "string, string", tag = "112032548")]
pub annotations: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.
#[prost(message, repeated, tag = "380545845")]
pub health_status: ::prost::alloc::vec::Vec<HealthStatus>,
/// \[Output Only\] Type of resource. Always compute#backendServiceGroupHealth for the health of backend services.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
}
/// Identity-Aware Proxy
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendServiceIap {
/// Whether the serving infrastructure will authenticate and authorize all incoming requests.
#[prost(bool, optional, tag = "1018689")]
pub enabled: ::core::option::Option<bool>,
/// OAuth2 client ID to use for the authentication flow.
#[prost(string, optional, tag = "314017611")]
pub oauth2_client_id: ::core::option::Option<::prost::alloc::string::String>,
/// OAuth2 client secret to use for the authentication flow. For security reasons, this value cannot be retrieved via the API. Instead, the SHA-256 hash of the value is returned in the oauth2ClientSecretSha256 field. @InputOnly
#[prost(string, optional, tag = "50999520")]
pub oauth2_client_secret: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] SHA256 hash value for the field oauth2_client_secret above.
#[prost(string, optional, tag = "112903782")]
pub oauth2_client_secret_sha256: ::core::option::Option<
::prost::alloc::string::String,
>,
}
/// Contains a list of BackendService resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendServiceList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of BackendService resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<BackendService>,
/// \[Output Only\] Type of resource. Always compute#backendServiceList for lists of backend services.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of usable BackendService resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendServiceListUsable {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of BackendService resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<BackendService>,
/// \[Output Only\] Type of resource. Always compute#usableBackendServiceList for lists of usable backend services.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Container for either a built-in LB policy supported by gRPC or Envoy or a custom one implemented by the end user.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendServiceLocalityLoadBalancingPolicyConfig {
#[prost(message, optional, tag = "4818368")]
pub custom_policy: ::core::option::Option<
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy,
>,
#[prost(message, optional, tag = "91071794")]
pub policy: ::core::option::Option<
BackendServiceLocalityLoadBalancingPolicyConfigPolicy,
>,
}
/// The configuration for a custom policy implemented by the user and deployed with the client.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy {
/// An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.
#[prost(string, optional, tag = "3076010")]
pub data: ::core::option::Option<::prost::alloc::string::String>,
/// Identifies the custom policy. The value should match the name of a custom implementation registered on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (for example, myorg.CustomLbPolicy). The maximum length is 256 characters. Do not specify the same custom policy more than once for a backend. If you do, the configuration is rejected. For an example of how to use this field, see Use a custom policy.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
}
/// The configuration for a built-in load balancing policy.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendServiceLocalityLoadBalancingPolicyConfigPolicy {
/// The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information about these values, see the description of localityLbPolicy. Do not specify the same policy more than once for a backend. If you do, the configuration is rejected.
/// Check the Name enum for the list of possible values.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `BackendServiceLocalityLoadBalancingPolicyConfigPolicy`.
pub mod backend_service_locality_load_balancing_policy_config_policy {
/// The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information about these values, see the description of localityLbPolicy. Do not specify the same policy more than once for a backend. If you do, the configuration is rejected.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Name {
/// A value indicating that the enum field is not set.
UndefinedName = 0,
InvalidLbPolicy = 323318707,
/// An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests.
LeastRequest = 46604921,
/// This algorithm implements consistent hashing to backends. Maglev can be used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see <https://ai.google/research/pubs/pub44824>
Maglev = 119180266,
/// Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer.
OriginalDestination = 166297216,
/// The load balancer selects a random healthy host.
Random = 262527171,
/// The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests.
RingHash = 432795069,
/// This is a simple policy in which each healthy backend is selected in round robin order. This is the default.
RoundRobin = 153895801,
/// Per-instance weighted Load Balancing via health check reported weights. If set, the Backend Service must configure a non legacy HTTP-based Health Check, and health check replies are expected to contain non-standard HTTP response header field X-Load-Balancing-Endpoint-Weight to specify the per-instance weights. If set, Load Balancing is weighted based on the per-instance weights reported in the last processed health check replies, as long as every instance either reported a valid weight or had UNAVAILABLE_WEIGHT. Otherwise, Load Balancing remains equal-weight. This option is only supported in Network Load Balancing.
WeightedMaglev = 254930962,
}
impl Name {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Name::UndefinedName => "UNDEFINED_NAME",
Name::InvalidLbPolicy => "INVALID_LB_POLICY",
Name::LeastRequest => "LEAST_REQUEST",
Name::Maglev => "MAGLEV",
Name::OriginalDestination => "ORIGINAL_DESTINATION",
Name::Random => "RANDOM",
Name::RingHash => "RING_HASH",
Name::RoundRobin => "ROUND_ROBIN",
Name::WeightedMaglev => "WEIGHTED_MAGLEV",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_NAME" => Some(Self::UndefinedName),
"INVALID_LB_POLICY" => Some(Self::InvalidLbPolicy),
"LEAST_REQUEST" => Some(Self::LeastRequest),
"MAGLEV" => Some(Self::Maglev),
"ORIGINAL_DESTINATION" => Some(Self::OriginalDestination),
"RANDOM" => Some(Self::Random),
"RING_HASH" => Some(Self::RingHash),
"ROUND_ROBIN" => Some(Self::RoundRobin),
"WEIGHTED_MAGLEV" => Some(Self::WeightedMaglev),
_ => None,
}
}
}
}
/// The available logging options for the load balancer traffic served by this backend service.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendServiceLogConfig {
/// Denotes whether to enable logging for the load balancer traffic served by this backend service. The default value is false.
#[prost(bool, optional, tag = "311764355")]
pub enable: ::core::option::Option<bool>,
/// This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace
#[prost(string, repeated, tag = "528589944")]
pub optional_fields: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of \[INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM\]. Default is EXCLUDE_ALL_OPTIONAL.
/// Check the OptionalMode enum for the list of possible values.
#[prost(string, optional, tag = "128697122")]
pub optional_mode: ::core::option::Option<::prost::alloc::string::String>,
/// This field can only be specified if logging is enabled for this backend service. The value of the field must be in \[0, 1\]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0.
#[prost(float, optional, tag = "153193045")]
pub sample_rate: ::core::option::Option<f32>,
}
/// Nested message and enum types in `BackendServiceLogConfig`.
pub mod backend_service_log_config {
/// This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of \[INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM\]. Default is EXCLUDE_ALL_OPTIONAL.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum OptionalMode {
/// A value indicating that the enum field is not set.
UndefinedOptionalMode = 0,
/// A subset of optional fields.
Custom = 388595569,
/// None optional fields.
ExcludeAllOptional = 168636099,
/// All optional fields.
IncludeAllOptional = 535606965,
}
impl OptionalMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
OptionalMode::UndefinedOptionalMode => "UNDEFINED_OPTIONAL_MODE",
OptionalMode::Custom => "CUSTOM",
OptionalMode::ExcludeAllOptional => "EXCLUDE_ALL_OPTIONAL",
OptionalMode::IncludeAllOptional => "INCLUDE_ALL_OPTIONAL",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_OPTIONAL_MODE" => Some(Self::UndefinedOptionalMode),
"CUSTOM" => Some(Self::Custom),
"EXCLUDE_ALL_OPTIONAL" => Some(Self::ExcludeAllOptional),
"INCLUDE_ALL_OPTIONAL" => Some(Self::IncludeAllOptional),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendServiceReference {
#[prost(string, optional, tag = "306946058")]
pub backend_service: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendServiceUsedBy {
#[prost(string, optional, tag = "148586315")]
pub reference: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackendServicesScopedList {
/// A list of BackendServices contained in this scope.
#[prost(message, repeated, tag = "388522409")]
pub backend_services: ::prost::alloc::vec::Vec<BackendService>,
/// Informational warning which replaces the list of backend services when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BfdPacket {
/// The Authentication Present bit of the BFD packet. This is specified in section 4.1 of RFC5880
#[prost(bool, optional, tag = "105974260")]
pub authentication_present: ::core::option::Option<bool>,
/// The Control Plane Independent bit of the BFD packet. This is specified in section 4.1 of RFC5880
#[prost(bool, optional, tag = "62363573")]
pub control_plane_independent: ::core::option::Option<bool>,
/// The demand bit of the BFD packet. This is specified in section 4.1 of RFC5880
#[prost(bool, optional, tag = "275180107")]
pub demand: ::core::option::Option<bool>,
/// The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880
/// Check the Diagnostic enum for the list of possible values.
#[prost(string, optional, tag = "62708647")]
pub diagnostic: ::core::option::Option<::prost::alloc::string::String>,
/// The Final bit of the BFD packet. This is specified in section 4.1 of RFC5880
#[prost(bool, optional, tag = "97436022")]
pub r#final: ::core::option::Option<bool>,
/// The length of the BFD Control packet in bytes. This is specified in section 4.1 of RFC5880
#[prost(uint32, optional, tag = "504249062")]
pub length: ::core::option::Option<u32>,
/// The Required Min Echo RX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880
#[prost(uint32, optional, tag = "97286868")]
pub min_echo_rx_interval_ms: ::core::option::Option<u32>,
/// The Required Min RX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880
#[prost(uint32, optional, tag = "463399028")]
pub min_rx_interval_ms: ::core::option::Option<u32>,
/// The Desired Min TX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880
#[prost(uint32, optional, tag = "526023602")]
pub min_tx_interval_ms: ::core::option::Option<u32>,
/// The detection time multiplier of the BFD packet. This is specified in section 4.1 of RFC5880
#[prost(uint32, optional, tag = "191331777")]
pub multiplier: ::core::option::Option<u32>,
/// The multipoint bit of the BFD packet. This is specified in section 4.1 of RFC5880
#[prost(bool, optional, tag = "191421431")]
pub multipoint: ::core::option::Option<bool>,
/// The My Discriminator value in the BFD packet. This is specified in section 4.1 of RFC5880
#[prost(uint32, optional, tag = "76663113")]
pub my_discriminator: ::core::option::Option<u32>,
/// The Poll bit of the BFD packet. This is specified in section 4.1 of RFC5880
#[prost(bool, optional, tag = "3446719")]
pub poll: ::core::option::Option<bool>,
/// The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880
/// Check the State enum for the list of possible values.
#[prost(string, optional, tag = "109757585")]
pub state: ::core::option::Option<::prost::alloc::string::String>,
/// The version number of the BFD protocol, as specified in section 4.1 of RFC5880.
#[prost(uint32, optional, tag = "351608024")]
pub version: ::core::option::Option<u32>,
/// The Your Discriminator value in the BFD packet. This is specified in section 4.1 of RFC5880
#[prost(uint32, optional, tag = "515634064")]
pub your_discriminator: ::core::option::Option<u32>,
}
/// Nested message and enum types in `BfdPacket`.
pub mod bfd_packet {
/// The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Diagnostic {
/// A value indicating that the enum field is not set.
UndefinedDiagnostic = 0,
AdministrativelyDown = 121685798,
ConcatenatedPathDown = 26186892,
ControlDetectionTimeExpired = 135478383,
Unspecified = 58720895,
EchoFunctionFailed = 220687466,
ForwardingPlaneReset = 19715882,
NeighborSignaledSessionDown = 374226742,
NoDiagnostic = 222503141,
PathDown = 290605180,
ReverseConcatenatedPathDown = 479337129,
}
impl Diagnostic {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Diagnostic::UndefinedDiagnostic => "UNDEFINED_DIAGNOSTIC",
Diagnostic::AdministrativelyDown => "ADMINISTRATIVELY_DOWN",
Diagnostic::ConcatenatedPathDown => "CONCATENATED_PATH_DOWN",
Diagnostic::ControlDetectionTimeExpired => {
"CONTROL_DETECTION_TIME_EXPIRED"
}
Diagnostic::Unspecified => "DIAGNOSTIC_UNSPECIFIED",
Diagnostic::EchoFunctionFailed => "ECHO_FUNCTION_FAILED",
Diagnostic::ForwardingPlaneReset => "FORWARDING_PLANE_RESET",
Diagnostic::NeighborSignaledSessionDown => {
"NEIGHBOR_SIGNALED_SESSION_DOWN"
}
Diagnostic::NoDiagnostic => "NO_DIAGNOSTIC",
Diagnostic::PathDown => "PATH_DOWN",
Diagnostic::ReverseConcatenatedPathDown => {
"REVERSE_CONCATENATED_PATH_DOWN"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_DIAGNOSTIC" => Some(Self::UndefinedDiagnostic),
"ADMINISTRATIVELY_DOWN" => Some(Self::AdministrativelyDown),
"CONCATENATED_PATH_DOWN" => Some(Self::ConcatenatedPathDown),
"CONTROL_DETECTION_TIME_EXPIRED" => {
Some(Self::ControlDetectionTimeExpired)
}
"DIAGNOSTIC_UNSPECIFIED" => Some(Self::Unspecified),
"ECHO_FUNCTION_FAILED" => Some(Self::EchoFunctionFailed),
"FORWARDING_PLANE_RESET" => Some(Self::ForwardingPlaneReset),
"NEIGHBOR_SIGNALED_SESSION_DOWN" => {
Some(Self::NeighborSignaledSessionDown)
}
"NO_DIAGNOSTIC" => Some(Self::NoDiagnostic),
"PATH_DOWN" => Some(Self::PathDown),
"REVERSE_CONCATENATED_PATH_DOWN" => {
Some(Self::ReverseConcatenatedPathDown)
}
_ => None,
}
}
}
/// The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// A value indicating that the enum field is not set.
UndefinedState = 0,
AdminDown = 128544690,
Down = 2104482,
Init = 2252048,
Unspecified = 470755401,
Up = 2715,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::UndefinedState => "UNDEFINED_STATE",
State::AdminDown => "ADMIN_DOWN",
State::Down => "DOWN",
State::Init => "INIT",
State::Unspecified => "STATE_UNSPECIFIED",
State::Up => "UP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATE" => Some(Self::UndefinedState),
"ADMIN_DOWN" => Some(Self::AdminDown),
"DOWN" => Some(Self::Down),
"INIT" => Some(Self::Init),
"STATE_UNSPECIFIED" => Some(Self::Unspecified),
"UP" => Some(Self::Up),
_ => None,
}
}
}
}
/// Next free: 15
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BfdStatus {
/// The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer.
/// Check the BfdSessionInitializationMode enum for the list of possible values.
#[prost(string, optional, tag = "218156954")]
pub bfd_session_initialization_mode: ::core::option::Option<
::prost::alloc::string::String,
>,
/// Unix timestamp of the most recent config update.
#[prost(int64, optional, tag = "457195569")]
pub config_update_timestamp_micros: ::core::option::Option<i64>,
/// Control packet counts for the current BFD session.
#[prost(message, optional, tag = "132573561")]
pub control_packet_counts: ::core::option::Option<BfdStatusPacketCounts>,
/// Inter-packet time interval statistics for control packets.
#[prost(message, repeated, tag = "500806649")]
pub control_packet_intervals: ::prost::alloc::vec::Vec<PacketIntervals>,
/// The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880
/// Check the LocalDiagnostic enum for the list of possible values.
#[prost(string, optional, tag = "463737083")]
pub local_diagnostic: ::core::option::Option<::prost::alloc::string::String>,
/// The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880
/// Check the LocalState enum for the list of possible values.
#[prost(string, optional, tag = "149195453")]
pub local_state: ::core::option::Option<::prost::alloc::string::String>,
/// Negotiated transmit interval for control packets.
#[prost(uint32, optional, tag = "21768340")]
pub negotiated_local_control_tx_interval_ms: ::core::option::Option<u32>,
/// The most recent Rx control packet for this BFD session.
#[prost(message, optional, tag = "505069729")]
pub rx_packet: ::core::option::Option<BfdPacket>,
/// The most recent Tx control packet for this BFD session.
#[prost(message, optional, tag = "111386275")]
pub tx_packet: ::core::option::Option<BfdPacket>,
/// Session uptime in milliseconds. Value will be 0 if session is not up.
#[prost(int64, optional, tag = "125398365")]
pub uptime_ms: ::core::option::Option<i64>,
}
/// Nested message and enum types in `BfdStatus`.
pub mod bfd_status {
/// The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum BfdSessionInitializationMode {
/// A value indicating that the enum field is not set.
UndefinedBfdSessionInitializationMode = 0,
Active = 314733318,
Disabled = 516696700,
Passive = 462813959,
}
impl BfdSessionInitializationMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
BfdSessionInitializationMode::UndefinedBfdSessionInitializationMode => {
"UNDEFINED_BFD_SESSION_INITIALIZATION_MODE"
}
BfdSessionInitializationMode::Active => "ACTIVE",
BfdSessionInitializationMode::Disabled => "DISABLED",
BfdSessionInitializationMode::Passive => "PASSIVE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_BFD_SESSION_INITIALIZATION_MODE" => {
Some(Self::UndefinedBfdSessionInitializationMode)
}
"ACTIVE" => Some(Self::Active),
"DISABLED" => Some(Self::Disabled),
"PASSIVE" => Some(Self::Passive),
_ => None,
}
}
}
/// The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum LocalDiagnostic {
/// A value indicating that the enum field is not set.
UndefinedLocalDiagnostic = 0,
AdministrativelyDown = 121685798,
ConcatenatedPathDown = 26186892,
ControlDetectionTimeExpired = 135478383,
DiagnosticUnspecified = 58720895,
EchoFunctionFailed = 220687466,
ForwardingPlaneReset = 19715882,
NeighborSignaledSessionDown = 374226742,
NoDiagnostic = 222503141,
PathDown = 290605180,
ReverseConcatenatedPathDown = 479337129,
}
impl LocalDiagnostic {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
LocalDiagnostic::UndefinedLocalDiagnostic => "UNDEFINED_LOCAL_DIAGNOSTIC",
LocalDiagnostic::AdministrativelyDown => "ADMINISTRATIVELY_DOWN",
LocalDiagnostic::ConcatenatedPathDown => "CONCATENATED_PATH_DOWN",
LocalDiagnostic::ControlDetectionTimeExpired => {
"CONTROL_DETECTION_TIME_EXPIRED"
}
LocalDiagnostic::DiagnosticUnspecified => "DIAGNOSTIC_UNSPECIFIED",
LocalDiagnostic::EchoFunctionFailed => "ECHO_FUNCTION_FAILED",
LocalDiagnostic::ForwardingPlaneReset => "FORWARDING_PLANE_RESET",
LocalDiagnostic::NeighborSignaledSessionDown => {
"NEIGHBOR_SIGNALED_SESSION_DOWN"
}
LocalDiagnostic::NoDiagnostic => "NO_DIAGNOSTIC",
LocalDiagnostic::PathDown => "PATH_DOWN",
LocalDiagnostic::ReverseConcatenatedPathDown => {
"REVERSE_CONCATENATED_PATH_DOWN"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_LOCAL_DIAGNOSTIC" => Some(Self::UndefinedLocalDiagnostic),
"ADMINISTRATIVELY_DOWN" => Some(Self::AdministrativelyDown),
"CONCATENATED_PATH_DOWN" => Some(Self::ConcatenatedPathDown),
"CONTROL_DETECTION_TIME_EXPIRED" => {
Some(Self::ControlDetectionTimeExpired)
}
"DIAGNOSTIC_UNSPECIFIED" => Some(Self::DiagnosticUnspecified),
"ECHO_FUNCTION_FAILED" => Some(Self::EchoFunctionFailed),
"FORWARDING_PLANE_RESET" => Some(Self::ForwardingPlaneReset),
"NEIGHBOR_SIGNALED_SESSION_DOWN" => {
Some(Self::NeighborSignaledSessionDown)
}
"NO_DIAGNOSTIC" => Some(Self::NoDiagnostic),
"PATH_DOWN" => Some(Self::PathDown),
"REVERSE_CONCATENATED_PATH_DOWN" => {
Some(Self::ReverseConcatenatedPathDown)
}
_ => None,
}
}
}
/// The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum LocalState {
/// A value indicating that the enum field is not set.
UndefinedLocalState = 0,
AdminDown = 128544690,
Down = 2104482,
Init = 2252048,
StateUnspecified = 470755401,
Up = 2715,
}
impl LocalState {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
LocalState::UndefinedLocalState => "UNDEFINED_LOCAL_STATE",
LocalState::AdminDown => "ADMIN_DOWN",
LocalState::Down => "DOWN",
LocalState::Init => "INIT",
LocalState::StateUnspecified => "STATE_UNSPECIFIED",
LocalState::Up => "UP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_LOCAL_STATE" => Some(Self::UndefinedLocalState),
"ADMIN_DOWN" => Some(Self::AdminDown),
"DOWN" => Some(Self::Down),
"INIT" => Some(Self::Init),
"STATE_UNSPECIFIED" => Some(Self::StateUnspecified),
"UP" => Some(Self::Up),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BfdStatusPacketCounts {
/// Number of packets received since the beginning of the current BFD session.
#[prost(uint32, optional, tag = "39375263")]
pub num_rx: ::core::option::Option<u32>,
/// Number of packets received that were rejected because of errors since the beginning of the current BFD session.
#[prost(uint32, optional, tag = "281007902")]
pub num_rx_rejected: ::core::option::Option<u32>,
/// Number of packets received that were successfully processed since the beginning of the current BFD session.
#[prost(uint32, optional, tag = "455361850")]
pub num_rx_successful: ::core::option::Option<u32>,
/// Number of packets transmitted since the beginning of the current BFD session.
#[prost(uint32, optional, tag = "39375325")]
pub num_tx: ::core::option::Option<u32>,
}
/// Associates `members`, or principals, with a `role`.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Binding {
/// This is deprecated and has no effect. Do not use.
#[prost(string, optional, tag = "441088277")]
pub binding_id: ::core::option::Option<::prost::alloc::string::String>,
/// The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](<https://cloud.google.com/iam/help/conditions/resource-policies>).
#[prost(message, optional, tag = "212430107")]
pub condition: ::core::option::Option<Expr>,
/// Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog\[{namespace}/{kubernetes-sa}\]`: An identifier for a [Kubernetes service account](<https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts>). For example, `my-project.svc.id.goog\[my-namespace/my-kubernetes-sa\]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
#[prost(string, repeated, tag = "412010777")]
pub members: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](<https://cloud.google.com/iam/docs/roles-overview>). For a list of the available pre-defined roles, see [here](<https://cloud.google.com/iam/docs/understanding-roles>).
#[prost(string, optional, tag = "3506294")]
pub role: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Disks.BulkInsert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BulkInsertDiskRequest {
/// The body resource for this request
#[prost(message, optional, tag = "289799382")]
pub bulk_insert_disk_resource_resource: ::core::option::Option<
BulkInsertDiskResource,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A transient resource used in compute.disks.bulkInsert and compute.regionDisks.bulkInsert. It is only used to process requests and is not persisted.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BulkInsertDiskResource {
/// The URL of the DiskConsistencyGroupPolicy for the group of disks to clone. This may be a full or partial URL, such as: - <https://www.googleapis.com/compute/v1/projects/project/regions/region> /resourcePolicies/resourcePolicy - projects/project/regions/region/resourcePolicies/resourcePolicy - regions/region/resourcePolicies/resourcePolicy
#[prost(string, optional, tag = "19616093")]
pub source_consistency_group_policy: ::core::option::Option<
::prost::alloc::string::String,
>,
}
/// A request message for Instances.BulkInsert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BulkInsertInstanceRequest {
/// The body resource for this request
#[prost(message, optional, tag = "41427278")]
pub bulk_insert_instance_resource_resource: ::core::option::Option<
BulkInsertInstanceResource,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A transient resource used in compute.instances.bulkInsert and compute.regionInstances.bulkInsert . This resource is not persisted anywhere, it is used only for processing the requests.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BulkInsertInstanceResource {
/// The maximum number of instances to create.
#[prost(int64, optional, tag = "94851343")]
pub count: ::core::option::Option<i64>,
/// The instance properties defining the VM instances to be created. Required if sourceInstanceTemplate is not provided.
#[prost(message, optional, tag = "215355165")]
pub instance_properties: ::core::option::Option<InstanceProperties>,
/// Policy for chosing target zone. For more information, see Create VMs in bulk .
#[prost(message, optional, tag = "465689852")]
pub location_policy: ::core::option::Option<LocationPolicy>,
/// The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted.
#[prost(int64, optional, tag = "523228386")]
pub min_count: ::core::option::Option<i64>,
/// The string pattern used for the names of the VMs. Either name_pattern or per_instance_properties must be set. The pattern must contain one continuous sequence of placeholder hash characters (#) with each character corresponding to one digit of the generated instance name. Example: a name_pattern of inst-#### generates instance names such as inst-0001 and inst-0002. If existing instances in the same project and zone have names that match the name pattern then the generated instance numbers start after the biggest existing number. For example, if there exists an instance with name inst-0050, then instance names generated using the pattern inst-#### begin with inst-0051. The name pattern placeholder #...# can contain up to 18 characters.
#[prost(string, optional, tag = "413815260")]
pub name_pattern: ::core::option::Option<::prost::alloc::string::String>,
/// Per-instance properties to be set on individual instances. Keys of this map specify requested instance names. Can be empty if name_pattern is used.
#[prost(btree_map = "string, message", tag = "108502267")]
pub per_instance_properties: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
BulkInsertInstanceResourcePerInstanceProperties,
>,
/// Specifies the instance template from which to create instances. You may combine sourceInstanceTemplate with instanceProperties to override specific values from an existing instance template. Bulk API follows the semantics of JSON Merge Patch described by RFC 7396. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - <https://www.googleapis.com/compute/v1/projects/project> /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate This field is optional.
#[prost(string, optional, tag = "332423616")]
pub source_instance_template: ::core::option::Option<::prost::alloc::string::String>,
}
/// Per-instance properties to be set on individual instances. To be extended in the future.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BulkInsertInstanceResourcePerInstanceProperties {
/// Specifies the hostname of the instance. More details in: <https://cloud.google.com/compute/docs/instances/custom-hostname-vm#naming_convention>
#[prost(string, optional, tag = "237067315")]
pub hostname: ::core::option::Option<::prost::alloc::string::String>,
/// This field is only temporary. It will be removed. Do not use it.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BulkInsertOperationStatus {
/// \[Output Only\] Count of VMs successfully created so far.
#[prost(int32, optional, tag = "396924158")]
pub created_vm_count: ::core::option::Option<i32>,
/// \[Output Only\] Count of VMs that got deleted during rollback.
#[prost(int32, optional, tag = "271756013")]
pub deleted_vm_count: ::core::option::Option<i32>,
/// \[Output Only\] Count of VMs that started creating but encountered an error.
#[prost(int32, optional, tag = "58384104")]
pub failed_to_create_vm_count: ::core::option::Option<i32>,
/// \[Output Only\] Creation status of BulkInsert operation - information if the flow is rolling forward or rolling back.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Count of VMs originally planned to be created.
#[prost(int32, optional, tag = "532975733")]
pub target_vm_count: ::core::option::Option<i32>,
}
/// Nested message and enum types in `BulkInsertOperationStatus`.
pub mod bulk_insert_operation_status {
/// \[Output Only\] Creation status of BulkInsert operation - information if the flow is rolling forward or rolling back.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// Rolling forward - creating VMs.
Creating = 455564985,
/// Done
Done = 2104194,
/// Rolling back - cleaning up after an error.
RollingBack = 259411649,
Unspecified = 42133066,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Creating => "CREATING",
Status::Done => "DONE",
Status::RollingBack => "ROLLING_BACK",
Status::Unspecified => "STATUS_UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"CREATING" => Some(Self::Creating),
"DONE" => Some(Self::Done),
"ROLLING_BACK" => Some(Self::RollingBack),
"STATUS_UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
/// A request message for RegionDisks.BulkInsert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BulkInsertRegionDiskRequest {
/// The body resource for this request
#[prost(message, optional, tag = "289799382")]
pub bulk_insert_disk_resource_resource: ::core::option::Option<
BulkInsertDiskResource,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionInstances.BulkInsert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BulkInsertRegionInstanceRequest {
/// The body resource for this request
#[prost(message, optional, tag = "41427278")]
pub bulk_insert_instance_resource_resource: ::core::option::Option<
BulkInsertInstanceResource,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CacheInvalidationRule {
/// If set, this invalidation rule will only apply to requests with a Host header matching host.
#[prost(string, optional, tag = "3208616")]
pub host: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3433509")]
pub path: ::core::option::Option<::prost::alloc::string::String>,
}
/// Message containing what to include in the cache key for a request for Cloud CDN.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CacheKeyPolicy {
/// If true, requests to different hosts will be cached separately.
#[prost(bool, optional, tag = "486867679")]
pub include_host: ::core::option::Option<bool>,
/// Allows HTTP request headers (by name) to be used in the cache key.
#[prost(string, repeated, tag = "2489606")]
pub include_http_headers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.
#[prost(string, repeated, tag = "87316530")]
pub include_named_cookies: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// If true, http and https requests will be cached separately.
#[prost(bool, optional, tag = "303507535")]
pub include_protocol: ::core::option::Option<bool>,
/// If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
#[prost(bool, optional, tag = "474036639")]
pub include_query_string: ::core::option::Option<bool>,
/// Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
#[prost(string, repeated, tag = "354964742")]
pub query_string_blacklist: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
#[prost(string, repeated, tag = "52456496")]
pub query_string_whitelist: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Settings controlling the volume of requests, connections and retries to this backend service.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CircuitBreakers {
/// The maximum number of connections to the backend service. If not specified, there is no limit. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
#[prost(int32, optional, tag = "110652154")]
pub max_connections: ::core::option::Option<i32>,
/// The maximum number of pending requests allowed to the backend service. If not specified, there is no limit. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
#[prost(int32, optional, tag = "375558887")]
pub max_pending_requests: ::core::option::Option<i32>,
/// The maximum number of parallel requests that allowed to the backend service. If not specified, there is no limit.
#[prost(int32, optional, tag = "28097599")]
pub max_requests: ::core::option::Option<i32>,
/// Maximum requests for a single connection to the backend service. This parameter is respected by both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no limit. Setting this parameter to 1 will effectively disable keep alive. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
#[prost(int32, optional, tag = "361630528")]
pub max_requests_per_connection: ::core::option::Option<i32>,
/// The maximum number of parallel retries allowed to the backend cluster. If not specified, the default is 1. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
#[prost(int32, optional, tag = "55546219")]
pub max_retries: ::core::option::Option<i32>,
}
/// A request message for FirewallPolicies.CloneRules. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CloneRulesFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The firewall policy from which to copy rules.
#[prost(string, optional, tag = "25013549")]
pub source_firewall_policy: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NetworkFirewallPolicies.CloneRules. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CloneRulesNetworkFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The firewall policy from which to copy rules.
#[prost(string, optional, tag = "25013549")]
pub source_firewall_policy: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionNetworkFirewallPolicies.CloneRules. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CloneRulesRegionNetworkFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The firewall policy from which to copy rules.
#[prost(string, optional, tag = "25013549")]
pub source_firewall_policy: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a regional Commitment resource. Creating a commitment resource means that you are purchasing a committed use contract with an explicit start and end time. You can create commitments based on vCPUs and memory usage and receive discounted rates. For full details, read Signing Up for Committed Use Discounts.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Commitment {
/// Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment.
#[prost(bool, optional, tag = "495520765")]
pub auto_renew: ::core::option::Option<bool>,
/// The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified.
/// Check the Category enum for the list of possible values.
#[prost(string, optional, tag = "50511102")]
pub category: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Commitment end time in RFC3339 text format.
#[prost(string, optional, tag = "468096690")]
pub end_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the already existing reservations to attach to the Commitment. This field is optional, and it can be a full or partial URL. For example, the following are valid URLs to an reservation: - <https://www.googleapis.com/compute/v1/projects/project/zones/zone> /reservations/reservation - projects/project/zones/zone/reservations/reservation
#[prost(string, repeated, tag = "493028443")]
pub existing_reservations: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#commitment for commitments.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// The license specification required as part of a license commitment.
#[prost(message, optional, tag = "437955148")]
pub license_resource: ::core::option::Option<LicenseResourceCommitment>,
/// List of source commitments to be merged into a new commitment.
#[prost(string, repeated, tag = "188093761")]
pub merge_source_commitments: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
/// Check the Plan enum for the list of possible values.
#[prost(string, optional, tag = "3443497")]
pub plan: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the region where this commitment may be used.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// List of create-on-create reservations for this commitment.
#[prost(message, repeated, tag = "399717927")]
pub reservations: ::prost::alloc::vec::Vec<Reservation>,
/// A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
#[prost(message, repeated, tag = "164412965")]
pub resources: ::prost::alloc::vec::Vec<ResourceCommitment>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// Source commitment to be split into a new commitment.
#[prost(string, optional, tag = "402611156")]
pub split_source_commitment: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Commitment start time in RFC3339 text format.
#[prost(string, optional, tag = "83645817")]
pub start_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] An optional, human-readable explanation of the status.
#[prost(string, optional, tag = "297428154")]
pub status_message: ::core::option::Option<::prost::alloc::string::String>,
/// The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Commitment`.
pub mod commitment {
/// The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Category {
/// A value indicating that the enum field is not set.
UndefinedCategory = 0,
Unspecified = 509189462,
License = 347869217,
Machine = 469553191,
}
impl Category {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Category::UndefinedCategory => "UNDEFINED_CATEGORY",
Category::Unspecified => "CATEGORY_UNSPECIFIED",
Category::License => "LICENSE",
Category::Machine => "MACHINE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_CATEGORY" => Some(Self::UndefinedCategory),
"CATEGORY_UNSPECIFIED" => Some(Self::Unspecified),
"LICENSE" => Some(Self::License),
"MACHINE" => Some(Self::Machine),
_ => None,
}
}
}
/// The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Plan {
/// A value indicating that the enum field is not set.
UndefinedPlan = 0,
Invalid = 530283991,
ThirtySixMonth = 266295942,
TwelveMonth = 173083962,
}
impl Plan {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Plan::UndefinedPlan => "UNDEFINED_PLAN",
Plan::Invalid => "INVALID",
Plan::ThirtySixMonth => "THIRTY_SIX_MONTH",
Plan::TwelveMonth => "TWELVE_MONTH",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PLAN" => Some(Self::UndefinedPlan),
"INVALID" => Some(Self::Invalid),
"THIRTY_SIX_MONTH" => Some(Self::ThirtySixMonth),
"TWELVE_MONTH" => Some(Self::TwelveMonth),
_ => None,
}
}
}
/// \[Output Only\] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
Active = 314733318,
/// Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
Cancelled = 41957681,
Creating = 455564985,
Expired = 482489093,
NotYetActive = 20607337,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Active => "ACTIVE",
Status::Cancelled => "CANCELLED",
Status::Creating => "CREATING",
Status::Expired => "EXPIRED",
Status::NotYetActive => "NOT_YET_ACTIVE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"ACTIVE" => Some(Self::Active),
"CANCELLED" => Some(Self::Cancelled),
"CREATING" => Some(Self::Creating),
"EXPIRED" => Some(Self::Expired),
"NOT_YET_ACTIVE" => Some(Self::NotYetActive),
_ => None,
}
}
}
/// The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
AcceleratorOptimized = 280848403,
AcceleratorOptimizedA3 = 158574526,
ComputeOptimized = 158349023,
ComputeOptimizedC2d = 383246453,
ComputeOptimizedC3 = 428004784,
ComputeOptimizedC3d = 383246484,
ComputeOptimizedH3 = 428004939,
GeneralPurpose = 299793543,
GeneralPurposeE2 = 301911877,
GeneralPurposeN2 = 301912156,
GeneralPurposeN2d = 232471400,
GeneralPurposeT2d = 232477166,
GraphicsOptimized = 68500563,
MemoryOptimized = 281753417,
MemoryOptimizedM3 = 276301372,
StorageOptimizedZ3 = 316796085,
Unspecified = 437714322,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::AcceleratorOptimized => "ACCELERATOR_OPTIMIZED",
Type::AcceleratorOptimizedA3 => "ACCELERATOR_OPTIMIZED_A3",
Type::ComputeOptimized => "COMPUTE_OPTIMIZED",
Type::ComputeOptimizedC2d => "COMPUTE_OPTIMIZED_C2D",
Type::ComputeOptimizedC3 => "COMPUTE_OPTIMIZED_C3",
Type::ComputeOptimizedC3d => "COMPUTE_OPTIMIZED_C3D",
Type::ComputeOptimizedH3 => "COMPUTE_OPTIMIZED_H3",
Type::GeneralPurpose => "GENERAL_PURPOSE",
Type::GeneralPurposeE2 => "GENERAL_PURPOSE_E2",
Type::GeneralPurposeN2 => "GENERAL_PURPOSE_N2",
Type::GeneralPurposeN2d => "GENERAL_PURPOSE_N2D",
Type::GeneralPurposeT2d => "GENERAL_PURPOSE_T2D",
Type::GraphicsOptimized => "GRAPHICS_OPTIMIZED",
Type::MemoryOptimized => "MEMORY_OPTIMIZED",
Type::MemoryOptimizedM3 => "MEMORY_OPTIMIZED_M3",
Type::StorageOptimizedZ3 => "STORAGE_OPTIMIZED_Z3",
Type::Unspecified => "TYPE_UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"ACCELERATOR_OPTIMIZED" => Some(Self::AcceleratorOptimized),
"ACCELERATOR_OPTIMIZED_A3" => Some(Self::AcceleratorOptimizedA3),
"COMPUTE_OPTIMIZED" => Some(Self::ComputeOptimized),
"COMPUTE_OPTIMIZED_C2D" => Some(Self::ComputeOptimizedC2d),
"COMPUTE_OPTIMIZED_C3" => Some(Self::ComputeOptimizedC3),
"COMPUTE_OPTIMIZED_C3D" => Some(Self::ComputeOptimizedC3d),
"COMPUTE_OPTIMIZED_H3" => Some(Self::ComputeOptimizedH3),
"GENERAL_PURPOSE" => Some(Self::GeneralPurpose),
"GENERAL_PURPOSE_E2" => Some(Self::GeneralPurposeE2),
"GENERAL_PURPOSE_N2" => Some(Self::GeneralPurposeN2),
"GENERAL_PURPOSE_N2D" => Some(Self::GeneralPurposeN2d),
"GENERAL_PURPOSE_T2D" => Some(Self::GeneralPurposeT2d),
"GRAPHICS_OPTIMIZED" => Some(Self::GraphicsOptimized),
"MEMORY_OPTIMIZED" => Some(Self::MemoryOptimized),
"MEMORY_OPTIMIZED_M3" => Some(Self::MemoryOptimizedM3),
"STORAGE_OPTIMIZED_Z3" => Some(Self::StorageOptimizedZ3),
"TYPE_UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommitmentAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of CommitmentsScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
CommitmentsScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#commitmentAggregatedList for aggregated lists of commitments.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of Commitment resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommitmentList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Commitment resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Commitment>,
/// \[Output Only\] Type of resource. Always compute#commitmentList for lists of commitments.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommitmentsScopedList {
/// \[Output Only\] A list of commitments contained in this scope.
#[prost(message, repeated, tag = "450664446")]
pub commitments: ::prost::alloc::vec::Vec<Commitment>,
/// \[Output Only\] Informational warning which replaces the list of commitments when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// This is deprecated and has no effect. Do not use.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Condition {
/// This is deprecated and has no effect. Do not use.
/// Check the Iam enum for the list of possible values.
#[prost(string, optional, tag = "104021")]
pub iam: ::core::option::Option<::prost::alloc::string::String>,
/// This is deprecated and has no effect. Do not use.
/// Check the Op enum for the list of possible values.
#[prost(string, optional, tag = "3553")]
pub op: ::core::option::Option<::prost::alloc::string::String>,
/// This is deprecated and has no effect. Do not use.
#[prost(string, optional, tag = "114272")]
pub svc: ::core::option::Option<::prost::alloc::string::String>,
/// This is deprecated and has no effect. Do not use.
/// Check the Sys enum for the list of possible values.
#[prost(string, optional, tag = "114381")]
pub sys: ::core::option::Option<::prost::alloc::string::String>,
/// This is deprecated and has no effect. Do not use.
#[prost(string, repeated, tag = "249928994")]
pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Condition`.
pub mod condition {
/// This is deprecated and has no effect. Do not use.
/// Additional supported values which may be not listed in the enum directly due to technical reasons:
/// NO_ATTR
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Iam {
/// A value indicating that the enum field is not set.
UndefinedIam = 0,
/// This is deprecated and has no effect. Do not use.
Approver = 357258949,
/// This is deprecated and has no effect. Do not use.
Attribution = 232465503,
/// This is deprecated and has no effect. Do not use.
Authority = 504108835,
/// This is deprecated and has no effect. Do not use.
CredentialsType = 348222141,
/// This is deprecated and has no effect. Do not use.
CredsAssertion = 332343272,
/// This is deprecated and has no effect. Do not use.
JustificationType = 206147719,
/// This is deprecated and has no effect. Do not use.
SecurityRealm = 526269616,
}
impl Iam {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Iam::UndefinedIam => "UNDEFINED_IAM",
Iam::Approver => "APPROVER",
Iam::Attribution => "ATTRIBUTION",
Iam::Authority => "AUTHORITY",
Iam::CredentialsType => "CREDENTIALS_TYPE",
Iam::CredsAssertion => "CREDS_ASSERTION",
Iam::JustificationType => "JUSTIFICATION_TYPE",
Iam::SecurityRealm => "SECURITY_REALM",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_IAM" => Some(Self::UndefinedIam),
"APPROVER" => Some(Self::Approver),
"ATTRIBUTION" => Some(Self::Attribution),
"AUTHORITY" => Some(Self::Authority),
"CREDENTIALS_TYPE" => Some(Self::CredentialsType),
"CREDS_ASSERTION" => Some(Self::CredsAssertion),
"JUSTIFICATION_TYPE" => Some(Self::JustificationType),
"SECURITY_REALM" => Some(Self::SecurityRealm),
_ => None,
}
}
}
/// This is deprecated and has no effect. Do not use.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Op {
/// A value indicating that the enum field is not set.
UndefinedOp = 0,
/// This is deprecated and has no effect. Do not use.
Discharged = 266338274,
/// This is deprecated and has no effect. Do not use.
Equals = 442201023,
/// This is deprecated and has no effect. Do not use.
In = 2341,
/// This is deprecated and has no effect. Do not use.
NotEquals = 19718859,
/// This is deprecated and has no effect. Do not use.
NotIn = 161144369,
/// This is deprecated and has no effect. Do not use.
NoOp = 74481951,
}
impl Op {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Op::UndefinedOp => "UNDEFINED_OP",
Op::Discharged => "DISCHARGED",
Op::Equals => "EQUALS",
Op::In => "IN",
Op::NotEquals => "NOT_EQUALS",
Op::NotIn => "NOT_IN",
Op::NoOp => "NO_OP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_OP" => Some(Self::UndefinedOp),
"DISCHARGED" => Some(Self::Discharged),
"EQUALS" => Some(Self::Equals),
"IN" => Some(Self::In),
"NOT_EQUALS" => Some(Self::NotEquals),
"NOT_IN" => Some(Self::NotIn),
"NO_OP" => Some(Self::NoOp),
_ => None,
}
}
}
/// This is deprecated and has no effect. Do not use.
/// Additional supported values which may be not listed in the enum directly due to technical reasons:
/// NO_ATTR
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Sys {
/// A value indicating that the enum field is not set.
UndefinedSys = 0,
/// This is deprecated and has no effect. Do not use.
Ip = 2343,
/// This is deprecated and has no effect. Do not use.
Name = 2388619,
/// This is deprecated and has no effect. Do not use.
Region = 266017524,
/// This is deprecated and has no effect. Do not use.
Service = 17781397,
}
impl Sys {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Sys::UndefinedSys => "UNDEFINED_SYS",
Sys::Ip => "IP",
Sys::Name => "NAME",
Sys::Region => "REGION",
Sys::Service => "SERVICE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_SYS" => Some(Self::UndefinedSys),
"IP" => Some(Self::Ip),
"NAME" => Some(Self::Name),
"REGION" => Some(Self::Region),
"SERVICE" => Some(Self::Service),
_ => None,
}
}
}
}
/// A set of Confidential Instance options.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConfidentialInstanceConfig {
/// Defines whether the instance should have confidential compute enabled.
#[prost(bool, optional, tag = "102135228")]
pub enable_confidential_compute: ::core::option::Option<bool>,
}
/// Message containing connection draining configuration.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectionDraining {
/// Configures a duration timeout for existing requests on a removed backend instance. For supported load balancers and protocols, as described in Enabling connection draining.
#[prost(int32, optional, tag = "225127070")]
pub draining_timeout_sec: ::core::option::Option<i32>,
}
/// This message defines settings for a consistent hash style load balancer.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConsistentHashLoadBalancerSettings {
/// Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
#[prost(message, optional, tag = "6673915")]
pub http_cookie: ::core::option::Option<
ConsistentHashLoadBalancerSettingsHttpCookie,
>,
/// The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD.
#[prost(string, optional, tag = "234798022")]
pub http_header_name: ::core::option::Option<::prost::alloc::string::String>,
/// The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node.
#[prost(int64, optional, tag = "234380735")]
pub minimum_ring_size: ::core::option::Option<i64>,
}
/// The information about the HTTP Cookie on which the hash function is based for load balancing policies that use a consistent hash.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConsistentHashLoadBalancerSettingsHttpCookie {
/// Name of the cookie.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Path to set for the cookie.
#[prost(string, optional, tag = "3433509")]
pub path: ::core::option::Option<::prost::alloc::string::String>,
/// Lifetime of the cookie.
#[prost(message, optional, tag = "115180")]
pub ttl: ::core::option::Option<Duration>,
}
/// The specification for allowing client-side cross-origin requests. For more information about the W3C recommendation for cross-origin resource sharing (CORS), see Fetch API Living Standard.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CorsPolicy {
/// In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
#[prost(bool, optional, tag = "481263366")]
pub allow_credentials: ::core::option::Option<bool>,
/// Specifies the content for the Access-Control-Allow-Headers header.
#[prost(string, repeated, tag = "45179024")]
pub allow_headers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Specifies the content for the Access-Control-Allow-Methods header.
#[prost(string, repeated, tag = "205405372")]
pub allow_methods: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Specifies a regular expression that matches allowed origins. For more information about the regular expression syntax, see Syntax. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
#[prost(string, repeated, tag = "215385810")]
pub allow_origin_regexes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
#[prost(string, repeated, tag = "194914071")]
pub allow_origins: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
#[prost(bool, optional, tag = "270940796")]
pub disabled: ::core::option::Option<bool>,
/// Specifies the content for the Access-Control-Expose-Headers header.
#[prost(string, repeated, tag = "247604747")]
pub expose_headers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Specifies how long results of a preflight request can be cached in seconds. This field translates to the Access-Control-Max-Age header.
#[prost(int32, optional, tag = "307559332")]
pub max_age: ::core::option::Option<i32>,
}
/// A request message for InstanceGroupManagers.CreateInstances. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateInstancesInstanceGroupManagerRequest {
/// The name of the managed instance group. It should conform to RFC1035.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "24558867")]
pub instance_group_managers_create_instances_request_resource: ::core::option::Option<
InstanceGroupManagersCreateInstancesRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where the managed instance group is located. It should conform to RFC1035.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionInstanceGroupManagers.CreateInstances. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateInstancesRegionInstanceGroupManagerRequest {
/// The name of the managed instance group. It should conform to RFC1035.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region where the managed instance group is located. It should conform to RFC1035.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "359014280")]
pub region_instance_group_managers_create_instances_request_resource: ::core::option::Option<
RegionInstanceGroupManagersCreateInstancesRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Disks.CreateSnapshot. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateSnapshotDiskRequest {
/// Name of the persistent disk to snapshot.
#[prost(string, tag = "3083677")]
pub disk: ::prost::alloc::string::String,
/// \[Input Only\] Whether to attempt an application consistent snapshot by informing the OS to prepare for the snapshot process.
#[prost(bool, optional, tag = "385550813")]
pub guest_flush: ::core::option::Option<bool>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "481319977")]
pub snapshot_resource: ::core::option::Option<Snapshot>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionDisks.CreateSnapshot. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateSnapshotRegionDiskRequest {
/// Name of the regional persistent disk to snapshot.
#[prost(string, tag = "3083677")]
pub disk: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "481319977")]
pub snapshot_resource: ::core::option::Option<Snapshot>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerEncryptionKey {
/// The name of the encryption key that is stored in Google Cloud KMS. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key The fully-qualifed key name may be returned for resource GET requests. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key /cryptoKeyVersions/1
#[prost(string, optional, tag = "484373913")]
pub kms_key_name: ::core::option::Option<::prost::alloc::string::String>,
/// The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used. For example: "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/
#[prost(string, optional, tag = "209986261")]
pub kms_key_service_account: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey. For example: "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
#[prost(string, optional, tag = "449196488")]
pub raw_key: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey. For example: "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==" The key must meet the following requirements before you can provide it to Compute Engine: 1. The key is wrapped using a RSA public key certificate provided by Google. 2. After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Gets the RSA public key certificate provided by Google at: <https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem>
#[prost(string, optional, tag = "335487397")]
pub rsa_encrypted_key: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output only\] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
#[prost(string, optional, tag = "170112551")]
pub sha256: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerEncryptionKeyProtectedDisk {
/// Decrypts data associated with the disk with a customer-supplied encryption key.
#[prost(message, optional, tag = "271660677")]
pub disk_encryption_key: ::core::option::Option<CustomerEncryptionKey>,
/// Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. For example: "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name
#[prost(string, optional, tag = "177235995")]
pub source: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Data {
/// \[Output Only\] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
#[prost(string, optional, tag = "106079")]
pub key: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A warning data value corresponding to the key.
#[prost(string, optional, tag = "111972721")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Instances.DeleteAccessConfig. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteAccessConfigInstanceRequest {
/// The name of the access config to delete.
#[prost(string, tag = "72856189")]
pub access_config: ::prost::alloc::string::String,
/// The instance name for this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// The name of the network interface.
#[prost(string, tag = "365387880")]
pub network_interface: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Addresses.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteAddressRequest {
/// Name of the address resource to delete.
#[prost(string, tag = "462920692")]
pub address: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Autoscalers.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteAutoscalerRequest {
/// Name of the autoscaler to delete.
#[prost(string, tag = "517258967")]
pub autoscaler: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for BackendBuckets.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteBackendBucketRequest {
/// Name of the BackendBucket resource to delete.
#[prost(string, tag = "91714037")]
pub backend_bucket: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for BackendServices.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteBackendServiceRequest {
/// Name of the BackendService resource to delete.
#[prost(string, tag = "306946058")]
pub backend_service: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Disks.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteDiskRequest {
/// Name of the persistent disk to delete.
#[prost(string, tag = "3083677")]
pub disk: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for ExternalVpnGateways.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteExternalVpnGatewayRequest {
/// Name of the externalVpnGateways to delete.
#[prost(string, tag = "109898629")]
pub external_vpn_gateway: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for FirewallPolicies.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteFirewallPolicyRequest {
/// Name of the firewall policy to delete.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Firewalls.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteFirewallRequest {
/// Name of the firewall rule to delete.
#[prost(string, tag = "511016192")]
pub firewall: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for ForwardingRules.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteForwardingRuleRequest {
/// Name of the ForwardingRule resource to delete.
#[prost(string, tag = "269964030")]
pub forwarding_rule: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for GlobalAddresses.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteGlobalAddressRequest {
/// Name of the address resource to delete.
#[prost(string, tag = "462920692")]
pub address: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for GlobalForwardingRules.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteGlobalForwardingRuleRequest {
/// Name of the ForwardingRule resource to delete.
#[prost(string, tag = "269964030")]
pub forwarding_rule: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for GlobalNetworkEndpointGroups.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteGlobalNetworkEndpointGroupRequest {
/// The name of the network endpoint group to delete. It should comply with RFC1035.
#[prost(string, tag = "433907078")]
pub network_endpoint_group: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for GlobalOperations.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteGlobalOperationRequest {
/// Name of the Operations resource to delete.
#[prost(string, tag = "52090215")]
pub operation: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A response message for GlobalOperations.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteGlobalOperationResponse {}
/// A request message for GlobalOrganizationOperations.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteGlobalOrganizationOperationRequest {
/// Name of the Operations resource to delete.
#[prost(string, tag = "52090215")]
pub operation: ::prost::alloc::string::String,
/// Parent ID for this request.
#[prost(string, optional, tag = "459714768")]
pub parent_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A response message for GlobalOrganizationOperations.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteGlobalOrganizationOperationResponse {}
/// A request message for GlobalPublicDelegatedPrefixes.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteGlobalPublicDelegatedPrefixeRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the PublicDelegatedPrefix resource to delete.
#[prost(string, tag = "204238440")]
pub public_delegated_prefix: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for HealthChecks.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteHealthCheckRequest {
/// Name of the HealthCheck resource to delete.
#[prost(string, tag = "308876645")]
pub health_check: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Images.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteImageRequest {
/// Name of the image resource to delete.
#[prost(string, tag = "100313435")]
pub image: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for InstanceGroupManagers.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteInstanceGroupManagerRequest {
/// The name of the managed instance group to delete.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where the managed instance group is located.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InstanceGroups.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteInstanceGroupRequest {
/// The name of the instance group to delete.
#[prost(string, tag = "81095253")]
pub instance_group: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where the instance group is located.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Instances.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteInstanceRequest {
/// Name of the instance resource to delete.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InstanceTemplates.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteInstanceTemplateRequest {
/// The name of the instance template to delete.
#[prost(string, tag = "309248228")]
pub instance_template: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for InstanceGroupManagers.DeleteInstances. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteInstancesInstanceGroupManagerRequest {
/// The name of the managed instance group.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "166421252")]
pub instance_group_managers_delete_instances_request_resource: ::core::option::Option<
InstanceGroupManagersDeleteInstancesRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where the managed instance group is located.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionInstanceGroupManagers.DeleteInstances. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteInstancesRegionInstanceGroupManagerRequest {
/// Name of the managed instance group.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "500876665")]
pub region_instance_group_managers_delete_instances_request_resource: ::core::option::Option<
RegionInstanceGroupManagersDeleteInstancesRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for InstantSnapshots.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteInstantSnapshotRequest {
/// Name of the InstantSnapshot resource to delete.
#[prost(string, tag = "391638626")]
pub instant_snapshot: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InterconnectAttachments.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteInterconnectAttachmentRequest {
/// Name of the interconnect attachment to delete.
#[prost(string, tag = "308135284")]
pub interconnect_attachment: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Interconnects.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteInterconnectRequest {
/// Name of the interconnect to delete.
#[prost(string, tag = "224601230")]
pub interconnect: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Licenses.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteLicenseRequest {
/// Name of the license resource to delete.
#[prost(string, tag = "166757441")]
pub license: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for MachineImages.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMachineImageRequest {
/// The name of the machine image to delete.
#[prost(string, tag = "69189475")]
pub machine_image: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NetworkAttachments.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteNetworkAttachmentRequest {
/// Name of the NetworkAttachment resource to delete.
#[prost(string, tag = "224644052")]
pub network_attachment: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region of this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NetworkEdgeSecurityServices.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteNetworkEdgeSecurityServiceRequest {
/// Name of the network edge security service to delete.
#[prost(string, tag = "157011879")]
pub network_edge_security_service: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NetworkEndpointGroups.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteNetworkEndpointGroupRequest {
/// The name of the network endpoint group to delete. It should comply with RFC1035.
#[prost(string, tag = "433907078")]
pub network_endpoint_group: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where the network endpoint group is located. It should comply with RFC1035.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for NetworkFirewallPolicies.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteNetworkFirewallPolicyRequest {
/// Name of the firewall policy to delete.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Networks.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteNetworkRequest {
/// Name of the network to delete.
#[prost(string, tag = "232872494")]
pub network: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NodeGroups.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteNodeGroupRequest {
/// Name of the NodeGroup resource to delete.
#[prost(string, tag = "469958146")]
pub node_group: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for NodeTemplates.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteNodeTemplateRequest {
/// Name of the NodeTemplate resource to delete.
#[prost(string, tag = "323154455")]
pub node_template: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NodeGroups.DeleteNodes. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteNodesNodeGroupRequest {
/// Name of the NodeGroup resource whose nodes will be deleted.
#[prost(string, tag = "469958146")]
pub node_group: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "183298962")]
pub node_groups_delete_nodes_request_resource: ::core::option::Option<
NodeGroupsDeleteNodesRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for PacketMirrorings.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeletePacketMirroringRequest {
/// Name of the PacketMirroring resource to delete.
#[prost(string, tag = "22305996")]
pub packet_mirroring: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for InstanceGroupManagers.DeletePerInstanceConfigs. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeletePerInstanceConfigsInstanceGroupManagerRequest {
/// The name of the managed instance group. It should conform to RFC1035.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "362427680")]
pub instance_group_managers_delete_per_instance_configs_req_resource: ::core::option::Option<
InstanceGroupManagersDeletePerInstanceConfigsReq,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the zone where the managed instance group is located. It should conform to RFC1035.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionInstanceGroupManagers.DeletePerInstanceConfigs. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeletePerInstanceConfigsRegionInstanceGroupManagerRequest {
/// The name of the managed instance group. It should conform to RFC1035.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request, should conform to RFC1035.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "740741")]
pub region_instance_group_manager_delete_instance_config_req_resource: ::core::option::Option<
RegionInstanceGroupManagerDeleteInstanceConfigReq,
>,
}
/// A request message for PublicAdvertisedPrefixes.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeletePublicAdvertisedPrefixeRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the PublicAdvertisedPrefix resource to delete.
#[prost(string, tag = "101874590")]
pub public_advertised_prefix: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for PublicDelegatedPrefixes.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeletePublicDelegatedPrefixeRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the PublicDelegatedPrefix resource to delete.
#[prost(string, tag = "204238440")]
pub public_delegated_prefix: ::prost::alloc::string::String,
/// Name of the region of this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionAutoscalers.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionAutoscalerRequest {
/// Name of the autoscaler to delete.
#[prost(string, tag = "517258967")]
pub autoscaler: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionBackendServices.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionBackendServiceRequest {
/// Name of the BackendService resource to delete.
#[prost(string, tag = "306946058")]
pub backend_service: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionDisks.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionDiskRequest {
/// Name of the regional persistent disk to delete.
#[prost(string, tag = "3083677")]
pub disk: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionHealthChecks.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionHealthCheckRequest {
/// Name of the HealthCheck resource to delete.
#[prost(string, tag = "308876645")]
pub health_check: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionHealthCheckServices.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionHealthCheckServiceRequest {
/// Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply with RFC1035.
#[prost(string, tag = "408374747")]
pub health_check_service: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionInstanceGroupManagers.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionInstanceGroupManagerRequest {
/// Name of the managed instance group to delete.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionInstanceTemplates.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionInstanceTemplateRequest {
/// The name of the instance template to delete.
#[prost(string, tag = "309248228")]
pub instance_template: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionInstantSnapshots.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionInstantSnapshotRequest {
/// Name of the InstantSnapshot resource to delete.
#[prost(string, tag = "391638626")]
pub instant_snapshot: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionNetworkEndpointGroups.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionNetworkEndpointGroupRequest {
/// The name of the network endpoint group to delete. It should comply with RFC1035.
#[prost(string, tag = "433907078")]
pub network_endpoint_group: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region where the network endpoint group is located. It should comply with RFC1035.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionNetworkFirewallPolicies.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionNetworkFirewallPolicyRequest {
/// Name of the firewall policy to delete.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionNotificationEndpoints.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionNotificationEndpointRequest {
/// Name of the NotificationEndpoint resource to delete.
#[prost(string, tag = "376807017")]
pub notification_endpoint: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionOperations.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionOperationRequest {
/// Name of the Operations resource to delete.
#[prost(string, tag = "52090215")]
pub operation: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A response message for RegionOperations.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionOperationResponse {}
/// A request message for RegionSecurityPolicies.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionSecurityPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the security policy to delete.
#[prost(string, tag = "171082513")]
pub security_policy: ::prost::alloc::string::String,
}
/// A request message for RegionSslCertificates.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionSslCertificateRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the SslCertificate resource to delete.
#[prost(string, tag = "46443492")]
pub ssl_certificate: ::prost::alloc::string::String,
}
/// A request message for RegionSslPolicies.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionSslPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035.
#[prost(string, tag = "295190213")]
pub ssl_policy: ::prost::alloc::string::String,
}
/// A request message for RegionTargetHttpProxies.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionTargetHttpProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetHttpProxy resource to delete.
#[prost(string, tag = "206872421")]
pub target_http_proxy: ::prost::alloc::string::String,
}
/// A request message for RegionTargetHttpsProxies.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionTargetHttpsProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetHttpsProxy resource to delete.
#[prost(string, tag = "52336748")]
pub target_https_proxy: ::prost::alloc::string::String,
}
/// A request message for RegionTargetTcpProxies.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionTargetTcpProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetTcpProxy resource to delete.
#[prost(string, tag = "503065442")]
pub target_tcp_proxy: ::prost::alloc::string::String,
}
/// A request message for RegionUrlMaps.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRegionUrlMapRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the UrlMap resource to delete.
#[prost(string, tag = "367020684")]
pub url_map: ::prost::alloc::string::String,
}
/// A request message for Reservations.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteReservationRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the reservation to delete.
#[prost(string, tag = "47530956")]
pub reservation: ::prost::alloc::string::String,
/// Name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for ResourcePolicies.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteResourcePolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource policy to delete.
#[prost(string, tag = "159240835")]
pub resource_policy: ::prost::alloc::string::String,
}
/// A request message for Routes.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRouteRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the Route resource to delete.
#[prost(string, tag = "108704329")]
pub route: ::prost::alloc::string::String,
}
/// A request message for Routers.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRouterRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the Router resource to delete.
#[prost(string, tag = "148608841")]
pub router: ::prost::alloc::string::String,
}
/// A request message for SecurityPolicies.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSecurityPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the security policy to delete.
#[prost(string, tag = "171082513")]
pub security_policy: ::prost::alloc::string::String,
}
/// A request message for ServiceAttachments.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteServiceAttachmentRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region of this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the ServiceAttachment resource to delete.
#[prost(string, tag = "338957549")]
pub service_attachment: ::prost::alloc::string::String,
}
/// A request message for BackendBuckets.DeleteSignedUrlKey. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSignedUrlKeyBackendBucketRequest {
/// Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035.
#[prost(string, tag = "91714037")]
pub backend_bucket: ::prost::alloc::string::String,
/// The name of the Signed URL Key to delete.
#[prost(string, tag = "500938859")]
pub key_name: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for BackendServices.DeleteSignedUrlKey. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSignedUrlKeyBackendServiceRequest {
/// Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035.
#[prost(string, tag = "306946058")]
pub backend_service: ::prost::alloc::string::String,
/// The name of the Signed URL Key to delete.
#[prost(string, tag = "500938859")]
pub key_name: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Snapshots.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSnapshotRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the Snapshot resource to delete.
#[prost(string, tag = "284874180")]
pub snapshot: ::prost::alloc::string::String,
}
/// A request message for SslCertificates.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSslCertificateRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the SslCertificate resource to delete.
#[prost(string, tag = "46443492")]
pub ssl_certificate: ::prost::alloc::string::String,
}
/// A request message for SslPolicies.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSslPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035.
#[prost(string, tag = "295190213")]
pub ssl_policy: ::prost::alloc::string::String,
}
/// A request message for Subnetworks.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSubnetworkRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the Subnetwork resource to delete.
#[prost(string, tag = "307827694")]
pub subnetwork: ::prost::alloc::string::String,
}
/// A request message for TargetGrpcProxies.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteTargetGrpcProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetGrpcProxy resource to delete.
#[prost(string, tag = "5020283")]
pub target_grpc_proxy: ::prost::alloc::string::String,
}
/// A request message for TargetHttpProxies.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteTargetHttpProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetHttpProxy resource to delete.
#[prost(string, tag = "206872421")]
pub target_http_proxy: ::prost::alloc::string::String,
}
/// A request message for TargetHttpsProxies.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteTargetHttpsProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetHttpsProxy resource to delete.
#[prost(string, tag = "52336748")]
pub target_https_proxy: ::prost::alloc::string::String,
}
/// A request message for TargetInstances.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteTargetInstanceRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetInstance resource to delete.
#[prost(string, tag = "289769347")]
pub target_instance: ::prost::alloc::string::String,
/// Name of the zone scoping this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for TargetPools.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteTargetPoolRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetPool resource to delete.
#[prost(string, tag = "62796298")]
pub target_pool: ::prost::alloc::string::String,
}
/// A request message for TargetSslProxies.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteTargetSslProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetSslProxy resource to delete.
#[prost(string, tag = "338795853")]
pub target_ssl_proxy: ::prost::alloc::string::String,
}
/// A request message for TargetTcpProxies.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteTargetTcpProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetTcpProxy resource to delete.
#[prost(string, tag = "503065442")]
pub target_tcp_proxy: ::prost::alloc::string::String,
}
/// A request message for TargetVpnGateways.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteTargetVpnGatewayRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the target VPN gateway to delete.
#[prost(string, tag = "532512843")]
pub target_vpn_gateway: ::prost::alloc::string::String,
}
/// A request message for UrlMaps.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteUrlMapRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the UrlMap resource to delete.
#[prost(string, tag = "367020684")]
pub url_map: ::prost::alloc::string::String,
}
/// A request message for VpnGateways.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteVpnGatewayRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the VPN gateway to delete.
#[prost(string, tag = "406684153")]
pub vpn_gateway: ::prost::alloc::string::String,
}
/// A request message for VpnTunnels.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteVpnTunnelRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the VpnTunnel resource to delete.
#[prost(string, tag = "143821331")]
pub vpn_tunnel: ::prost::alloc::string::String,
}
/// A request message for ZoneOperations.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteZoneOperationRequest {
/// Name of the Operations resource to delete.
#[prost(string, tag = "52090215")]
pub operation: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A response message for ZoneOperations.Delete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteZoneOperationResponse {}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Denied {
/// The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP protocol number.
#[prost(string, optional, tag = "488094525")]
pub i_p_protocol: ::core::option::Option<::prost::alloc::string::String>,
/// An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: \["22"\], \["80","443"\], and \["12345-12349"\].
#[prost(string, repeated, tag = "106854418")]
pub ports: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// A request message for Images.Deprecate. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeprecateImageRequest {
/// The body resource for this request
#[prost(message, optional, tag = "333006064")]
pub deprecation_status_resource: ::core::option::Option<DeprecationStatus>,
/// Image name.
#[prost(string, tag = "100313435")]
pub image: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// Deprecation status for a public resource.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeprecationStatus {
/// An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it.
#[prost(string, optional, tag = "476721177")]
pub deleted: ::core::option::Option<::prost::alloc::string::String>,
/// An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it.
#[prost(string, optional, tag = "515138995")]
pub deprecated: ::core::option::Option<::prost::alloc::string::String>,
/// An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it.
#[prost(string, optional, tag = "357647769")]
pub obsolete: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.
#[prost(string, optional, tag = "430919186")]
pub replacement: ::core::option::Option<::prost::alloc::string::String>,
/// The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
/// Check the State enum for the list of possible values.
#[prost(string, optional, tag = "109757585")]
pub state: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `DeprecationStatus`.
pub mod deprecation_status {
/// The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// A value indicating that the enum field is not set.
UndefinedState = 0,
Active = 314733318,
Deleted = 120962041,
Deprecated = 463360435,
Obsolete = 66532761,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::UndefinedState => "UNDEFINED_STATE",
State::Active => "ACTIVE",
State::Deleted => "DELETED",
State::Deprecated => "DEPRECATED",
State::Obsolete => "OBSOLETE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATE" => Some(Self::UndefinedState),
"ACTIVE" => Some(Self::Active),
"DELETED" => Some(Self::Deleted),
"DEPRECATED" => Some(Self::Deprecated),
"OBSOLETE" => Some(Self::Obsolete),
_ => None,
}
}
}
}
/// A request message for Instances.DetachDisk. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DetachDiskInstanceRequest {
/// The device name of the disk to detach. Make a get() request on the instance to view currently attached disks and device names.
#[prost(string, tag = "67541716")]
pub device_name: ::prost::alloc::string::String,
/// Instance name for this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for GlobalNetworkEndpointGroups.DetachNetworkEndpoints. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest {
/// The body resource for this request
#[prost(message, optional, tag = "8898269")]
pub global_network_endpoint_groups_detach_endpoints_request_resource: ::core::option::Option<
GlobalNetworkEndpointGroupsDetachEndpointsRequest,
>,
/// The name of the network endpoint group where you are removing network endpoints. It should comply with RFC1035.
#[prost(string, tag = "433907078")]
pub network_endpoint_group: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NetworkEndpointGroups.DetachNetworkEndpoints. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DetachNetworkEndpointsNetworkEndpointGroupRequest {
/// The name of the network endpoint group where you are removing network endpoints. It should comply with RFC1035.
#[prost(string, tag = "433907078")]
pub network_endpoint_group: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "515608697")]
pub network_endpoint_groups_detach_endpoints_request_resource: ::core::option::Option<
NetworkEndpointGroupsDetachEndpointsRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where the network endpoint group is located. It should comply with RFC1035.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionNetworkEndpointGroups.DetachNetworkEndpoints. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DetachNetworkEndpointsRegionNetworkEndpointGroupRequest {
/// The name of the network endpoint group you are detaching network endpoints from. It should comply with RFC1035.
#[prost(string, tag = "433907078")]
pub network_endpoint_group: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region where the network endpoint group is located. It should comply with RFC1035.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "313193198")]
pub region_network_endpoint_groups_detach_endpoints_request_resource: ::core::option::Option<
RegionNetworkEndpointGroupsDetachEndpointsRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Projects.DisableXpnHost. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DisableXpnHostProjectRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Projects.DisableXpnResource. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DisableXpnResourceProjectRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "209136170")]
pub projects_disable_xpn_resource_request_resource: ::core::option::Option<
ProjectsDisableXpnResourceRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a Persistent Disk resource. Google Compute Engine has two Disk resources: * [Zonal](/compute/docs/reference/rest/v1/disks) * [Regional](/compute/docs/reference/rest/v1/regionDisks) Persistent disks are required for running your VM instances. Create both boot and non-boot (data) persistent disks. For more information, read Persistent Disks. For more storage options, read Storage options. The disks resource represents a zonal persistent disk. For more information, read Zonal persistent disks. The regionDisks resource represents a regional persistent disk. For more information, read Regional resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Disk {
/// The architecture of the disk. Valid values are ARM64 or X86_64.
/// Check the Architecture enum for the list of possible values.
#[prost(string, optional, tag = "302803283")]
pub architecture: ::core::option::Option<::prost::alloc::string::String>,
/// Disk asynchronously replicated into this disk.
#[prost(message, optional, tag = "180517533")]
pub async_primary_disk: ::core::option::Option<DiskAsyncReplication>,
/// \[Output Only\] A list of disks this disk is asynchronously replicated to.
#[prost(btree_map = "string, message", tag = "322925608")]
pub async_secondary_disks: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
DiskAsyncReplicationList,
>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Encrypts the disk using a customer-supplied encryption key or a customer-managed encryption key. Encryption keys do not protect access to metadata of the disk. After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later. For example, to create a disk snapshot, to create a disk image, to create a machine image, or to attach the disk to a virtual machine. After you encrypt a disk with a customer-managed key, the diskEncryptionKey.kmsKeyName is set to a key *version* name once the disk is created. The disk is encrypted with this version of the key. In the response, diskEncryptionKey.kmsKeyName appears in the following format: "diskEncryptionKey.kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key /cryptoKeysVersions/version If you do not provide an encryption key when creating the disk, then the disk is encrypted using an automatically generated key and you don't need to provide a key to use the disk later.
#[prost(message, optional, tag = "271660677")]
pub disk_encryption_key: ::core::option::Option<CustomerEncryptionKey>,
/// Whether this disk is using confidential compute mode.
#[prost(bool, optional, tag = "102135228")]
pub enable_confidential_compute: ::core::option::Option<bool>,
/// A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
#[prost(message, repeated, tag = "79294545")]
pub guest_os_features: ::prost::alloc::vec::Vec<GuestOsFeature>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#disk for disks.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// A fingerprint for the labels being applied to this disk, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a disk.
#[prost(string, optional, tag = "178124825")]
pub label_fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// Labels to apply to this disk. These can be later modified by the setLabels method.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// \[Output Only\] Last attach timestamp in RFC3339 text format.
#[prost(string, optional, tag = "42159653")]
pub last_attach_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Last detach timestamp in RFC3339 text format.
#[prost(string, optional, tag = "56471027")]
pub last_detach_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// Integer license codes indicating which licenses are attached to this disk.
#[prost(int64, repeated, tag = "45482664")]
pub license_codes: ::prost::alloc::vec::Vec<i64>,
/// A list of publicly visible licenses. Reserved for Google's use.
#[prost(string, repeated, tag = "337642578")]
pub licenses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// An opaque location hint used to place the disk close to other resources. This field is for use by internal tools that use the public API.
#[prost(string, optional, tag = "350519505")]
pub location_hint: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Internal use only.
#[prost(string, optional, tag = "361137822")]
pub options: ::core::option::Option<::prost::alloc::string::String>,
/// Input only. \[Input Only\] Additional params passed with the request, but not persisted as part of resource payload.
#[prost(message, optional, tag = "78313862")]
pub params: ::core::option::Option<DiskParams>,
/// Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. The currently supported size is 4096, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller's project.
#[prost(int64, optional, tag = "420007943")]
pub physical_block_size_bytes: ::core::option::Option<i64>,
/// Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
#[prost(int64, optional, tag = "186769108")]
pub provisioned_iops: ::core::option::Option<i64>,
/// Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle. Values must be greater than or equal to 1.
#[prost(int64, optional, tag = "526524181")]
pub provisioned_throughput: ::core::option::Option<i64>,
/// \[Output Only\] URL of the region where the disk resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// URLs of the zones where the disk should be replicated to. Only applicable for regional resources.
#[prost(string, repeated, tag = "48438272")]
pub replica_zones: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Resource policies applied to this disk for automatic snapshot creations.
#[prost(string, repeated, tag = "22220385")]
pub resource_policies: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Status information for the disk resource.
#[prost(message, optional, tag = "249429315")]
pub resource_status: ::core::option::Option<DiskResourceStatus>,
/// Output only. Reserved for future use.
#[prost(bool, optional, tag = "480964257")]
pub satisfies_pzi: ::core::option::Option<bool>,
/// \[Output Only\] Reserved for future use.
#[prost(bool, optional, tag = "480964267")]
pub satisfies_pzs: ::core::option::Option<bool>,
/// \[Output Only\] Server-defined fully-qualified URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// Size, in GB, of the persistent disk. You can specify this field when creating a persistent disk using the sourceImage, sourceSnapshot, or sourceDisk parameter, or specify it alone to create an empty persistent disk. If you specify this field along with a source, the value of sizeGb must not be less than the size of the source. Acceptable values are greater than 0.
#[prost(int64, optional, tag = "494929369")]
pub size_gb: ::core::option::Option<i64>,
/// \[Output Only\] URL of the DiskConsistencyGroupPolicy for a secondary disk that was created using a consistency group.
#[prost(string, optional, tag = "19616093")]
pub source_consistency_group_policy: ::core::option::Option<
::prost::alloc::string::String,
>,
/// \[Output Only\] ID of the DiskConsistencyGroupPolicy for a secondary disk that was created using a consistency group.
#[prost(string, optional, tag = "267568957")]
pub source_consistency_group_policy_id: ::core::option::Option<
::prost::alloc::string::String,
>,
/// The source disk used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - <https://www.googleapis.com/compute/v1/projects/project/zones/zone> /disks/disk - <https://www.googleapis.com/compute/v1/projects/project/regions/region> /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
#[prost(string, optional, tag = "451753793")]
pub source_disk: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique ID of the disk used to create this disk. This value identifies the exact disk that was used to create this persistent disk. For example, if you created the persistent disk from a disk that was later deleted and recreated under the same name, the source disk ID would identify the exact version of the disk that was used.
#[prost(string, optional, tag = "454190809")]
pub source_disk_id: ::core::option::Option<::prost::alloc::string::String>,
/// The source image used to create this disk. If the source image is deleted, this field will not be set. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family
#[prost(string, optional, tag = "50443319")]
pub source_image: ::core::option::Option<::prost::alloc::string::String>,
/// The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
#[prost(message, optional, tag = "381503659")]
pub source_image_encryption_key: ::core::option::Option<CustomerEncryptionKey>,
/// \[Output Only\] The ID value of the image used to create this disk. This value identifies the exact image that was used to create this persistent disk. For example, if you created the persistent disk from an image that was later deleted and recreated under the same name, the source image ID would identify the exact version of the image that was used.
#[prost(string, optional, tag = "55328291")]
pub source_image_id: ::core::option::Option<::prost::alloc::string::String>,
/// The source instant snapshot used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - <https://www.googleapis.com/compute/v1/projects/project/zones/zone> /instantSnapshots/instantSnapshot - projects/project/zones/zone/instantSnapshots/instantSnapshot - zones/zone/instantSnapshots/instantSnapshot
#[prost(string, optional, tag = "219202054")]
pub source_instant_snapshot: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique ID of the instant snapshot used to create this disk. This value identifies the exact instant snapshot that was used to create this persistent disk. For example, if you created the persistent disk from an instant snapshot that was later deleted and recreated under the same name, the source instant snapshot ID would identify the exact version of the instant snapshot that was used.
#[prost(string, optional, tag = "287582708")]
pub source_instant_snapshot_id: ::core::option::Option<
::prost::alloc::string::String,
>,
/// The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - <https://www.googleapis.com/compute/v1/projects/project> /global/snapshots/snapshot - projects/project/global/snapshots/snapshot - global/snapshots/snapshot
#[prost(string, optional, tag = "126061928")]
pub source_snapshot: ::core::option::Option<::prost::alloc::string::String>,
/// The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key.
#[prost(message, optional, tag = "303679322")]
pub source_snapshot_encryption_key: ::core::option::Option<CustomerEncryptionKey>,
/// \[Output Only\] The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used.
#[prost(string, optional, tag = "98962258")]
pub source_snapshot_id: ::core::option::Option<::prost::alloc::string::String>,
/// The full Google Cloud Storage URI where the disk image is stored. This file must be a gzip-compressed tarball whose name ends in .tar.gz or virtual machine disk whose name ends in vmdk. Valid URIs may start with gs:// or <https://storage.googleapis.com/.> This flag is not optimized for creating multiple disks from a source storage object. To create many disks from a source storage object, use gcloud compute images import instead.
#[prost(string, optional, tag = "233052711")]
pub source_storage_object: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The status of disk creation. - CREATING: Disk is provisioning. - RESTORING: Source data is being copied into the disk. - FAILED: Disk creation failed. - READY: Disk is ready for use. - DELETING: Disk is deleting.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk. For example: projects/project /zones/zone/diskTypes/pd-ssd . See Persistent disk types.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Links to the users of the disk (attached instances) in form: projects/project/zones/zone/instances/instance
#[prost(string, repeated, tag = "111578632")]
pub users: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] URL of the zone where the disk resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "3744684")]
pub zone: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Disk`.
pub mod disk {
/// The architecture of the disk. Valid values are ARM64 or X86_64.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Architecture {
/// A value indicating that the enum field is not set.
UndefinedArchitecture = 0,
/// Default value indicating Architecture is not set.
Unspecified = 394750507,
/// Machines with architecture ARM64
Arm64 = 62547450,
/// Machines with architecture X86_64
X8664 = 425300551,
}
impl Architecture {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Architecture::UndefinedArchitecture => "UNDEFINED_ARCHITECTURE",
Architecture::Unspecified => "ARCHITECTURE_UNSPECIFIED",
Architecture::Arm64 => "ARM64",
Architecture::X8664 => "X86_64",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ARCHITECTURE" => Some(Self::UndefinedArchitecture),
"ARCHITECTURE_UNSPECIFIED" => Some(Self::Unspecified),
"ARM64" => Some(Self::Arm64),
"X86_64" => Some(Self::X8664),
_ => None,
}
}
}
/// \[Output Only\] The status of disk creation. - CREATING: Disk is provisioning. - RESTORING: Source data is being copied into the disk. - FAILED: Disk creation failed. - READY: Disk is ready for use. - DELETING: Disk is deleting.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// Disk is provisioning
Creating = 455564985,
/// Disk is deleting.
Deleting = 528602024,
/// Disk creation failed.
Failed = 455706685,
/// Disk is ready for use.
Ready = 77848963,
/// Source data is being copied into the disk.
Restoring = 404263851,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Creating => "CREATING",
Status::Deleting => "DELETING",
Status::Failed => "FAILED",
Status::Ready => "READY",
Status::Restoring => "RESTORING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"CREATING" => Some(Self::Creating),
"DELETING" => Some(Self::Deleting),
"FAILED" => Some(Self::Failed),
"READY" => Some(Self::Ready),
"RESTORING" => Some(Self::Restoring),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DiskAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of DisksScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
DisksScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#diskAggregatedList for aggregated lists of persistent disks.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DiskAsyncReplication {
/// \[Output Only\] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.
#[prost(string, optional, tag = "1991097")]
pub consistency_group_policy: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.
#[prost(string, optional, tag = "261065057")]
pub consistency_group_policy_id: ::core::option::Option<
::prost::alloc::string::String,
>,
/// The other disk asynchronously replicated to or from the current disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - <https://www.googleapis.com/compute/v1/projects/project/zones/zone> /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
#[prost(string, optional, tag = "3083677")]
pub disk: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique ID of the other disk asynchronously replicated to or from the current disk. This value identifies the exact disk that was used to create this replication. For example, if you started replicating the persistent disk from a disk that was later deleted and recreated under the same name, the disk ID would identify the exact version of the disk that was used.
#[prost(string, optional, tag = "60990205")]
pub disk_id: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DiskAsyncReplicationList {
#[prost(message, optional, tag = "231794067")]
pub async_replication_disk: ::core::option::Option<DiskAsyncReplication>,
}
/// A specification of the desired way to instantiate a disk in the instance template when its created from a source instance.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DiskInstantiationConfig {
/// Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
#[prost(bool, optional, tag = "464761403")]
pub auto_delete: ::core::option::Option<bool>,
/// The custom source image to be used to restore this disk when instantiating this instance template.
#[prost(string, optional, tag = "184123149")]
pub custom_image: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the device name of the disk to which the configurations apply to.
#[prost(string, optional, tag = "67541716")]
pub device_name: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies whether to include the disk and what image to use. Possible values are: - source-image: to use the same image that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - source-image-family: to use the same image family that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - custom-image: to use a user-provided image url for disk creation. Applicable to the boot disk and additional read-write disks. - attach-read-only: to attach a read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk from the template. Applicable to additional read-write disks, local SSDs, and read-only disks.
/// Check the InstantiateFrom enum for the list of possible values.
#[prost(string, optional, tag = "393383903")]
pub instantiate_from: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `DiskInstantiationConfig`.
pub mod disk_instantiation_config {
/// Specifies whether to include the disk and what image to use. Possible values are: - source-image: to use the same image that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - source-image-family: to use the same image family that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - custom-image: to use a user-provided image url for disk creation. Applicable to the boot disk and additional read-write disks. - attach-read-only: to attach a read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk from the template. Applicable to additional read-write disks, local SSDs, and read-only disks.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum InstantiateFrom {
/// A value indicating that the enum field is not set.
UndefinedInstantiateFrom = 0,
/// Attach the existing disk in read-only mode. The request will fail if the disk was attached in read-write mode on the source instance. Applicable to: read-only disks.
AttachReadOnly = 513775419,
/// Create a blank disk. The disk will be created unformatted. Applicable to: additional read-write disks, local SSDs.
Blank = 63281460,
/// Use the custom image specified in the custom_image field. Applicable to: boot disk, additional read-write disks.
CustomImage = 196311789,
/// Use the default instantiation option for the corresponding type of disk. For boot disk and any other R/W disks, new custom images will be created from each disk. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.
Default = 115302945,
/// Do not include the disk in the instance template. Applicable to: additional read-write disks, local SSDs, read-only disks.
DoNotInclude = 104218952,
/// Use the same source image used for creation of the source instance's corresponding disk. The request will fail if the source VM's disk was created from a snapshot. Applicable to: boot disk, additional read-write disks.
SourceImage = 62631959,
/// Use the same source image family used for creation of the source instance's corresponding disk. The request will fail if the source image of the source disk does not belong to any image family. Applicable to: boot disk, additional read-write disks.
SourceImageFamily = 76850316,
}
impl InstantiateFrom {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
InstantiateFrom::UndefinedInstantiateFrom => "UNDEFINED_INSTANTIATE_FROM",
InstantiateFrom::AttachReadOnly => "ATTACH_READ_ONLY",
InstantiateFrom::Blank => "BLANK",
InstantiateFrom::CustomImage => "CUSTOM_IMAGE",
InstantiateFrom::Default => "DEFAULT",
InstantiateFrom::DoNotInclude => "DO_NOT_INCLUDE",
InstantiateFrom::SourceImage => "SOURCE_IMAGE",
InstantiateFrom::SourceImageFamily => "SOURCE_IMAGE_FAMILY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_INSTANTIATE_FROM" => Some(Self::UndefinedInstantiateFrom),
"ATTACH_READ_ONLY" => Some(Self::AttachReadOnly),
"BLANK" => Some(Self::Blank),
"CUSTOM_IMAGE" => Some(Self::CustomImage),
"DEFAULT" => Some(Self::Default),
"DO_NOT_INCLUDE" => Some(Self::DoNotInclude),
"SOURCE_IMAGE" => Some(Self::SourceImage),
"SOURCE_IMAGE_FAMILY" => Some(Self::SourceImageFamily),
_ => None,
}
}
}
}
/// A list of Disk resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DiskList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Disk resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Disk>,
/// \[Output Only\] Type of resource. Always compute#diskList for lists of disks.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DiskMoveRequest {
/// The URL of the destination zone to move the disk. This can be a full or partial URL. For example, the following are all valid URLs to a zone: - <https://www.googleapis.com/compute/v1/projects/project/zones/zone> - projects/project/zones/zone - zones/zone
#[prost(string, optional, tag = "131854653")]
pub destination_zone: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the target disk to move. This can be a full or partial URL. For example, the following are all valid URLs to a disk: - <https://www.googleapis.com/compute/v1/projects/project/zones/zone> /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
#[prost(string, optional, tag = "62433163")]
pub target_disk: ::core::option::Option<::prost::alloc::string::String>,
}
/// Additional disk params.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DiskParams {
/// Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
#[prost(btree_map = "string, string", tag = "377671164")]
pub resource_manager_tags: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DiskResourceStatus {
#[prost(message, optional, tag = "180517533")]
pub async_primary_disk: ::core::option::Option<
DiskResourceStatusAsyncReplicationStatus,
>,
/// Key: disk, value: AsyncReplicationStatus message
#[prost(btree_map = "string, message", tag = "322925608")]
pub async_secondary_disks: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
DiskResourceStatusAsyncReplicationStatus,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DiskResourceStatusAsyncReplicationStatus {
///
/// Check the State enum for the list of possible values.
#[prost(string, optional, tag = "109757585")]
pub state: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `DiskResourceStatusAsyncReplicationStatus`.
pub mod disk_resource_status_async_replication_status {
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// A value indicating that the enum field is not set.
UndefinedState = 0,
/// Replication is active.
Active = 314733318,
/// Secondary disk is created and is waiting for replication to start.
Created = 135924424,
/// Replication is starting.
Starting = 488820800,
Unspecified = 470755401,
/// Replication is stopped.
Stopped = 444276141,
/// Replication is stopping.
Stopping = 350791796,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::UndefinedState => "UNDEFINED_STATE",
State::Active => "ACTIVE",
State::Created => "CREATED",
State::Starting => "STARTING",
State::Unspecified => "STATE_UNSPECIFIED",
State::Stopped => "STOPPED",
State::Stopping => "STOPPING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATE" => Some(Self::UndefinedState),
"ACTIVE" => Some(Self::Active),
"CREATED" => Some(Self::Created),
"STARTING" => Some(Self::Starting),
"STATE_UNSPECIFIED" => Some(Self::Unspecified),
"STOPPED" => Some(Self::Stopped),
"STOPPING" => Some(Self::Stopping),
_ => None,
}
}
}
}
/// Represents a Disk Type resource. Google Compute Engine has two Disk Type resources: * [Regional](/compute/docs/reference/rest/v1/regionDiskTypes) * [Zonal](/compute/docs/reference/rest/v1/diskTypes) You can choose from a variety of disk types based on your needs. For more information, read Storage options. The diskTypes resource represents disk types for a zonal persistent disk. For more information, read Zonal persistent disks. The regionDiskTypes resource represents disk types for a regional persistent disk. For more information, read Regional persistent disks.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DiskType {
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined default disk size in GB.
#[prost(int64, optional, tag = "270619253")]
pub default_disk_size_gb: ::core::option::Option<i64>,
/// \[Output Only\] The deprecation status associated with this disk type.
#[prost(message, optional, tag = "515138995")]
pub deprecated: ::core::option::Option<DeprecationStatus>,
/// \[Output Only\] An optional description of this resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#diskType for disk types.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Name of the resource.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the region where the disk type resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] An optional textual description of the valid disk size, such as "10GB-10TB".
#[prost(string, optional, tag = "493962464")]
pub valid_disk_size: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the zone where the disk type resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "3744684")]
pub zone: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DiskTypeAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of DiskTypesScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
DiskTypesScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#diskTypeAggregatedList.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of disk types.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DiskTypeList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of DiskType resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<DiskType>,
/// \[Output Only\] Type of resource. Always compute#diskTypeList for disk types.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DiskTypesScopedList {
/// \[Output Only\] A list of disk types contained in this scope.
#[prost(message, repeated, tag = "198926167")]
pub disk_types: ::prost::alloc::vec::Vec<DiskType>,
/// \[Output Only\] Informational warning which replaces the list of disk types when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DisksAddResourcePoliciesRequest {
/// Full or relative path to the resource policy to be added to this disk. You can only specify one resource policy.
#[prost(string, repeated, tag = "22220385")]
pub resource_policies: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DisksRemoveResourcePoliciesRequest {
/// Resource policies to be removed from this disk.
#[prost(string, repeated, tag = "22220385")]
pub resource_policies: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DisksResizeRequest {
/// The new size of the persistent disk, which is specified in GB.
#[prost(int64, optional, tag = "494929369")]
pub size_gb: ::core::option::Option<i64>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DisksScopedList {
/// \[Output Only\] A list of disks contained in this scope.
#[prost(message, repeated, tag = "95594102")]
pub disks: ::prost::alloc::vec::Vec<Disk>,
/// \[Output Only\] Informational warning which replaces the list of disks when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DisksStartAsyncReplicationRequest {
/// The secondary disk to start asynchronous replication to. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - <https://www.googleapis.com/compute/v1/projects/project/zones/zone> /disks/disk - <https://www.googleapis.com/compute/v1/projects/project/regions/region> /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
#[prost(string, optional, tag = "131645867")]
pub async_secondary_disk: ::core::option::Option<::prost::alloc::string::String>,
}
/// A transient resource used in compute.disks.stopGroupAsyncReplication and compute.regionDisks.stopGroupAsyncReplication. It is only used to process requests and is not persisted.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DisksStopGroupAsyncReplicationResource {
/// The URL of the DiskConsistencyGroupPolicy for the group of disks to stop. This may be a full or partial URL, such as: - <https://www.googleapis.com/compute/v1/projects/project/regions/region> /resourcePolicies/resourcePolicy - projects/project/regions/region/resourcePolicies/resourcePolicy - regions/region/resourcePolicies/resourcePolicy
#[prost(string, optional, tag = "159240835")]
pub resource_policy: ::core::option::Option<::prost::alloc::string::String>,
}
/// A set of Display Device options
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DisplayDevice {
/// Defines whether the instance has Display enabled.
#[prost(bool, optional, tag = "14266886")]
pub enable_display: ::core::option::Option<bool>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DistributionPolicy {
/// The distribution shape to which the group converges either proactively or on resize events (depending on the value set in updatePolicy.instanceRedistributionType).
/// Check the TargetShape enum for the list of possible values.
#[prost(string, optional, tag = "338621299")]
pub target_shape: ::core::option::Option<::prost::alloc::string::String>,
/// Zones where the regional managed instance group will create and manage its instances.
#[prost(message, repeated, tag = "116085319")]
pub zones: ::prost::alloc::vec::Vec<DistributionPolicyZoneConfiguration>,
}
/// Nested message and enum types in `DistributionPolicy`.
pub mod distribution_policy {
/// The distribution shape to which the group converges either proactively or on resize events (depending on the value set in updatePolicy.instanceRedistributionType).
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum TargetShape {
/// A value indicating that the enum field is not set.
UndefinedTargetShape = 0,
/// The group picks zones for creating VM instances to fulfill the requested number of VMs within present resource constraints and to maximize utilization of unused zonal reservations. Recommended for batch workloads that do not require high availability.
Any = 64972,
/// The group creates all VM instances within a single zone. The zone is selected based on the present resource constraints and to maximize utilization of unused zonal reservations. Recommended for batch workloads with heavy interprocess communication.
AnySingleZone = 61100880,
/// The group prioritizes acquisition of resources, scheduling VMs in zones where resources are available while distributing VMs as evenly as possible across selected zones to minimize the impact of zonal failure. Recommended for highly available serving workloads.
Balanced = 468409608,
/// The group schedules VM instance creation and deletion to achieve and maintain an even number of managed instances across the selected zones. The distribution is even when the number of managed instances does not differ by more than 1 between any two zones. Recommended for highly available serving workloads.
Even = 2140442,
}
impl TargetShape {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
TargetShape::UndefinedTargetShape => "UNDEFINED_TARGET_SHAPE",
TargetShape::Any => "ANY",
TargetShape::AnySingleZone => "ANY_SINGLE_ZONE",
TargetShape::Balanced => "BALANCED",
TargetShape::Even => "EVEN",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TARGET_SHAPE" => Some(Self::UndefinedTargetShape),
"ANY" => Some(Self::Any),
"ANY_SINGLE_ZONE" => Some(Self::AnySingleZone),
"BALANCED" => Some(Self::Balanced),
"EVEN" => Some(Self::Even),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DistributionPolicyZoneConfiguration {
/// The URL of the zone. The zone must exist in the region where the managed instance group is located.
#[prost(string, optional, tag = "3744684")]
pub zone: ::core::option::Option<::prost::alloc::string::String>,
}
/// A Duration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". Range is approximately 10,000 years.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Duration {
/// Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive.
#[prost(int32, optional, tag = "104586303")]
pub nanos: ::core::option::Option<i32>,
/// Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
#[prost(int64, optional, tag = "359484031")]
pub seconds: ::core::option::Option<i64>,
}
/// A request message for Projects.EnableXpnHost. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EnableXpnHostProjectRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Projects.EnableXpnResource. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EnableXpnResourceProjectRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "421980207")]
pub projects_enable_xpn_resource_request_resource: ::core::option::Option<
ProjectsEnableXpnResourceRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// \[Output Only\] If errors are generated during processing of the operation, this field will be populated.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Error {
/// \[Output Only\] The array of errors encountered while processing this operation.
#[prost(message, repeated, tag = "315977579")]
pub errors: ::prost::alloc::vec::Vec<Errors>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ErrorDetails {
#[prost(message, optional, tag = "25251973")]
pub error_info: ::core::option::Option<ErrorInfo>,
#[prost(message, optional, tag = "3198785")]
pub help: ::core::option::Option<Help>,
#[prost(message, optional, tag = "404537155")]
pub localized_message: ::core::option::Option<LocalizedMessage>,
#[prost(message, optional, tag = "93923861")]
pub quota_info: ::core::option::Option<QuotaExceededInfo>,
}
/// Describes the cause of the error with structured details. Example of an error when contacting the "pubsub.googleapis.com" API when it is not enabled: { "reason": "API_DISABLED" "domain": "googleapis.com" "metadata": { "resource": "projects/123", "service": "pubsub.googleapis.com" } } This response indicates that the pubsub.googleapis.com API is not enabled. Example of an error that is returned when attempting to create a Spanner instance in a region that is out of stock: { "reason": "STOCKOUT" "domain": "spanner.googleapis.com", "metadata": { "availableRegions": "us-central1,us-east2" } }
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ErrorInfo {
/// The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com".
#[prost(string, optional, tag = "284415172")]
pub domain: ::core::option::Option<::prost::alloc::string::String>,
/// Additional structured details about this error. Keys should match /\[a-zA-Z0-9-_\]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
#[prost(btree_map = "string, string", tag = "8514340")]
pub metadatas: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of `A-Z+\[A-Z0-9\]`, which represents UPPER_SNAKE_CASE.
#[prost(string, optional, tag = "138777156")]
pub reason: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Errors {
/// \[Output Only\] The error type identifier for this error.
#[prost(string, optional, tag = "3059181")]
pub code: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
#[prost(message, repeated, tag = "274653963")]
pub error_details: ::prost::alloc::vec::Vec<ErrorDetails>,
/// \[Output Only\] Indicates the field in the request that caused the error. This property is optional.
#[prost(string, optional, tag = "290430901")]
pub location: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] An optional, human-readable error message.
#[prost(string, optional, tag = "418054151")]
pub message: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExchangedPeeringRoute {
/// The destination range of the route.
#[prost(string, optional, tag = "381327712")]
pub dest_range: ::core::option::Option<::prost::alloc::string::String>,
/// True if the peering route has been imported from a peer. The actual import happens if the field networkPeering.importCustomRoutes is true for this network, and networkPeering.exportCustomRoutes is true for the peer network, and the import does not result in a route conflict.
#[prost(bool, optional, tag = "114502404")]
pub imported: ::core::option::Option<bool>,
/// The region of peering route next hop, only applies to dynamic routes.
#[prost(string, optional, tag = "122577014")]
pub next_hop_region: ::core::option::Option<::prost::alloc::string::String>,
/// The priority of the peering route.
#[prost(uint32, optional, tag = "445151652")]
pub priority: ::core::option::Option<u32>,
/// The type of the peering route.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `ExchangedPeeringRoute`.
pub mod exchanged_peering_route {
/// The type of the peering route.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
/// For routes exported from local network.
DynamicPeeringRoute = 469794858,
/// The peering route.
StaticPeeringRoute = 473407545,
/// The peering route corresponding to subnetwork range.
SubnetPeeringRoute = 465782504,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::DynamicPeeringRoute => "DYNAMIC_PEERING_ROUTE",
Type::StaticPeeringRoute => "STATIC_PEERING_ROUTE",
Type::SubnetPeeringRoute => "SUBNET_PEERING_ROUTE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"DYNAMIC_PEERING_ROUTE" => Some(Self::DynamicPeeringRoute),
"STATIC_PEERING_ROUTE" => Some(Self::StaticPeeringRoute),
"SUBNET_PEERING_ROUTE" => Some(Self::SubnetPeeringRoute),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExchangedPeeringRoutesList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of ExchangedPeeringRoute resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<ExchangedPeeringRoute>,
/// \[Output Only\] Type of resource. Always compute#exchangedPeeringRoutesList for exchanged peering routes lists.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// A request message for Subnetworks.ExpandIpCidrRange. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExpandIpCidrRangeSubnetworkRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the Subnetwork resource to update.
#[prost(string, tag = "307827694")]
pub subnetwork: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "477014110")]
pub subnetworks_expand_ip_cidr_range_request_resource: ::core::option::Option<
SubnetworksExpandIpCidrRangeRequest,
>,
}
/// Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at <https://github.com/google/cel-spec.> Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Expr {
/// Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Textual representation of an expression in Common Expression Language syntax.
#[prost(string, optional, tag = "352031384")]
pub expression: ::core::option::Option<::prost::alloc::string::String>,
/// Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
#[prost(string, optional, tag = "290430901")]
pub location: ::core::option::Option<::prost::alloc::string::String>,
/// Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
#[prost(string, optional, tag = "110371416")]
pub title: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents an external VPN gateway. External VPN gateway is the on-premises VPN gateway(s) or another cloud provider's VPN gateway that connects to your Google Cloud VPN gateway. To create a highly available VPN from Google Cloud Platform to your VPN gateway or another cloud provider's VPN gateway, you must create a external VPN gateway resource with information about the other gateway. For more information about using external VPN gateways, see Creating an HA VPN gateway and tunnel pair to a peer VPN.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExternalVpnGateway {
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// A list of interfaces for this external VPN gateway. If your peer-side gateway is an on-premises gateway and non-AWS cloud providers' gateway, at most two interfaces can be provided for an external VPN gateway. If your peer side is an AWS virtual private gateway, four interfaces should be provided for an external VPN gateway.
#[prost(message, repeated, tag = "12073562")]
pub interfaces: ::prost::alloc::vec::Vec<ExternalVpnGatewayInterface>,
/// \[Output Only\] Type of the resource. Always compute#externalVpnGateway for externalVpnGateways.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// A fingerprint for the labels being applied to this ExternalVpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an ExternalVpnGateway.
#[prost(string, optional, tag = "178124825")]
pub label_fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates the user-supplied redundancy type of this external VPN gateway.
/// Check the RedundancyType enum for the list of possible values.
#[prost(string, optional, tag = "271443740")]
pub redundancy_type: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `ExternalVpnGateway`.
pub mod external_vpn_gateway {
/// Indicates the user-supplied redundancy type of this external VPN gateway.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum RedundancyType {
/// A value indicating that the enum field is not set.
UndefinedRedundancyType = 0,
/// The external VPN gateway has four public IP addresses; at the time of writing this API, the AWS virtual private gateway is an example which has four public IP addresses for high availability connections; there should be two VPN connections in the AWS virtual private gateway , each AWS VPN connection has two public IP addresses; please make sure to put two public IP addresses from one AWS VPN connection into interfaces 0 and 1 of this external VPN gateway, and put the other two public IP addresses from another AWS VPN connection into interfaces 2 and 3 of this external VPN gateway. When displaying highly available configuration status for the VPN tunnels connected to FOUR_IPS_REDUNDANCY external VPN gateway, Google will always detect whether interfaces 0 and 1 are connected on one interface of HA Cloud VPN gateway, and detect whether interfaces 2 and 3 are connected to another interface of the HA Cloud VPN gateway.
FourIpsRedundancy = 520087913,
/// The external VPN gateway has only one public IP address which internally provide redundancy or failover.
SingleIpInternallyRedundant = 133914873,
/// The external VPN gateway has two public IP addresses which are redundant with each other, the following two types of setup on your on-premises side would have this type of redundancy: (1) Two separate on-premises gateways, each with one public IP address, the two on-premises gateways are redundant with each other. (2) A single on-premise gateway with two public IP addresses that are redundant with eatch other.
TwoIpsRedundancy = 367049635,
}
impl RedundancyType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
RedundancyType::UndefinedRedundancyType => "UNDEFINED_REDUNDANCY_TYPE",
RedundancyType::FourIpsRedundancy => "FOUR_IPS_REDUNDANCY",
RedundancyType::SingleIpInternallyRedundant => {
"SINGLE_IP_INTERNALLY_REDUNDANT"
}
RedundancyType::TwoIpsRedundancy => "TWO_IPS_REDUNDANCY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_REDUNDANCY_TYPE" => Some(Self::UndefinedRedundancyType),
"FOUR_IPS_REDUNDANCY" => Some(Self::FourIpsRedundancy),
"SINGLE_IP_INTERNALLY_REDUNDANT" => {
Some(Self::SingleIpInternallyRedundant)
}
"TWO_IPS_REDUNDANCY" => Some(Self::TwoIpsRedundancy),
_ => None,
}
}
}
}
/// The interface for the external VPN gateway.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExternalVpnGatewayInterface {
/// The numeric ID of this interface. The allowed input values for this id for different redundancy types of external VPN gateway: - SINGLE_IP_INTERNALLY_REDUNDANT - 0 - TWO_IPS_REDUNDANCY - 0, 1 - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3
#[prost(uint32, optional, tag = "3355")]
pub id: ::core::option::Option<u32>,
/// IP address of the interface in the external VPN gateway. Only IPv4 is supported. This IP address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address from Google Compute Engine.
#[prost(string, optional, tag = "406272220")]
pub ip_address: ::core::option::Option<::prost::alloc::string::String>,
/// IPv6 address of the interface in the external VPN gateway. This IPv6 address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address from Google Compute Engine. Must specify an IPv6 address (not IPV4-mapped) using any format described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
#[prost(string, optional, tag = "341563804")]
pub ipv6_address: ::core::option::Option<::prost::alloc::string::String>,
}
/// Response to the list request, and contains a list of externalVpnGateways.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExternalVpnGatewayList {
#[prost(string, optional, tag = "3123477")]
pub etag: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of ExternalVpnGateway resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<ExternalVpnGateway>,
/// \[Output Only\] Type of resource. Always compute#externalVpnGatewayList for lists of externalVpnGateways.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FileContentBuffer {
/// The raw content in the secure keys file.
#[prost(string, optional, tag = "414659705")]
pub content: ::core::option::Option<::prost::alloc::string::String>,
/// The file type of source file.
/// Check the FileType enum for the list of possible values.
#[prost(string, optional, tag = "294346781")]
pub file_type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `FileContentBuffer`.
pub mod file_content_buffer {
/// The file type of source file.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum FileType {
/// A value indicating that the enum field is not set.
UndefinedFileType = 0,
Bin = 65767,
Undefined = 137851184,
X509 = 2674086,
}
impl FileType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
FileType::UndefinedFileType => "UNDEFINED_FILE_TYPE",
FileType::Bin => "BIN",
FileType::Undefined => "UNDEFINED",
FileType::X509 => "X509",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_FILE_TYPE" => Some(Self::UndefinedFileType),
"BIN" => Some(Self::Bin),
"UNDEFINED" => Some(Self::Undefined),
"X509" => Some(Self::X509),
_ => None,
}
}
}
}
/// Represents a Firewall Rule resource. Firewall rules allow or deny ingress traffic to, and egress traffic from your instances. For more information, read Firewall rules.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Firewall {
/// The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
#[prost(message, repeated, tag = "162398632")]
pub allowed: ::prost::alloc::vec::Vec<Allowed>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// The list of DENY rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a denied connection.
#[prost(message, repeated, tag = "275217307")]
pub denied: ::prost::alloc::vec::Vec<Denied>,
/// An optional description of this resource. Provide this field when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// If destination ranges are specified, the firewall rule applies only to traffic that has destination IP address in these ranges. These ranges must be expressed in CIDR format. Both IPv4 and IPv6 are supported.
#[prost(string, repeated, tag = "305699879")]
pub destination_ranges: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default is `INGRESS`. For `EGRESS` traffic, you cannot specify the sourceTags fields.
/// Check the Direction enum for the list of possible values.
#[prost(string, optional, tag = "111150975")]
pub direction: ::core::option::Option<::prost::alloc::string::String>,
/// Denotes whether the firewall rule is disabled. When set to true, the firewall rule is not enforced and the network behaves as if it did not exist. If this is unspecified, the firewall rule will be enabled.
#[prost(bool, optional, tag = "270940796")]
pub disabled: ::core::option::Option<bool>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#firewall for firewall rules.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// This field denotes the logging options for a particular firewall rule. If logging is enabled, logs will be exported to Cloud Logging.
#[prost(message, optional, tag = "351299741")]
pub log_config: ::core::option::Option<FirewallLogConfig>,
/// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the network resource for this firewall rule. If not specified when creating a firewall rule, the default network is used: global/networks/default If you choose to specify this field, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - <https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network> - projects/myproject/global/networks/my-network - global/networks/default
#[prost(string, optional, tag = "232872494")]
pub network: ::core::option::Option<::prost::alloc::string::String>,
/// Priority for this rule. This is an integer between `0` and `65535`, both inclusive. The default value is `1000`. Relative priorities determine which rule takes effect if multiple rules apply. Lower values indicate higher priority. For example, a rule with priority `0` has higher precedence than a rule with priority `1`. DENY rules take precedence over ALLOW rules if they have equal priority. Note that VPC networks have implied rules with a priority of `65535`. To avoid conflicts with the implied rules, use a priority number less than `65535`.
#[prost(int32, optional, tag = "445151652")]
pub priority: ::core::option::Option<i32>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// If source ranges are specified, the firewall rule applies only to traffic that has a source IP address in these ranges. These ranges must be expressed in CIDR format. One or both of sourceRanges and sourceTags may be set. If both fields are set, the rule applies to traffic that has a source IP address within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags field. The connection does not need to match both fields for the rule to apply. Both IPv4 and IPv6 are supported.
#[prost(string, repeated, tag = "200097658")]
pub source_ranges: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// If source service accounts are specified, the firewall rules apply only to traffic originating from an instance with a service account in this list. Source service accounts cannot be used to control traffic to an instance's external IP address because service accounts are associated with an instance, not an IP address. sourceRanges can be set at the same time as sourceServiceAccounts. If both are set, the firewall applies to traffic that has a source IP address within the sourceRanges OR a source IP that belongs to an instance with service account listed in sourceServiceAccount. The connection does not need to match both fields for the firewall to apply. sourceServiceAccounts cannot be used at the same time as sourceTags or targetTags.
#[prost(string, repeated, tag = "105100756")]
pub source_service_accounts: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// If source tags are specified, the firewall rule applies only to traffic with source IPs that match the primary network interfaces of VM instances that have the tag and are in the same VPC network. Source tags cannot be used to control traffic to an instance's external IP address, it only applies to traffic between instances in the same virtual network. Because tags are associated with instances, not IP addresses. One or both of sourceRanges and sourceTags may be set. If both fields are set, the firewall applies to traffic that has a source IP address within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags field. The connection does not need to match both fields for the firewall to apply.
#[prost(string, repeated, tag = "452222397")]
pub source_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// A list of service accounts indicating sets of instances located in the network that may make network connections as specified in allowed\[\]. targetServiceAccounts cannot be used at the same time as targetTags or sourceTags. If neither targetServiceAccounts nor targetTags are specified, the firewall rule applies to all instances on the specified network.
#[prost(string, repeated, tag = "457639710")]
pub target_service_accounts: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// A list of tags that controls which instances the firewall rule applies to. If targetTags are specified, then the firewall rule applies only to instances in the VPC network that have one of those tags. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
#[prost(string, repeated, tag = "62901767")]
pub target_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Firewall`.
pub mod firewall {
/// Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default is `INGRESS`. For `EGRESS` traffic, you cannot specify the sourceTags fields.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Direction {
/// A value indicating that the enum field is not set.
UndefinedDirection = 0,
/// Indicates that firewall should apply to outgoing traffic.
Egress = 432880501,
/// Indicates that firewall should apply to incoming traffic.
Ingress = 516931221,
}
impl Direction {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Direction::UndefinedDirection => "UNDEFINED_DIRECTION",
Direction::Egress => "EGRESS",
Direction::Ingress => "INGRESS",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_DIRECTION" => Some(Self::UndefinedDirection),
"EGRESS" => Some(Self::Egress),
"INGRESS" => Some(Self::Ingress),
_ => None,
}
}
}
}
/// Contains a list of firewalls.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FirewallList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Firewall resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Firewall>,
/// \[Output Only\] Type of resource. Always compute#firewallList for lists of firewalls.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// The available logging options for a firewall rule.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FirewallLogConfig {
/// This field denotes whether to enable logging for a particular firewall rule.
#[prost(bool, optional, tag = "311764355")]
pub enable: ::core::option::Option<bool>,
/// This field can only be specified for a particular firewall rule if logging is enabled for that rule. This field denotes whether to include or exclude metadata for firewall logs.
/// Check the Metadata enum for the list of possible values.
#[prost(string, optional, tag = "86866735")]
pub metadata: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `FirewallLogConfig`.
pub mod firewall_log_config {
/// This field can only be specified for a particular firewall rule if logging is enabled for that rule. This field denotes whether to include or exclude metadata for firewall logs.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Metadata {
/// A value indicating that the enum field is not set.
UndefinedMetadata = 0,
ExcludeAllMetadata = 334519954,
IncludeAllMetadata = 164619908,
}
impl Metadata {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Metadata::UndefinedMetadata => "UNDEFINED_METADATA",
Metadata::ExcludeAllMetadata => "EXCLUDE_ALL_METADATA",
Metadata::IncludeAllMetadata => "INCLUDE_ALL_METADATA",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_METADATA" => Some(Self::UndefinedMetadata),
"EXCLUDE_ALL_METADATA" => Some(Self::ExcludeAllMetadata),
"INCLUDE_ALL_METADATA" => Some(Self::IncludeAllMetadata),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FirewallPoliciesListAssociationsResponse {
/// A list of associations.
#[prost(message, repeated, tag = "508736530")]
pub associations: ::prost::alloc::vec::Vec<FirewallPolicyAssociation>,
/// \[Output Only\] Type of firewallPolicy associations. Always compute#FirewallPoliciesListAssociations for lists of firewallPolicy associations.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a Firewall Policy resource.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FirewallPolicy {
/// A list of associations that belong to this firewall policy.
#[prost(message, repeated, tag = "508736530")]
pub associations: ::prost::alloc::vec::Vec<FirewallPolicyAssociation>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Deprecated, please use short name instead. User-provided name of the Organization firewall policy. The name should be unique in the organization in which the firewall policy is created. This field is not applicable to network firewall policies. This name must be set on creation and cannot be changed. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "4473832")]
pub display_name: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the firewall policy.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output only\] Type of the resource. Always compute#firewallPolicyfor firewall policies
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. For Organization Firewall Policies it's a \[Output Only\] numeric ID allocated by Google Cloud which uniquely identifies the Organization Firewall Policy.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The parent of the firewall policy. This field is not applicable to network firewall policies.
#[prost(string, optional, tag = "78317738")]
pub parent: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the region where the regional firewall policy resides. This field is not applicable to global firewall policies. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Total count of all firewall policy rule tuples. A firewall policy can not exceed a set number of tuples.
#[prost(int32, optional, tag = "388342037")]
pub rule_tuple_count: ::core::option::Option<i32>,
/// A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a firewall policy, a default rule with action "allow" will be added.
#[prost(message, repeated, tag = "108873975")]
pub rules: ::prost::alloc::vec::Vec<FirewallPolicyRule>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource with the resource id.
#[prost(string, optional, tag = "44520962")]
pub self_link_with_id: ::core::option::Option<::prost::alloc::string::String>,
/// User-provided name of the Organization firewall policy. The name should be unique in the organization in which the firewall policy is created. This field is not applicable to network firewall policies. This name must be set on creation and cannot be changed. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "492051566")]
pub short_name: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FirewallPolicyAssociation {
/// The target that the firewall policy is attached to.
#[prost(string, optional, tag = "175773741")]
pub attachment_target: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Deprecated, please use short name instead. The display name of the firewall policy of the association.
#[prost(string, optional, tag = "4473832")]
pub display_name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The firewall policy ID of the association.
#[prost(string, optional, tag = "357211849")]
pub firewall_policy_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name for an association.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The short name of the firewall policy of the association.
#[prost(string, optional, tag = "492051566")]
pub short_name: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FirewallPolicyList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of FirewallPolicy resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<FirewallPolicy>,
/// \[Output Only\] Type of resource. Always compute#firewallPolicyList for listsof FirewallPolicies
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny).
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FirewallPolicyRule {
/// The Action to perform when the client connection triggers the rule. Valid actions are "allow", "deny" and "goto_next".
#[prost(string, optional, tag = "187661878")]
pub action: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description for this resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// The direction in which this rule applies.
/// Check the Direction enum for the list of possible values.
#[prost(string, optional, tag = "111150975")]
pub direction: ::core::option::Option<::prost::alloc::string::String>,
/// Denotes whether the firewall policy rule is disabled. When set to true, the firewall policy rule is not enforced and traffic behaves as if it did not exist. If this is unspecified, the firewall policy rule will be enabled.
#[prost(bool, optional, tag = "270940796")]
pub disabled: ::core::option::Option<bool>,
/// Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules.
#[prost(bool, optional, tag = "295396515")]
pub enable_logging: ::core::option::Option<bool>,
/// \[Output only\] Type of the resource. Always compute#firewallPolicyRule for firewall policy rules
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
#[prost(message, optional, tag = "103668165")]
pub r#match: ::core::option::Option<FirewallPolicyRuleMatcher>,
/// An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest prority.
#[prost(int32, optional, tag = "445151652")]
pub priority: ::core::option::Option<i32>,
/// An optional name for the rule. This field is not a unique identifier and can be updated.
#[prost(string, optional, tag = "55286254")]
pub rule_name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Calculation of the complexity of a single firewall policy rule.
#[prost(int32, optional, tag = "388342037")]
pub rule_tuple_count: ::core::option::Option<i32>,
/// A fully-qualified URL of a SecurityProfile resource instance. Example: <https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group> Must be specified if action = 'apply_security_profile_group' and cannot be specified for other actions.
#[prost(string, optional, tag = "207411626")]
pub security_profile_group: ::core::option::Option<::prost::alloc::string::String>,
/// A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule.
#[prost(string, repeated, tag = "528230647")]
pub target_resources: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
#[prost(message, repeated, tag = "468132403")]
pub target_secure_tags: ::prost::alloc::vec::Vec<FirewallPolicyRuleSecureTag>,
/// A list of service accounts indicating the sets of instances that are applied with this rule.
#[prost(string, repeated, tag = "457639710")]
pub target_service_accounts: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// Boolean flag indicating if the traffic should be TLS decrypted. Can be set only if action = 'apply_security_profile_group' and cannot be set for other actions.
#[prost(bool, optional, tag = "43425488")]
pub tls_inspect: ::core::option::Option<bool>,
}
/// Nested message and enum types in `FirewallPolicyRule`.
pub mod firewall_policy_rule {
/// The direction in which this rule applies.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Direction {
/// A value indicating that the enum field is not set.
UndefinedDirection = 0,
Egress = 432880501,
Ingress = 516931221,
}
impl Direction {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Direction::UndefinedDirection => "UNDEFINED_DIRECTION",
Direction::Egress => "EGRESS",
Direction::Ingress => "INGRESS",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_DIRECTION" => Some(Self::UndefinedDirection),
"EGRESS" => Some(Self::Egress),
"INGRESS" => Some(Self::Ingress),
_ => None,
}
}
}
}
/// Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FirewallPolicyRuleMatcher {
/// Address groups which should be matched against the traffic destination. Maximum number of destination address groups is 10.
#[prost(string, repeated, tag = "468760508")]
pub dest_address_groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Fully Qualified Domain Name (FQDN) which should be matched against traffic destination. Maximum number of destination fqdn allowed is 100.
#[prost(string, repeated, tag = "370712737")]
pub dest_fqdns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.
#[prost(string, repeated, tag = "337357713")]
pub dest_ip_ranges: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Region codes whose IP addresses will be used to match for destination of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" Maximum number of dest region codes allowed is 5000.
#[prost(string, repeated, tag = "199120280")]
pub dest_region_codes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Names of Network Threat Intelligence lists. The IPs in these lists will be matched against traffic destination.
#[prost(string, repeated, tag = "119896492")]
pub dest_threat_intelligences: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// Pairs of IP protocols and ports that the rule should match.
#[prost(message, repeated, tag = "373534261")]
pub layer4_configs: ::prost::alloc::vec::Vec<FirewallPolicyRuleMatcherLayer4Config>,
/// Address groups which should be matched against the traffic source. Maximum number of source address groups is 10.
#[prost(string, repeated, tag = "436423738")]
pub src_address_groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Fully Qualified Domain Name (FQDN) which should be matched against traffic source. Maximum number of source fqdn allowed is 100.
#[prost(string, repeated, tag = "435906147")]
pub src_fqdns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.
#[prost(string, repeated, tag = "432128083")]
pub src_ip_ranges: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Region codes whose IP addresses will be used to match for source of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" Maximum number of source region codes allowed is 5000.
#[prost(string, repeated, tag = "99086742")]
pub src_region_codes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// List of secure tag values, which should be matched at the source of the traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be ignored. Maximum number of source tag values allowed is 256.
#[prost(message, repeated, tag = "508791302")]
pub src_secure_tags: ::prost::alloc::vec::Vec<FirewallPolicyRuleSecureTag>,
/// Names of Network Threat Intelligence lists. The IPs in these lists will be matched against traffic source.
#[prost(string, repeated, tag = "323631018")]
pub src_threat_intelligences: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FirewallPolicyRuleMatcherLayer4Config {
/// The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
#[prost(string, optional, tag = "475958960")]
pub ip_protocol: ::core::option::Option<::prost::alloc::string::String>,
/// An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: \["22"\], \["80","443"\], and \["12345-12349"\].
#[prost(string, repeated, tag = "106854418")]
pub ports: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FirewallPolicyRuleSecureTag {
/// Name of the secure tag, created with TagManager's TagValue API.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] State of the secure tag, either `EFFECTIVE` or `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted or its network is deleted.
/// Check the State enum for the list of possible values.
#[prost(string, optional, tag = "109757585")]
pub state: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `FirewallPolicyRuleSecureTag`.
pub mod firewall_policy_rule_secure_tag {
/// \[Output Only\] State of the secure tag, either `EFFECTIVE` or `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted or its network is deleted.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// A value indicating that the enum field is not set.
UndefinedState = 0,
Effective = 244201863,
Ineffective = 304458242,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::UndefinedState => "UNDEFINED_STATE",
State::Effective => "EFFECTIVE",
State::Ineffective => "INEFFECTIVE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATE" => Some(Self::UndefinedState),
"EFFECTIVE" => Some(Self::Effective),
"INEFFECTIVE" => Some(Self::Ineffective),
_ => None,
}
}
}
}
/// Encapsulates numeric value that can be either absolute or relative.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FixedOrPercent {
/// \[Output Only\] Absolute value of VM instances calculated based on the specific mode. - If the value is fixed, then the calculated value is equal to the fixed value. - If the value is a percent, then the calculated value is percent/100 * targetSize. For example, the calculated value of a 80% of a managed instance group with 150 instances would be (80/100 * 150) = 120 VM instances. If there is a remainder, the number is rounded.
#[prost(int32, optional, tag = "472082878")]
pub calculated: ::core::option::Option<i32>,
/// Specifies a fixed number of VM instances. This must be a positive integer.
#[prost(int32, optional, tag = "97445748")]
pub fixed: ::core::option::Option<i32>,
/// Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for 80%.
#[prost(int32, optional, tag = "394814533")]
pub percent: ::core::option::Option<i32>,
}
/// Represents a Forwarding Rule resource. Forwarding rule resources in Google Cloud can be either regional or global in scope: * [Global](<https://cloud.google.com/compute/docs/reference/rest/v1/globalForwardingRules>) * [Regional](<https://cloud.google.com/compute/docs/reference/rest/v1/forwardingRules>) A forwarding rule and its corresponding IP address represent the frontend configuration of a Google Cloud load balancer. Forwarding rules can also reference target instances and Cloud VPN Classic gateways (targetVpnGateway). For more information, read Forwarding rule concepts and Using protocol forwarding.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ForwardingRule {
/// IP address for which this forwarding rule accepts traffic. When a client sends traffic to this IP address, the forwarding rule directs the traffic to the referenced target or backendService. While creating a forwarding rule, specifying an IPAddress is required under the following circumstances: - When the target is set to targetGrpcProxy and validateForProxyless is set to true, the IPAddress should be set to 0.0.0.0. - When the target is a Private Service Connect Google APIs bundle, you must specify an IPAddress. Otherwise, you can optionally specify an IP address that references an existing static (reserved) IP address resource. When omitted, Google Cloud assigns an ephemeral IP address. Use one of the following formats to specify an IP address while creating a forwarding rule: * IP address number, as in `100.1.2.3` * IPv6 address range, as in `2600:1234::/96` * Full resource URL, as in <https://www.googleapis.com/compute/v1/projects/> project_id/regions/region/addresses/address-name * Partial URL or by name, as in: - projects/project_id/regions/region/addresses/address-name - regions/region/addresses/address-name - global/addresses/address-name - address-name The forwarding rule's target or backendService, and in most cases, also the loadBalancingScheme, determine the type of IP address that you can use. For detailed information, see [IP address specifications](<https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications>). When reading an IPAddress, the API always returns the IP address number.
#[prost(string, optional, tag = "42976943")]
pub i_p_address: ::core::option::Option<::prost::alloc::string::String>,
/// The IP protocol to which this rule applies. For protocol forwarding, valid options are TCP, UDP, ESP, AH, SCTP, ICMP and L3_DEFAULT. The valid IP protocols are different for different load balancing products as described in [Load balancing features](<https://cloud.google.com/load-balancing/docs/features#protocols_from_the_load_balancer_to_the_backends>).
/// Check the IPProtocolEnum enum for the list of possible values.
#[prost(string, optional, tag = "488094525")]
pub i_p_protocol: ::core::option::Option<::prost::alloc::string::String>,
/// The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to ports in the specified range will be forwarded to the backends configured with this forwarding rule. The allPorts field has the following limitations: - It requires that the forwarding rule IPProtocol be TCP, UDP, SCTP, or L3_DEFAULT. - It's applicable only to the following products: internal passthrough Network Load Balancers, backend service-based external passthrough Network Load Balancers, and internal and external protocol forwarding. - Set this field to true to allow packets addressed to any port or packets lacking destination port information (for example, UDP fragments after the first fragment) to be forwarded to the backends configured with this forwarding rule. The L3_DEFAULT protocol requires allPorts be set to true.
#[prost(bool, optional, tag = "445175796")]
pub all_ports: ::core::option::Option<bool>,
/// If set to true, clients can access the internal passthrough Network Load Balancers, the regional internal Application Load Balancer, and the regional internal proxy Network Load Balancer from all regions. If false, only allows access from the local region the load balancer is located at. Note that for INTERNAL_MANAGED forwarding rules, this field cannot be changed after the forwarding rule is created.
#[prost(bool, optional, tag = "499409674")]
pub allow_global_access: ::core::option::Option<bool>,
/// This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region.
#[prost(bool, optional, tag = "263471819")]
pub allow_psc_global_access: ::core::option::Option<bool>,
/// Identifies the backend service to which the forwarding rule sends traffic. Required for internal and external passthrough Network Load Balancers; must be omitted for all other load balancer types.
#[prost(string, optional, tag = "306946058")]
pub backend_service: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The URL for the corresponding base forwarding rule. By base forwarding rule, we mean the forwarding rule that has the same IP address, protocol, and port settings with the current forwarding rule, but without sourceIPRanges specified. Always empty if the current forwarding rule does not have sourceIPRanges specified.
#[prost(string, optional, tag = "524873104")]
pub base_forwarding_rule: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ForwardingRule. Include the fingerprint in patch request to ensure that you do not overwrite changes that were applied from another concurrent request. To see the latest fingerprint, make a get() request to retrieve a ForwardingRule.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6.
/// Check the IpVersion enum for the list of possible values.
#[prost(string, optional, tag = "294959552")]
pub ip_version: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether or not this load balancer can be used as a collector for packet mirroring. To prevent mirroring loops, instances behind this load balancer will not have their traffic mirrored even if a PacketMirroring rule applies to them. This can only be set to true for load balancers that have their loadBalancingScheme set to INTERNAL.
#[prost(bool, optional, tag = "119255164")]
pub is_mirroring_collector: ::core::option::Option<bool>,
/// \[Output Only\] Type of the resource. Always compute#forwardingRule for forwarding rule resources.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// A fingerprint for the labels being applied to this resource, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a ForwardingRule.
#[prost(string, optional, tag = "178124825")]
pub label_fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Specifies the forwarding rule type. For more information about forwarding rules, refer to Forwarding rule concepts.
/// Check the LoadBalancingScheme enum for the list of possible values.
#[prost(string, optional, tag = "363890244")]
pub load_balancing_scheme: ::core::option::Option<::prost::alloc::string::String>,
/// Opaque filter criteria used by load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to load balancer, xDS clients present node metadata. When there is a match, the relevant configuration is made available to those proxies. Otherwise, all the resources (e.g. TargetHttpProxy, UrlMap) referenced by the ForwardingRule are not visible to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadataFilters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here will be applifed before those specified in the UrlMap that this ForwardingRule references. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED.
#[prost(message, repeated, tag = "464725739")]
pub metadata_filters: ::prost::alloc::vec::Vec<MetadataFilter>,
/// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. For Private Service Connect forwarding rules that forward traffic to Google APIs, the forwarding rule name must be a 1-20 characters string with lowercase letters and numbers and must start with a letter.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// This field is not used for global external load balancing. For internal passthrough Network Load Balancers, this field identifies the network that the load balanced IP should belong to for this forwarding rule. If the subnetwork is specified, the network of the subnetwork will be used. If neither subnetwork nor this field is specified, the default network will be used. For Private Service Connect forwarding rules that forward traffic to Google APIs, a network must be provided.
#[prost(string, optional, tag = "232872494")]
pub network: ::core::option::Option<::prost::alloc::string::String>,
/// This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM, STANDARD. For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM. If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this value must be equal to the networkTier of the Address.
/// Check the NetworkTier enum for the list of possible values.
#[prost(string, optional, tag = "517397843")]
pub network_tier: ::core::option::Option<::prost::alloc::string::String>,
/// This is used in PSC consumer ForwardingRule to control whether it should try to auto-generate a DNS zone or not. Non-PSC forwarding rules do not use this field. Once set, this field is not mutable.
#[prost(bool, optional, tag = "64546991")]
pub no_automate_dns_zone: ::core::option::Option<bool>,
/// The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to ports in the specified range will be forwarded to the backends configured with this forwarding rule. The portRange field has the following limitations: - It requires that the forwarding rule IPProtocol be TCP, UDP, or SCTP, and - It's applicable only to the following products: external passthrough Network Load Balancers, internal and external proxy Network Load Balancers, internal and external Application Load Balancers, external protocol forwarding, and Classic VPN. - Some products have restrictions on what ports can be used. See port specifications for details. For external forwarding rules, two or more forwarding rules cannot use the same \[IPAddress, IPProtocol\] pair, and cannot have overlapping portRanges. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same \[IPAddress, IPProtocol\] pair, and cannot have overlapping portRanges. @pattern: \\d+(?:-\\d+)?
#[prost(string, optional, tag = "217518079")]
pub port_range: ::core::option::Option<::prost::alloc::string::String>,
/// The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to ports in the specified range will be forwarded to the backends configured with this forwarding rule. The ports field has the following limitations: - It requires that the forwarding rule IPProtocol be TCP, UDP, or SCTP, and - It's applicable only to the following products: internal passthrough Network Load Balancers, backend service-based external passthrough Network Load Balancers, and internal protocol forwarding. - You can specify a list of up to five ports by number, separated by commas. The ports can be contiguous or discontiguous. For external forwarding rules, two or more forwarding rules cannot use the same \[IPAddress, IPProtocol\] pair if they share at least one port number. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same \[IPAddress, IPProtocol\] pair if they share at least one port number. @pattern: \\d+(?:-\\d+)?
#[prost(string, repeated, tag = "106854418")]
pub ports: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] The PSC connection id of the PSC forwarding rule.
#[prost(uint64, optional, tag = "292082397")]
pub psc_connection_id: ::core::option::Option<u64>,
///
/// Check the PscConnectionStatus enum for the list of possible values.
#[prost(string, optional, tag = "184149172")]
pub psc_connection_status: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// Service Directory resources to register this forwarding rule with. Currently, only supports a single Service Directory resource.
#[prost(message, repeated, tag = "223549694")]
pub service_directory_registrations: ::prost::alloc::vec::Vec<
ForwardingRuleServiceDirectoryRegistration,
>,
/// An optional prefix to the service name for this forwarding rule. If specified, the prefix is the first label of the fully qualified service name. The label must be 1-63 characters long, and comply with RFC1035. Specifically, the label must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. This field is only used for internal load balancing.
#[prost(string, optional, tag = "417008874")]
pub service_label: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The internal fully qualified service name for this forwarding rule. This field is only used for internal load balancing.
#[prost(string, optional, tag = "359880149")]
pub service_name: ::core::option::Option<::prost::alloc::string::String>,
/// If not empty, this forwarding rule will only forward the traffic when the source IP address matches one of the IP addresses or CIDR ranges set here. Note that a forwarding rule can only have up to 64 source IP ranges, and this field can only be used with a regional forwarding rule whose scheme is EXTERNAL. Each source_ip_range entry should be either an IP address (for example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24).
#[prost(string, repeated, tag = "111563210")]
pub source_ip_ranges: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// This field identifies the subnetwork that the load balanced IP should belong to for this forwarding rule, used with internal load balancers and external passthrough Network Load Balancers with IPv6. If the network specified is in auto subnet mode, this field is optional. However, a subnetwork must be specified if the network is in custom subnet mode or when creating external forwarding rule with IPv6.
#[prost(string, optional, tag = "307827694")]
pub subnetwork: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. - For load balancers, see the "Target" column in [Port specifications](<https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications>). - For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All supported Google APIs. - For Private Service Connect forwarding rules that forward traffic to managed services, the target must be a service attachment. The target is not mutable once set as a service attachment.
#[prost(string, optional, tag = "192835985")]
pub target: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `ForwardingRule`.
pub mod forwarding_rule {
/// The IP protocol to which this rule applies. For protocol forwarding, valid options are TCP, UDP, ESP, AH, SCTP, ICMP and L3_DEFAULT. The valid IP protocols are different for different load balancing products as described in [Load balancing features](<https://cloud.google.com/load-balancing/docs/features#protocols_from_the_load_balancer_to_the_backends>).
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum IpProtocolEnum {
/// A value indicating that the enum field is not set.
UndefinedIPProtocolEnum = 0,
Ah = 2087,
Esp = 68962,
Icmp = 2241597,
L3Default = 48151369,
Sctp = 2539724,
Tcp = 82881,
Udp = 83873,
}
impl IpProtocolEnum {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
IpProtocolEnum::UndefinedIPProtocolEnum => "UNDEFINED_I_P_PROTOCOL_ENUM",
IpProtocolEnum::Ah => "AH",
IpProtocolEnum::Esp => "ESP",
IpProtocolEnum::Icmp => "ICMP",
IpProtocolEnum::L3Default => "L3_DEFAULT",
IpProtocolEnum::Sctp => "SCTP",
IpProtocolEnum::Tcp => "TCP",
IpProtocolEnum::Udp => "UDP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_I_P_PROTOCOL_ENUM" => Some(Self::UndefinedIPProtocolEnum),
"AH" => Some(Self::Ah),
"ESP" => Some(Self::Esp),
"ICMP" => Some(Self::Icmp),
"L3_DEFAULT" => Some(Self::L3Default),
"SCTP" => Some(Self::Sctp),
"TCP" => Some(Self::Tcp),
"UDP" => Some(Self::Udp),
_ => None,
}
}
}
/// The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum IpVersion {
/// A value indicating that the enum field is not set.
UndefinedIpVersion = 0,
Ipv4 = 2254341,
Ipv6 = 2254343,
UnspecifiedVersion = 21850000,
}
impl IpVersion {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
IpVersion::UndefinedIpVersion => "UNDEFINED_IP_VERSION",
IpVersion::Ipv4 => "IPV4",
IpVersion::Ipv6 => "IPV6",
IpVersion::UnspecifiedVersion => "UNSPECIFIED_VERSION",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_IP_VERSION" => Some(Self::UndefinedIpVersion),
"IPV4" => Some(Self::Ipv4),
"IPV6" => Some(Self::Ipv6),
"UNSPECIFIED_VERSION" => Some(Self::UnspecifiedVersion),
_ => None,
}
}
}
/// Specifies the forwarding rule type. For more information about forwarding rules, refer to Forwarding rule concepts.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum LoadBalancingScheme {
/// A value indicating that the enum field is not set.
UndefinedLoadBalancingScheme = 0,
External = 35607499,
ExternalManaged = 512006923,
Internal = 279295677,
InternalManaged = 37350397,
InternalSelfManaged = 236211150,
Invalid = 530283991,
}
impl LoadBalancingScheme {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
LoadBalancingScheme::UndefinedLoadBalancingScheme => {
"UNDEFINED_LOAD_BALANCING_SCHEME"
}
LoadBalancingScheme::External => "EXTERNAL",
LoadBalancingScheme::ExternalManaged => "EXTERNAL_MANAGED",
LoadBalancingScheme::Internal => "INTERNAL",
LoadBalancingScheme::InternalManaged => "INTERNAL_MANAGED",
LoadBalancingScheme::InternalSelfManaged => "INTERNAL_SELF_MANAGED",
LoadBalancingScheme::Invalid => "INVALID",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_LOAD_BALANCING_SCHEME" => {
Some(Self::UndefinedLoadBalancingScheme)
}
"EXTERNAL" => Some(Self::External),
"EXTERNAL_MANAGED" => Some(Self::ExternalManaged),
"INTERNAL" => Some(Self::Internal),
"INTERNAL_MANAGED" => Some(Self::InternalManaged),
"INTERNAL_SELF_MANAGED" => Some(Self::InternalSelfManaged),
"INVALID" => Some(Self::Invalid),
_ => None,
}
}
}
/// This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM, STANDARD. For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM. If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this value must be equal to the networkTier of the Address.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum NetworkTier {
/// A value indicating that the enum field is not set.
UndefinedNetworkTier = 0,
/// Public internet quality with fixed bandwidth.
FixedStandard = 310464328,
/// High quality, Google-grade network tier, support for all networking products.
Premium = 399530551,
/// Public internet quality, only limited support for other networking products.
Standard = 484642493,
/// (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier is expired or not configured.
StandardOverridesFixedStandard = 465847234,
}
impl NetworkTier {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
NetworkTier::UndefinedNetworkTier => "UNDEFINED_NETWORK_TIER",
NetworkTier::FixedStandard => "FIXED_STANDARD",
NetworkTier::Premium => "PREMIUM",
NetworkTier::Standard => "STANDARD",
NetworkTier::StandardOverridesFixedStandard => {
"STANDARD_OVERRIDES_FIXED_STANDARD"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_NETWORK_TIER" => Some(Self::UndefinedNetworkTier),
"FIXED_STANDARD" => Some(Self::FixedStandard),
"PREMIUM" => Some(Self::Premium),
"STANDARD" => Some(Self::Standard),
"STANDARD_OVERRIDES_FIXED_STANDARD" => {
Some(Self::StandardOverridesFixedStandard)
}
_ => None,
}
}
}
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum PscConnectionStatus {
/// A value indicating that the enum field is not set.
UndefinedPscConnectionStatus = 0,
/// The connection has been accepted by the producer.
Accepted = 246714279,
/// The connection has been closed by the producer and will not serve traffic going forward.
Closed = 380163436,
/// The connection has been accepted by the producer, but the producer needs to take further action before the forwarding rule can serve traffic.
NeedsAttention = 344491452,
/// The connection is pending acceptance by the producer.
Pending = 35394935,
/// The connection has been rejected by the producer.
Rejected = 174130302,
StatusUnspecified = 42133066,
}
impl PscConnectionStatus {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
PscConnectionStatus::UndefinedPscConnectionStatus => {
"UNDEFINED_PSC_CONNECTION_STATUS"
}
PscConnectionStatus::Accepted => "ACCEPTED",
PscConnectionStatus::Closed => "CLOSED",
PscConnectionStatus::NeedsAttention => "NEEDS_ATTENTION",
PscConnectionStatus::Pending => "PENDING",
PscConnectionStatus::Rejected => "REJECTED",
PscConnectionStatus::StatusUnspecified => "STATUS_UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PSC_CONNECTION_STATUS" => {
Some(Self::UndefinedPscConnectionStatus)
}
"ACCEPTED" => Some(Self::Accepted),
"CLOSED" => Some(Self::Closed),
"NEEDS_ATTENTION" => Some(Self::NeedsAttention),
"PENDING" => Some(Self::Pending),
"REJECTED" => Some(Self::Rejected),
"STATUS_UNSPECIFIED" => Some(Self::StatusUnspecified),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ForwardingRuleAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of ForwardingRulesScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
ForwardingRulesScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#forwardingRuleAggregatedList for lists of forwarding rules.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of ForwardingRule resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ForwardingRuleList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of ForwardingRule resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<ForwardingRule>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ForwardingRuleReference {
#[prost(string, optional, tag = "269964030")]
pub forwarding_rule: ::core::option::Option<::prost::alloc::string::String>,
}
/// Describes the auto-registration of the forwarding rule to Service Directory. The region and project of the Service Directory resource generated from this registration will be the same as this forwarding rule.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ForwardingRuleServiceDirectoryRegistration {
/// Service Directory namespace to register the forwarding rule under.
#[prost(string, optional, tag = "178476379")]
pub namespace: ::core::option::Option<::prost::alloc::string::String>,
/// Service Directory service to register the forwarding rule under.
#[prost(string, optional, tag = "373540533")]
pub service: ::core::option::Option<::prost::alloc::string::String>,
/// \[Optional\] Service Directory region to register this global forwarding rule under. Default to "us-central1". Only used for PSC for Google APIs. All PSC for Google APIs forwarding rules on the same network should use the same Service Directory region.
#[prost(string, optional, tag = "74030416")]
pub service_directory_region: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ForwardingRulesScopedList {
/// A list of forwarding rules contained in this scope.
#[prost(message, repeated, tag = "315821365")]
pub forwarding_rules: ::prost::alloc::vec::Vec<ForwardingRule>,
/// Informational warning which replaces the list of forwarding rules when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GrpcHealthCheck {
/// The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention: - Empty service_name means the overall status of all services at the backend. - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service. The grpc_service_name can only be ASCII.
#[prost(string, optional, tag = "136533078")]
pub grpc_service_name: ::core::option::Option<::prost::alloc::string::String>,
/// The TCP port number to which the health check prober sends packets. Valid values are 1 through 65535.
#[prost(int32, optional, tag = "3446913")]
pub port: ::core::option::Option<i32>,
/// Not supported.
#[prost(string, optional, tag = "41534345")]
pub port_name: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports.
/// Check the PortSpecification enum for the list of possible values.
#[prost(string, optional, tag = "51590597")]
pub port_specification: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `GRPCHealthCheck`.
pub mod grpc_health_check {
/// Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum PortSpecification {
/// A value indicating that the enum field is not set.
UndefinedPortSpecification = 0,
/// The port number in the health check's port is used for health checking. Applies to network endpoint group and instance group backends.
UseFixedPort = 190235748,
/// Not supported.
UseNamedPort = 349300671,
/// For network endpoint group backends, the health check uses the port number specified on each endpoint in the network endpoint group. For instance group backends, the health check uses the port number specified for the backend service's named port defined in the instance group's named ports.
UseServingPort = 362637516,
}
impl PortSpecification {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
PortSpecification::UndefinedPortSpecification => {
"UNDEFINED_PORT_SPECIFICATION"
}
PortSpecification::UseFixedPort => "USE_FIXED_PORT",
PortSpecification::UseNamedPort => "USE_NAMED_PORT",
PortSpecification::UseServingPort => "USE_SERVING_PORT",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PORT_SPECIFICATION" => Some(Self::UndefinedPortSpecification),
"USE_FIXED_PORT" => Some(Self::UseFixedPort),
"USE_NAMED_PORT" => Some(Self::UseNamedPort),
"USE_SERVING_PORT" => Some(Self::UseServingPort),
_ => None,
}
}
}
}
/// A request message for AcceleratorTypes.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetAcceleratorTypeRequest {
/// Name of the accelerator type to return.
#[prost(string, tag = "138031246")]
pub accelerator_type: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Addresses.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetAddressRequest {
/// Name of the address resource to return.
#[prost(string, tag = "462920692")]
pub address: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for FirewallPolicies.GetAssociation. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetAssociationFirewallPolicyRequest {
/// Name of the firewall policy to which the queried rule belongs.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The name of the association to get from the firewall policy.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NetworkFirewallPolicies.GetAssociation. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetAssociationNetworkFirewallPolicyRequest {
/// Name of the firewall policy to which the queried association belongs.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The name of the association to get from the firewall policy.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for RegionNetworkFirewallPolicies.GetAssociation. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetAssociationRegionNetworkFirewallPolicyRequest {
/// Name of the firewall policy to which the queried association belongs.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The name of the association to get from the firewall policy.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for Autoscalers.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetAutoscalerRequest {
/// Name of the autoscaler to return.
#[prost(string, tag = "517258967")]
pub autoscaler: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for BackendBuckets.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetBackendBucketRequest {
/// Name of the BackendBucket resource to return.
#[prost(string, tag = "91714037")]
pub backend_bucket: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for BackendServices.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetBackendServiceRequest {
/// Name of the BackendService resource to return.
#[prost(string, tag = "306946058")]
pub backend_service: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for Interconnects.GetDiagnostics. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetDiagnosticsInterconnectRequest {
/// Name of the interconnect resource to query.
#[prost(string, tag = "224601230")]
pub interconnect: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for Disks.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetDiskRequest {
/// Name of the persistent disk to return.
#[prost(string, tag = "3083677")]
pub disk: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for DiskTypes.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetDiskTypeRequest {
/// Name of the disk type to return.
#[prost(string, tag = "93009052")]
pub disk_type: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Instances.GetEffectiveFirewalls. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetEffectiveFirewallsInstanceRequest {
/// Name of the instance scoping this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// The name of the network interface to get the effective firewalls.
#[prost(string, tag = "365387880")]
pub network_interface: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Networks.GetEffectiveFirewalls. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetEffectiveFirewallsNetworkRequest {
/// Name of the network for this request.
#[prost(string, tag = "232872494")]
pub network: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for RegionNetworkFirewallPolicies.GetEffectiveFirewalls. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest {
/// Network reference
#[prost(string, tag = "232872494")]
pub network: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for ExternalVpnGateways.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetExternalVpnGatewayRequest {
/// Name of the externalVpnGateway to return.
#[prost(string, tag = "109898629")]
pub external_vpn_gateway: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for FirewallPolicies.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetFirewallPolicyRequest {
/// Name of the firewall policy to get.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
}
/// A request message for Firewalls.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetFirewallRequest {
/// Name of the firewall rule to return.
#[prost(string, tag = "511016192")]
pub firewall: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for ForwardingRules.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetForwardingRuleRequest {
/// Name of the ForwardingRule resource to return.
#[prost(string, tag = "269964030")]
pub forwarding_rule: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for Images.GetFromFamily. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetFromFamilyImageRequest {
/// Name of the image family to search for.
#[prost(string, tag = "328751972")]
pub family: ::prost::alloc::string::String,
/// The image project that the image belongs to. For example, to get a CentOS image, specify centos-cloud as the image project.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for GlobalAddresses.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetGlobalAddressRequest {
/// Name of the address resource to return.
#[prost(string, tag = "462920692")]
pub address: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for GlobalForwardingRules.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetGlobalForwardingRuleRequest {
/// Name of the ForwardingRule resource to return.
#[prost(string, tag = "269964030")]
pub forwarding_rule: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for GlobalNetworkEndpointGroups.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetGlobalNetworkEndpointGroupRequest {
/// The name of the network endpoint group. It should comply with RFC1035.
#[prost(string, tag = "433907078")]
pub network_endpoint_group: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for GlobalOperations.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetGlobalOperationRequest {
/// Name of the Operations resource to return.
#[prost(string, tag = "52090215")]
pub operation: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for GlobalOrganizationOperations.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetGlobalOrganizationOperationRequest {
/// Name of the Operations resource to return.
#[prost(string, tag = "52090215")]
pub operation: ::prost::alloc::string::String,
/// Parent ID for this request.
#[prost(string, optional, tag = "459714768")]
pub parent_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for GlobalPublicDelegatedPrefixes.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetGlobalPublicDelegatedPrefixeRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the PublicDelegatedPrefix resource to return.
#[prost(string, tag = "204238440")]
pub public_delegated_prefix: ::prost::alloc::string::String,
}
/// A request message for Instances.GetGuestAttributes. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetGuestAttributesInstanceRequest {
/// Name of the instance scoping this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Specifies the guest attributes path to be queried.
#[prost(string, optional, tag = "368591164")]
pub query_path: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the key for the guest attributes entry.
#[prost(string, optional, tag = "164364828")]
pub variable_key: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for BackendServices.GetHealth. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetHealthBackendServiceRequest {
/// Name of the BackendService resource to which the queried instance belongs.
#[prost(string, tag = "306946058")]
pub backend_service: ::prost::alloc::string::String,
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "112951123")]
pub resource_group_reference_resource: ::core::option::Option<
ResourceGroupReference,
>,
}
/// A request message for HealthChecks.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetHealthCheckRequest {
/// Name of the HealthCheck resource to return.
#[prost(string, tag = "308876645")]
pub health_check: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for RegionBackendServices.GetHealth. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetHealthRegionBackendServiceRequest {
/// Name of the BackendService resource for which to get health.
#[prost(string, tag = "306946058")]
pub backend_service: ::prost::alloc::string::String,
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "112951123")]
pub resource_group_reference_resource: ::core::option::Option<
ResourceGroupReference,
>,
}
/// A request message for TargetPools.GetHealth. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetHealthTargetPoolRequest {
/// The body resource for this request
#[prost(message, optional, tag = "292926060")]
pub instance_reference_resource: ::core::option::Option<InstanceReference>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the TargetPool resource to which the queried instance belongs.
#[prost(string, tag = "62796298")]
pub target_pool: ::prost::alloc::string::String,
}
/// A request message for BackendBuckets.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyBackendBucketRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for BackendServices.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyBackendServiceRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for Disks.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyDiskRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for FirewallPolicies.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyFirewallPolicyRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for Images.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyImageRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for Instances.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyInstanceRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InstanceTemplates.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyInstanceTemplateRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for InstantSnapshots.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyInstantSnapshotRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Licenses.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyLicenseRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for MachineImages.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyMachineImageRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for NetworkAttachments.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyNetworkAttachmentRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for NetworkFirewallPolicies.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyNetworkFirewallPolicyRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for NodeGroups.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyNodeGroupRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for NodeTemplates.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyNodeTemplateRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for RegionBackendServices.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyRegionBackendServiceRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for RegionDisks.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyRegionDiskRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for RegionInstantSnapshots.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyRegionInstantSnapshotRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for RegionNetworkFirewallPolicies.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyRegionNetworkFirewallPolicyRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for Reservations.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyReservationRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for ResourcePolicies.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyResourcePolicyRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for ServiceAttachments.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicyServiceAttachmentRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for Snapshots.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicySnapshotRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for Subnetworks.GetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetIamPolicySubnetworkRequest {
/// Requested IAM Policy version.
#[prost(int32, optional, tag = "499220029")]
pub options_requested_policy_version: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for ImageFamilyViews.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetImageFamilyViewRequest {
/// Name of the image family to search for.
#[prost(string, tag = "328751972")]
pub family: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Images.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetImageRequest {
/// Name of the image resource to return.
#[prost(string, tag = "100313435")]
pub image: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for InstanceGroupManagers.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetInstanceGroupManagerRequest {
/// The name of the managed instance group.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the zone where the managed instance group is located.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InstanceGroups.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetInstanceGroupRequest {
/// The name of the instance group.
#[prost(string, tag = "81095253")]
pub instance_group: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the zone where the instance group is located.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Instances.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetInstanceRequest {
/// Name of the instance resource to return.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InstanceTemplates.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetInstanceTemplateRequest {
/// The name of the instance template.
#[prost(string, tag = "309248228")]
pub instance_template: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for InstantSnapshots.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetInstantSnapshotRequest {
/// Name of the InstantSnapshot resource to return.
#[prost(string, tag = "391638626")]
pub instant_snapshot: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InterconnectAttachments.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetInterconnectAttachmentRequest {
/// Name of the interconnect attachment to return.
#[prost(string, tag = "308135284")]
pub interconnect_attachment: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for InterconnectLocations.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetInterconnectLocationRequest {
/// Name of the interconnect location to return.
#[prost(string, tag = "492235846")]
pub interconnect_location: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for InterconnectRemoteLocations.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetInterconnectRemoteLocationRequest {
/// Name of the interconnect remote location to return.
#[prost(string, tag = "290153949")]
pub interconnect_remote_location: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for Interconnects.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetInterconnectRequest {
/// Name of the interconnect to return.
#[prost(string, tag = "224601230")]
pub interconnect: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for LicenseCodes.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetLicenseCodeRequest {
/// Number corresponding to the License code resource to return.
#[prost(string, tag = "1467179")]
pub license_code: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for Licenses.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetLicenseRequest {
/// Name of the License resource to return.
#[prost(string, tag = "166757441")]
pub license: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for MachineImages.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMachineImageRequest {
/// The name of the machine image.
#[prost(string, tag = "69189475")]
pub machine_image: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for MachineTypes.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMachineTypeRequest {
/// Name of the machine type to return.
#[prost(string, tag = "227711026")]
pub machine_type: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Interconnects.GetMacsecConfig. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMacsecConfigInterconnectRequest {
/// Name of the interconnect resource to query.
#[prost(string, tag = "224601230")]
pub interconnect: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for Routers.GetNatIpInfo. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetNatIpInfoRouterRequest {
/// Name of the nat service to filter the NAT IP information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035.
#[prost(string, optional, tag = "425596649")]
pub nat_name: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the Router resource to query for Nat IP information. The name should conform to RFC1035.
#[prost(string, tag = "148608841")]
pub router: ::prost::alloc::string::String,
}
/// A request message for Routers.GetNatMappingInfo. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetNatMappingInfoRoutersRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Name of the nat service to filter the Nat Mapping information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035.
#[prost(string, optional, tag = "425596649")]
pub nat_name: ::core::option::Option<::prost::alloc::string::String>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// Name of the Router resource to query for Nat Mapping information of VM endpoints.
#[prost(string, tag = "148608841")]
pub router: ::prost::alloc::string::String,
}
/// A request message for NetworkAttachments.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetNetworkAttachmentRequest {
/// Name of the NetworkAttachment resource to return.
#[prost(string, tag = "224644052")]
pub network_attachment: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region of this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for NetworkEdgeSecurityServices.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetNetworkEdgeSecurityServiceRequest {
/// Name of the network edge security service to get.
#[prost(string, tag = "157011879")]
pub network_edge_security_service: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for NetworkEndpointGroups.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetNetworkEndpointGroupRequest {
/// The name of the network endpoint group. It should comply with RFC1035.
#[prost(string, tag = "433907078")]
pub network_endpoint_group: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the zone where the network endpoint group is located. It should comply with RFC1035.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for NetworkFirewallPolicies.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetNetworkFirewallPolicyRequest {
/// Name of the firewall policy to get.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for Networks.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetNetworkRequest {
/// Name of the network to return.
#[prost(string, tag = "232872494")]
pub network: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for NodeGroups.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetNodeGroupRequest {
/// Name of the node group to return.
#[prost(string, tag = "469958146")]
pub node_group: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for NodeTemplates.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetNodeTemplateRequest {
/// Name of the node template to return.
#[prost(string, tag = "323154455")]
pub node_template: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for NodeTypes.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetNodeTypeRequest {
/// Name of the node type to return.
#[prost(string, tag = "465832791")]
pub node_type: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for PacketMirrorings.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetPacketMirroringRequest {
/// Name of the PacketMirroring resource to return.
#[prost(string, tag = "22305996")]
pub packet_mirroring: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for Projects.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetProjectRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for PublicAdvertisedPrefixes.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetPublicAdvertisedPrefixeRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the PublicAdvertisedPrefix resource to return.
#[prost(string, tag = "101874590")]
pub public_advertised_prefix: ::prost::alloc::string::String,
}
/// A request message for PublicDelegatedPrefixes.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetPublicDelegatedPrefixeRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the PublicDelegatedPrefix resource to return.
#[prost(string, tag = "204238440")]
pub public_delegated_prefix: ::prost::alloc::string::String,
/// Name of the region of this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for RegionAutoscalers.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionAutoscalerRequest {
/// Name of the autoscaler to return.
#[prost(string, tag = "517258967")]
pub autoscaler: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for RegionBackendServices.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionBackendServiceRequest {
/// Name of the BackendService resource to return.
#[prost(string, tag = "306946058")]
pub backend_service: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for RegionCommitments.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionCommitmentRequest {
/// Name of the commitment to return.
#[prost(string, tag = "482134805")]
pub commitment: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for RegionDisks.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionDiskRequest {
/// Name of the regional persistent disk to return.
#[prost(string, tag = "3083677")]
pub disk: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for RegionDiskTypes.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionDiskTypeRequest {
/// Name of the disk type to return.
#[prost(string, tag = "93009052")]
pub disk_type: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for RegionHealthChecks.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionHealthCheckRequest {
/// Name of the HealthCheck resource to return.
#[prost(string, tag = "308876645")]
pub health_check: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for RegionHealthCheckServices.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionHealthCheckServiceRequest {
/// Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with RFC1035.
#[prost(string, tag = "408374747")]
pub health_check_service: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for RegionInstanceGroupManagers.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionInstanceGroupManagerRequest {
/// Name of the managed instance group to return.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for RegionInstanceGroups.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionInstanceGroupRequest {
/// Name of the instance group resource to return.
#[prost(string, tag = "81095253")]
pub instance_group: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for RegionInstanceTemplates.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionInstanceTemplateRequest {
/// The name of the instance template.
#[prost(string, tag = "309248228")]
pub instance_template: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for RegionInstantSnapshots.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionInstantSnapshotRequest {
/// Name of the InstantSnapshot resource to return.
#[prost(string, tag = "391638626")]
pub instant_snapshot: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for RegionNetworkEndpointGroups.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionNetworkEndpointGroupRequest {
/// The name of the network endpoint group. It should comply with RFC1035.
#[prost(string, tag = "433907078")]
pub network_endpoint_group: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region where the network endpoint group is located. It should comply with RFC1035.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for RegionNetworkFirewallPolicies.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionNetworkFirewallPolicyRequest {
/// Name of the firewall policy to get.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for RegionNotificationEndpoints.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionNotificationEndpointRequest {
/// Name of the NotificationEndpoint resource to return.
#[prost(string, tag = "376807017")]
pub notification_endpoint: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for RegionOperations.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionOperationRequest {
/// Name of the Operations resource to return.
#[prost(string, tag = "52090215")]
pub operation: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for Regions.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region resource to return.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for RegionSecurityPolicies.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionSecurityPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the security policy to get.
#[prost(string, tag = "171082513")]
pub security_policy: ::prost::alloc::string::String,
}
/// A request message for RegionSslCertificates.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionSslCertificateRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the SslCertificate resource to return.
#[prost(string, tag = "46443492")]
pub ssl_certificate: ::prost::alloc::string::String,
}
/// A request message for RegionSslPolicies.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionSslPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035.
#[prost(string, tag = "295190213")]
pub ssl_policy: ::prost::alloc::string::String,
}
/// A request message for RegionTargetHttpProxies.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionTargetHttpProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the TargetHttpProxy resource to return.
#[prost(string, tag = "206872421")]
pub target_http_proxy: ::prost::alloc::string::String,
}
/// A request message for RegionTargetHttpsProxies.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionTargetHttpsProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the TargetHttpsProxy resource to return.
#[prost(string, tag = "52336748")]
pub target_https_proxy: ::prost::alloc::string::String,
}
/// A request message for RegionTargetTcpProxies.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionTargetTcpProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the TargetTcpProxy resource to return.
#[prost(string, tag = "503065442")]
pub target_tcp_proxy: ::prost::alloc::string::String,
}
/// A request message for RegionUrlMaps.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRegionUrlMapRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the UrlMap resource to return.
#[prost(string, tag = "367020684")]
pub url_map: ::prost::alloc::string::String,
}
/// A request message for Reservations.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetReservationRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the reservation to retrieve.
#[prost(string, tag = "47530956")]
pub reservation: ::prost::alloc::string::String,
/// Name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for ResourcePolicies.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetResourcePolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the resource policy to retrieve.
#[prost(string, tag = "159240835")]
pub resource_policy: ::prost::alloc::string::String,
}
/// A request message for Routes.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRouteRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the Route resource to return.
#[prost(string, tag = "108704329")]
pub route: ::prost::alloc::string::String,
}
/// A request message for Routers.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRouterRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the Router resource to return.
#[prost(string, tag = "148608841")]
pub router: ::prost::alloc::string::String,
}
/// A request message for Routers.GetRouterStatus. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRouterStatusRouterRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the Router resource to query.
#[prost(string, tag = "148608841")]
pub router: ::prost::alloc::string::String,
}
/// A request message for FirewallPolicies.GetRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRuleFirewallPolicyRequest {
/// Name of the firewall policy to which the queried rule belongs.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The priority of the rule to get from the firewall policy.
#[prost(int32, optional, tag = "445151652")]
pub priority: ::core::option::Option<i32>,
}
/// A request message for NetworkFirewallPolicies.GetRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRuleNetworkFirewallPolicyRequest {
/// Name of the firewall policy to which the queried rule belongs.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The priority of the rule to get from the firewall policy.
#[prost(int32, optional, tag = "445151652")]
pub priority: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for RegionNetworkFirewallPolicies.GetRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRuleRegionNetworkFirewallPolicyRequest {
/// Name of the firewall policy to which the queried rule belongs.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The priority of the rule to get from the firewall policy.
#[prost(int32, optional, tag = "445151652")]
pub priority: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for RegionSecurityPolicies.GetRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRuleRegionSecurityPolicyRequest {
/// The priority of the rule to get from the security policy.
#[prost(int32, optional, tag = "445151652")]
pub priority: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the security policy to which the queried rule belongs.
#[prost(string, tag = "171082513")]
pub security_policy: ::prost::alloc::string::String,
}
/// A request message for SecurityPolicies.GetRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRuleSecurityPolicyRequest {
/// The priority of the rule to get from the security policy.
#[prost(int32, optional, tag = "445151652")]
pub priority: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the security policy to which the queried rule belongs.
#[prost(string, tag = "171082513")]
pub security_policy: ::prost::alloc::string::String,
}
/// A request message for Instances.GetScreenshot. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetScreenshotInstanceRequest {
/// Name of the instance scoping this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for SecurityPolicies.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSecurityPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the security policy to get.
#[prost(string, tag = "171082513")]
pub security_policy: ::prost::alloc::string::String,
}
/// A request message for Instances.GetSerialPortOutput. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSerialPortOutputInstanceRequest {
/// Name of the instance for this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Specifies which COM or serial port to retrieve data from.
#[prost(int32, optional, tag = "3446913")]
pub port: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.
#[prost(int64, optional, tag = "109757538")]
pub start: ::core::option::Option<i64>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for ServiceAttachments.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetServiceAttachmentRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region of this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the ServiceAttachment resource to return.
#[prost(string, tag = "338957549")]
pub service_attachment: ::prost::alloc::string::String,
}
/// A request message for Instances.GetShieldedInstanceIdentity. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetShieldedInstanceIdentityInstanceRequest {
/// Name or id of the instance scoping this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Snapshots.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSnapshotRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the Snapshot resource to return.
#[prost(string, tag = "284874180")]
pub snapshot: ::prost::alloc::string::String,
}
/// A request message for SnapshotSettingsService.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSnapshotSettingRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for SslCertificates.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSslCertificateRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the SslCertificate resource to return.
#[prost(string, tag = "46443492")]
pub ssl_certificate: ::prost::alloc::string::String,
}
/// A request message for SslPolicies.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSslPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035.
#[prost(string, tag = "295190213")]
pub ssl_policy: ::prost::alloc::string::String,
}
/// A request message for VpnGateways.GetStatus. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetStatusVpnGatewayRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the VPN gateway to return.
#[prost(string, tag = "406684153")]
pub vpn_gateway: ::prost::alloc::string::String,
}
/// A request message for Subnetworks.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSubnetworkRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the Subnetwork resource to return.
#[prost(string, tag = "307827694")]
pub subnetwork: ::prost::alloc::string::String,
}
/// A request message for TargetGrpcProxies.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTargetGrpcProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the TargetGrpcProxy resource to return.
#[prost(string, tag = "5020283")]
pub target_grpc_proxy: ::prost::alloc::string::String,
}
/// A request message for TargetHttpProxies.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTargetHttpProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the TargetHttpProxy resource to return.
#[prost(string, tag = "206872421")]
pub target_http_proxy: ::prost::alloc::string::String,
}
/// A request message for TargetHttpsProxies.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTargetHttpsProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the TargetHttpsProxy resource to return.
#[prost(string, tag = "52336748")]
pub target_https_proxy: ::prost::alloc::string::String,
}
/// A request message for TargetInstances.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTargetInstanceRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the TargetInstance resource to return.
#[prost(string, tag = "289769347")]
pub target_instance: ::prost::alloc::string::String,
/// Name of the zone scoping this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for TargetPools.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTargetPoolRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the TargetPool resource to return.
#[prost(string, tag = "62796298")]
pub target_pool: ::prost::alloc::string::String,
}
/// A request message for TargetSslProxies.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTargetSslProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the TargetSslProxy resource to return.
#[prost(string, tag = "338795853")]
pub target_ssl_proxy: ::prost::alloc::string::String,
}
/// A request message for TargetTcpProxies.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTargetTcpProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the TargetTcpProxy resource to return.
#[prost(string, tag = "503065442")]
pub target_tcp_proxy: ::prost::alloc::string::String,
}
/// A request message for TargetVpnGateways.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTargetVpnGatewayRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the target VPN gateway to return.
#[prost(string, tag = "532512843")]
pub target_vpn_gateway: ::prost::alloc::string::String,
}
/// A request message for UrlMaps.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetUrlMapRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the UrlMap resource to return.
#[prost(string, tag = "367020684")]
pub url_map: ::prost::alloc::string::String,
}
/// A request message for VpnGateways.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVpnGatewayRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the VPN gateway to return.
#[prost(string, tag = "406684153")]
pub vpn_gateway: ::prost::alloc::string::String,
}
/// A request message for VpnTunnels.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVpnTunnelRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the VpnTunnel resource to return.
#[prost(string, tag = "143821331")]
pub vpn_tunnel: ::prost::alloc::string::String,
}
/// A request message for Projects.GetXpnHost. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetXpnHostProjectRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for Projects.GetXpnResources. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetXpnResourcesProjectsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for ZoneOperations.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetZoneOperationRequest {
/// Name of the Operations resource to return.
#[prost(string, tag = "52090215")]
pub operation: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Zones.Get. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetZoneRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the zone resource to return.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GlobalAddressesMoveRequest {
/// An optional destination address description if intended to be different from the source.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the destination address to move to. This can be a full or partial URL. For example, the following are all valid URLs to a address: - <https://www.googleapis.com/compute/v1/projects/project> /global/addresses/address - projects/project/global/addresses/address Note that destination project must be different from the source project. So /global/addresses/address is not valid partial url.
#[prost(string, optional, tag = "371693763")]
pub destination_address: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GlobalNetworkEndpointGroupsAttachEndpointsRequest {
/// The list of network endpoints to be attached.
#[prost(message, repeated, tag = "149850285")]
pub network_endpoints: ::prost::alloc::vec::Vec<NetworkEndpoint>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GlobalNetworkEndpointGroupsDetachEndpointsRequest {
/// The list of network endpoints to be detached.
#[prost(message, repeated, tag = "149850285")]
pub network_endpoints: ::prost::alloc::vec::Vec<NetworkEndpoint>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GlobalOrganizationSetPolicyRequest {
/// Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.
#[prost(message, repeated, tag = "403251854")]
pub bindings: ::prost::alloc::vec::Vec<Binding>,
/// Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.
#[prost(string, optional, tag = "3123477")]
pub etag: ::core::option::Option<::prost::alloc::string::String>,
/// REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them.
#[prost(message, optional, tag = "91071794")]
pub policy: ::core::option::Option<Policy>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GlobalSetLabelsRequest {
/// The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash when updating or changing labels, otherwise the request will fail with error 412 conditionNotMet. Make a get() request to the resource to get the latest fingerprint.
#[prost(string, optional, tag = "178124825")]
pub label_fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// A list of labels to apply for this resource. Each label must comply with the requirements for labels. For example, "webserver-frontend": "images". A label value can also be empty (e.g. "my-label": "").
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GlobalSetPolicyRequest {
/// Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.
#[prost(message, repeated, tag = "403251854")]
pub bindings: ::prost::alloc::vec::Vec<Binding>,
/// Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.
#[prost(string, optional, tag = "3123477")]
pub etag: ::core::option::Option<::prost::alloc::string::String>,
/// REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them.
#[prost(message, optional, tag = "91071794")]
pub policy: ::core::option::Option<Policy>,
}
/// A guest attributes entry.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GuestAttributes {
/// \[Output Only\] Type of the resource. Always compute#guestAttributes for guest attributes entry.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').
#[prost(string, optional, tag = "368591164")]
pub query_path: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The value of the requested queried path.
#[prost(message, optional, tag = "157570874")]
pub query_value: ::core::option::Option<GuestAttributesValue>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// The key to search for.
#[prost(string, optional, tag = "164364828")]
pub variable_key: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The value found for the requested key.
#[prost(string, optional, tag = "124582382")]
pub variable_value: ::core::option::Option<::prost::alloc::string::String>,
}
/// A guest attributes namespace/key/value entry.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GuestAttributesEntry {
/// Key for the guest attribute entry.
#[prost(string, optional, tag = "106079")]
pub key: ::core::option::Option<::prost::alloc::string::String>,
/// Namespace for the guest attribute entry.
#[prost(string, optional, tag = "178476379")]
pub namespace: ::core::option::Option<::prost::alloc::string::String>,
/// Value for the guest attribute entry.
#[prost(string, optional, tag = "111972721")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
/// Array of guest attribute namespace/key/value tuples.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GuestAttributesValue {
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<GuestAttributesEntry>,
}
/// Guest OS features.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GuestOsFeature {
/// The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF For more information, see Enabling guest operating system features.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `GuestOsFeature`.
pub mod guest_os_feature {
/// The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF For more information, see Enabling guest operating system features.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
FeatureTypeUnspecified = 531767259,
Gvnic = 68209305,
Idpf = 2242641,
MultiIpSubnet = 151776719,
SecureBoot = 376811194,
SevCapable = 87083793,
SevLiveMigratable = 392039820,
SevLiveMigratableV2 = 168551983,
SevSnpCapable = 426919,
UefiCompatible = 195865408,
VirtioScsiMultiqueue = 201597069,
Windows = 456863331,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::FeatureTypeUnspecified => "FEATURE_TYPE_UNSPECIFIED",
Type::Gvnic => "GVNIC",
Type::Idpf => "IDPF",
Type::MultiIpSubnet => "MULTI_IP_SUBNET",
Type::SecureBoot => "SECURE_BOOT",
Type::SevCapable => "SEV_CAPABLE",
Type::SevLiveMigratable => "SEV_LIVE_MIGRATABLE",
Type::SevLiveMigratableV2 => "SEV_LIVE_MIGRATABLE_V2",
Type::SevSnpCapable => "SEV_SNP_CAPABLE",
Type::UefiCompatible => "UEFI_COMPATIBLE",
Type::VirtioScsiMultiqueue => "VIRTIO_SCSI_MULTIQUEUE",
Type::Windows => "WINDOWS",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"FEATURE_TYPE_UNSPECIFIED" => Some(Self::FeatureTypeUnspecified),
"GVNIC" => Some(Self::Gvnic),
"IDPF" => Some(Self::Idpf),
"MULTI_IP_SUBNET" => Some(Self::MultiIpSubnet),
"SECURE_BOOT" => Some(Self::SecureBoot),
"SEV_CAPABLE" => Some(Self::SevCapable),
"SEV_LIVE_MIGRATABLE" => Some(Self::SevLiveMigratable),
"SEV_LIVE_MIGRATABLE_V2" => Some(Self::SevLiveMigratableV2),
"SEV_SNP_CAPABLE" => Some(Self::SevSnpCapable),
"UEFI_COMPATIBLE" => Some(Self::UefiCompatible),
"VIRTIO_SCSI_MULTIQUEUE" => Some(Self::VirtioScsiMultiqueue),
"WINDOWS" => Some(Self::Windows),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Http2HealthCheck {
/// The value of the host header in the HTTP/2 health check request. If left empty (default value), the host header is set to the destination IP address to which health check packets are sent. The destination IP address depends on the type of load balancer. For details, see: <https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest>
#[prost(string, optional, tag = "3208616")]
pub host: ::core::option::Option<::prost::alloc::string::String>,
/// The TCP port number to which the health check prober sends packets. The default value is 443. Valid values are 1 through 65535.
#[prost(int32, optional, tag = "3446913")]
pub port: ::core::option::Option<i32>,
/// Not supported.
#[prost(string, optional, tag = "41534345")]
pub port_name: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports.
/// Check the PortSpecification enum for the list of possible values.
#[prost(string, optional, tag = "51590597")]
pub port_specification: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
/// Check the ProxyHeader enum for the list of possible values.
#[prost(string, optional, tag = "160374142")]
pub proxy_header: ::core::option::Option<::prost::alloc::string::String>,
/// The request path of the HTTP/2 health check request. The default value is /.
#[prost(string, optional, tag = "229403605")]
pub request_path: ::core::option::Option<::prost::alloc::string::String>,
/// Creates a content-based HTTP/2 health check. In addition to the required HTTP 200 (OK) status code, you can configure the health check to pass only when the backend sends this specific ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: <https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http>
#[prost(string, optional, tag = "196547649")]
pub response: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `HTTP2HealthCheck`.
pub mod http2_health_check {
/// Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum PortSpecification {
/// A value indicating that the enum field is not set.
UndefinedPortSpecification = 0,
/// The port number in the health check's port is used for health checking. Applies to network endpoint group and instance group backends.
UseFixedPort = 190235748,
/// Not supported.
UseNamedPort = 349300671,
/// For network endpoint group backends, the health check uses the port number specified on each endpoint in the network endpoint group. For instance group backends, the health check uses the port number specified for the backend service's named port defined in the instance group's named ports.
UseServingPort = 362637516,
}
impl PortSpecification {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
PortSpecification::UndefinedPortSpecification => {
"UNDEFINED_PORT_SPECIFICATION"
}
PortSpecification::UseFixedPort => "USE_FIXED_PORT",
PortSpecification::UseNamedPort => "USE_NAMED_PORT",
PortSpecification::UseServingPort => "USE_SERVING_PORT",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PORT_SPECIFICATION" => Some(Self::UndefinedPortSpecification),
"USE_FIXED_PORT" => Some(Self::UseFixedPort),
"USE_NAMED_PORT" => Some(Self::UseNamedPort),
"USE_SERVING_PORT" => Some(Self::UseServingPort),
_ => None,
}
}
}
/// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ProxyHeader {
/// A value indicating that the enum field is not set.
UndefinedProxyHeader = 0,
None = 2402104,
ProxyV1 = 334352940,
}
impl ProxyHeader {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ProxyHeader::UndefinedProxyHeader => "UNDEFINED_PROXY_HEADER",
ProxyHeader::None => "NONE",
ProxyHeader::ProxyV1 => "PROXY_V1",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PROXY_HEADER" => Some(Self::UndefinedProxyHeader),
"NONE" => Some(Self::None),
"PROXY_V1" => Some(Self::ProxyV1),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HttpHealthCheck {
/// The value of the host header in the HTTP health check request. If left empty (default value), the host header is set to the destination IP address to which health check packets are sent. The destination IP address depends on the type of load balancer. For details, see: <https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest>
#[prost(string, optional, tag = "3208616")]
pub host: ::core::option::Option<::prost::alloc::string::String>,
/// The TCP port number to which the health check prober sends packets. The default value is 80. Valid values are 1 through 65535.
#[prost(int32, optional, tag = "3446913")]
pub port: ::core::option::Option<i32>,
/// Not supported.
#[prost(string, optional, tag = "41534345")]
pub port_name: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Also supported in legacy HTTP health checks for target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports.
/// Check the PortSpecification enum for the list of possible values.
#[prost(string, optional, tag = "51590597")]
pub port_specification: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
/// Check the ProxyHeader enum for the list of possible values.
#[prost(string, optional, tag = "160374142")]
pub proxy_header: ::core::option::Option<::prost::alloc::string::String>,
/// The request path of the HTTP health check request. The default value is /.
#[prost(string, optional, tag = "229403605")]
pub request_path: ::core::option::Option<::prost::alloc::string::String>,
/// Creates a content-based HTTP health check. In addition to the required HTTP 200 (OK) status code, you can configure the health check to pass only when the backend sends this specific ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: <https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http>
#[prost(string, optional, tag = "196547649")]
pub response: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `HTTPHealthCheck`.
pub mod http_health_check {
/// Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Also supported in legacy HTTP health checks for target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum PortSpecification {
/// A value indicating that the enum field is not set.
UndefinedPortSpecification = 0,
/// The port number in the health check's port is used for health checking. Applies to network endpoint group and instance group backends.
UseFixedPort = 190235748,
/// Not supported.
UseNamedPort = 349300671,
/// For network endpoint group backends, the health check uses the port number specified on each endpoint in the network endpoint group. For instance group backends, the health check uses the port number specified for the backend service's named port defined in the instance group's named ports.
UseServingPort = 362637516,
}
impl PortSpecification {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
PortSpecification::UndefinedPortSpecification => {
"UNDEFINED_PORT_SPECIFICATION"
}
PortSpecification::UseFixedPort => "USE_FIXED_PORT",
PortSpecification::UseNamedPort => "USE_NAMED_PORT",
PortSpecification::UseServingPort => "USE_SERVING_PORT",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PORT_SPECIFICATION" => Some(Self::UndefinedPortSpecification),
"USE_FIXED_PORT" => Some(Self::UseFixedPort),
"USE_NAMED_PORT" => Some(Self::UseNamedPort),
"USE_SERVING_PORT" => Some(Self::UseServingPort),
_ => None,
}
}
}
/// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ProxyHeader {
/// A value indicating that the enum field is not set.
UndefinedProxyHeader = 0,
None = 2402104,
ProxyV1 = 334352940,
}
impl ProxyHeader {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ProxyHeader::UndefinedProxyHeader => "UNDEFINED_PROXY_HEADER",
ProxyHeader::None => "NONE",
ProxyHeader::ProxyV1 => "PROXY_V1",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PROXY_HEADER" => Some(Self::UndefinedProxyHeader),
"NONE" => Some(Self::None),
"PROXY_V1" => Some(Self::ProxyV1),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HttpsHealthCheck {
/// The value of the host header in the HTTPS health check request. If left empty (default value), the host header is set to the destination IP address to which health check packets are sent. The destination IP address depends on the type of load balancer. For details, see: <https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest>
#[prost(string, optional, tag = "3208616")]
pub host: ::core::option::Option<::prost::alloc::string::String>,
/// The TCP port number to which the health check prober sends packets. The default value is 443. Valid values are 1 through 65535.
#[prost(int32, optional, tag = "3446913")]
pub port: ::core::option::Option<i32>,
/// Not supported.
#[prost(string, optional, tag = "41534345")]
pub port_name: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports.
/// Check the PortSpecification enum for the list of possible values.
#[prost(string, optional, tag = "51590597")]
pub port_specification: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
/// Check the ProxyHeader enum for the list of possible values.
#[prost(string, optional, tag = "160374142")]
pub proxy_header: ::core::option::Option<::prost::alloc::string::String>,
/// The request path of the HTTPS health check request. The default value is /.
#[prost(string, optional, tag = "229403605")]
pub request_path: ::core::option::Option<::prost::alloc::string::String>,
/// Creates a content-based HTTPS health check. In addition to the required HTTP 200 (OK) status code, you can configure the health check to pass only when the backend sends this specific ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: <https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http>
#[prost(string, optional, tag = "196547649")]
pub response: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `HTTPSHealthCheck`.
pub mod https_health_check {
/// Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum PortSpecification {
/// A value indicating that the enum field is not set.
UndefinedPortSpecification = 0,
/// The port number in the health check's port is used for health checking. Applies to network endpoint group and instance group backends.
UseFixedPort = 190235748,
/// Not supported.
UseNamedPort = 349300671,
/// For network endpoint group backends, the health check uses the port number specified on each endpoint in the network endpoint group. For instance group backends, the health check uses the port number specified for the backend service's named port defined in the instance group's named ports.
UseServingPort = 362637516,
}
impl PortSpecification {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
PortSpecification::UndefinedPortSpecification => {
"UNDEFINED_PORT_SPECIFICATION"
}
PortSpecification::UseFixedPort => "USE_FIXED_PORT",
PortSpecification::UseNamedPort => "USE_NAMED_PORT",
PortSpecification::UseServingPort => "USE_SERVING_PORT",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PORT_SPECIFICATION" => Some(Self::UndefinedPortSpecification),
"USE_FIXED_PORT" => Some(Self::UseFixedPort),
"USE_NAMED_PORT" => Some(Self::UseNamedPort),
"USE_SERVING_PORT" => Some(Self::UseServingPort),
_ => None,
}
}
}
/// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ProxyHeader {
/// A value indicating that the enum field is not set.
UndefinedProxyHeader = 0,
None = 2402104,
ProxyV1 = 334352940,
}
impl ProxyHeader {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ProxyHeader::UndefinedProxyHeader => "UNDEFINED_PROXY_HEADER",
ProxyHeader::None => "NONE",
ProxyHeader::ProxyV1 => "PROXY_V1",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PROXY_HEADER" => Some(Self::UndefinedProxyHeader),
"NONE" => Some(Self::None),
"PROXY_V1" => Some(Self::ProxyV1),
_ => None,
}
}
}
}
/// Represents a health check resource. Google Compute Engine has two health check resources: * [Regional](/compute/docs/reference/rest/v1/regionHealthChecks) * [Global](/compute/docs/reference/rest/v1/healthChecks) These health check resources can be used for load balancing and for autohealing VMs in a managed instance group (MIG). **Load balancing** Health check requirements vary depending on the type of load balancer. For details about the type of health check supported for each load balancer and corresponding backend type, see Health checks overview: Load balancer guide. **Autohealing in MIGs** The health checks that you use for autohealing VMs in a MIG can be either regional or global. For more information, see Set up an application health check and autohealing. For more information, see Health checks overview.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HealthCheck {
/// How often (in seconds) to send a health check. The default value is 5 seconds.
#[prost(int32, optional, tag = "345561006")]
pub check_interval_sec: ::core::option::Option<i32>,
/// \[Output Only\] Creation timestamp in 3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "85529574")]
pub grpc_health_check: ::core::option::Option<GrpcHealthCheck>,
/// A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
#[prost(int32, optional, tag = "403212361")]
pub healthy_threshold: ::core::option::Option<i32>,
#[prost(message, optional, tag = "11360986")]
pub http2_health_check: ::core::option::Option<Http2HealthCheck>,
#[prost(message, optional, tag = "412586940")]
pub http_health_check: ::core::option::Option<HttpHealthCheck>,
#[prost(message, optional, tag = "436046905")]
pub https_health_check: ::core::option::Option<HttpsHealthCheck>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// Type of the resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Configure logging on this health check.
#[prost(message, optional, tag = "351299741")]
pub log_config: ::core::option::Option<HealthCheckLogConfig>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. For example, a name that is 1-63 characters long, matches the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?`, and otherwise complies with RFC1035. This regular expression describes a name where the first character is a lowercase letter, and all following characters are a dash, lowercase letter, or digit, except the last character, which isn't a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Region where the health check resides. Not applicable to global health checks.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "280032440")]
pub ssl_health_check: ::core::option::Option<SslHealthCheck>,
#[prost(message, optional, tag = "469980419")]
pub tcp_health_check: ::core::option::Option<TcpHealthCheck>,
/// How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
#[prost(int32, optional, tag = "79994995")]
pub timeout_sec: ::core::option::Option<i32>,
/// Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC. Exactly one of the protocol-specific health check fields must be specified, which must match type field.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
/// A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
#[prost(int32, optional, tag = "227958480")]
pub unhealthy_threshold: ::core::option::Option<i32>,
}
/// Nested message and enum types in `HealthCheck`.
pub mod health_check {
/// Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC. Exactly one of the protocol-specific health check fields must be specified, which must match type field.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
Grpc = 2196510,
Http = 2228360,
Http2 = 69079210,
Https = 69079243,
Invalid = 530283991,
Ssl = 82412,
Tcp = 82881,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::Grpc => "GRPC",
Type::Http => "HTTP",
Type::Http2 => "HTTP2",
Type::Https => "HTTPS",
Type::Invalid => "INVALID",
Type::Ssl => "SSL",
Type::Tcp => "TCP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"GRPC" => Some(Self::Grpc),
"HTTP" => Some(Self::Http),
"HTTP2" => Some(Self::Http2),
"HTTPS" => Some(Self::Https),
"INVALID" => Some(Self::Invalid),
"SSL" => Some(Self::Ssl),
"TCP" => Some(Self::Tcp),
_ => None,
}
}
}
}
/// Contains a list of HealthCheck resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HealthCheckList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of HealthCheck resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<HealthCheck>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Configuration of logging on a health check. If logging is enabled, logs will be exported to Stackdriver.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HealthCheckLogConfig {
/// Indicates whether or not to export logs. This is false by default, which means no health check logging will be done.
#[prost(bool, optional, tag = "311764355")]
pub enable: ::core::option::Option<bool>,
}
/// A full or valid partial URL to a health check. For example, the following are valid URLs: - <https://www.googleapis.com/compute/beta/projects/project-id/global/httpHealthChecks/health-check> - projects/project-id/global/httpHealthChecks/health-check - global/httpHealthChecks/health-check
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HealthCheckReference {
#[prost(string, optional, tag = "308876645")]
pub health_check: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a Health-Check as a Service resource.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HealthCheckService {
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a HealthCheckService. An up-to-date fingerprint must be provided in order to patch/update the HealthCheckService; Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the HealthCheckService.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// A list of URLs to the HealthCheck resources. Must have at least one HealthCheck, and not more than 10 for regional HealthCheckService, and not more than 1 for global HealthCheckService. HealthCheck resources must have portSpecification=USE_SERVING_PORT or portSpecification=USE_FIXED_PORT. For regional HealthCheckService, the HealthCheck must be regional and in the same region. For global HealthCheckService, HealthCheck must be global. Mix of regional and global HealthChecks is not supported. Multiple regional HealthChecks must belong to the same region. Regional HealthChecks must belong to the same region as zones of NetworkEndpointGroups. For global HealthCheckService using global INTERNET_IP_PORT NetworkEndpointGroups, the global HealthChecks must specify sourceRegions, and HealthChecks that specify sourceRegions can only be used with global INTERNET_IP_PORT NetworkEndpointGroups.
#[prost(string, repeated, tag = "448370606")]
pub health_checks: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Optional. Policy for how the results from multiple health checks for the same endpoint are aggregated. Defaults to NO_AGGREGATION if unspecified. - NO_AGGREGATION. An EndpointHealth message is returned for each pair in the health check service. - AND. If any health check of an endpoint reports UNHEALTHY, then UNHEALTHY is the HealthState of the endpoint. If all health checks report HEALTHY, the HealthState of the endpoint is HEALTHY. . This is only allowed with regional HealthCheckService.
/// Check the HealthStatusAggregationPolicy enum for the list of possible values.
#[prost(string, optional, tag = "253163129")]
pub health_status_aggregation_policy: ::core::option::Option<
::prost::alloc::string::String,
>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output only\] Type of the resource. Always compute#healthCheckServicefor health check services.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// A list of URLs to the NetworkEndpointGroup resources. Must not have more than 100. For regional HealthCheckService, NEGs must be in zones in the region of the HealthCheckService. For global HealthCheckServices, the NetworkEndpointGroups must be global INTERNET_IP_PORT.
#[prost(string, repeated, tag = "29346733")]
pub network_endpoint_groups: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// A list of URLs to the NotificationEndpoint resources. Must not have more than 10. A list of endpoints for receiving notifications of change in health status. For regional HealthCheckService, NotificationEndpoint must be regional and in the same region. For global HealthCheckService, NotificationEndpoint must be global.
#[prost(string, repeated, tag = "406728490")]
pub notification_endpoints: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] URL of the region where the health check service resides. This field is not applicable to global health check services. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `HealthCheckService`.
pub mod health_check_service {
/// Optional. Policy for how the results from multiple health checks for the same endpoint are aggregated. Defaults to NO_AGGREGATION if unspecified. - NO_AGGREGATION. An EndpointHealth message is returned for each pair in the health check service. - AND. If any health check of an endpoint reports UNHEALTHY, then UNHEALTHY is the HealthState of the endpoint. If all health checks report HEALTHY, the HealthState of the endpoint is HEALTHY. . This is only allowed with regional HealthCheckService.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum HealthStatusAggregationPolicy {
/// A value indicating that the enum field is not set.
UndefinedHealthStatusAggregationPolicy = 0,
/// If any backend's health check reports UNHEALTHY, then UNHEALTHY is the HealthState of the entire health check service. If all backend's are healthy, the HealthState of the health check service is HEALTHY.
And = 64951,
/// An EndpointHealth message is returned for each backend in the health check service.
NoAggregation = 426445124,
}
impl HealthStatusAggregationPolicy {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
HealthStatusAggregationPolicy::UndefinedHealthStatusAggregationPolicy => {
"UNDEFINED_HEALTH_STATUS_AGGREGATION_POLICY"
}
HealthStatusAggregationPolicy::And => "AND",
HealthStatusAggregationPolicy::NoAggregation => "NO_AGGREGATION",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_HEALTH_STATUS_AGGREGATION_POLICY" => {
Some(Self::UndefinedHealthStatusAggregationPolicy)
}
"AND" => Some(Self::And),
"NO_AGGREGATION" => Some(Self::NoAggregation),
_ => None,
}
}
}
}
/// A full or valid partial URL to a health check service. For example, the following are valid URLs: - <https://www.googleapis.com/compute/beta/projects/project-id/regions/us-west1/healthCheckServices/health-check-service> - projects/project-id/regions/us-west1/healthCheckServices/health-check-service - regions/us-west1/healthCheckServices/health-check-service
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HealthCheckServiceReference {
#[prost(string, optional, tag = "408374747")]
pub health_check_service: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HealthCheckServicesList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of HealthCheckService resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<HealthCheckService>,
/// \[Output Only\] Type of the resource. Always compute#healthCheckServicesList for lists of HealthCheckServices.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HealthChecksAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of HealthChecksScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
HealthChecksScopedList,
>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HealthChecksScopedList {
/// A list of HealthChecks contained in this scope.
#[prost(message, repeated, tag = "448370606")]
pub health_checks: ::prost::alloc::vec::Vec<HealthCheck>,
/// Informational warning which replaces the list of backend services when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HealthStatus {
/// Metadata defined as annotations for network endpoint.
#[prost(btree_map = "string, string", tag = "112032548")]
pub annotations: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// URL of the forwarding rule associated with the health status of the instance.
#[prost(string, optional, tag = "269964030")]
pub forwarding_rule: ::core::option::Option<::prost::alloc::string::String>,
/// A forwarding rule IP address assigned to this instance.
#[prost(string, optional, tag = "172250632")]
pub forwarding_rule_ip: ::core::option::Option<::prost::alloc::string::String>,
/// Health state of the IPv4 address of the instance.
/// Check the HealthState enum for the list of possible values.
#[prost(string, optional, tag = "324007150")]
pub health_state: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the instance resource.
#[prost(string, optional, tag = "18257045")]
pub instance: ::core::option::Option<::prost::alloc::string::String>,
/// For target pool based Network Load Balancing, it indicates the forwarding rule's IP address assigned to this instance. For other types of load balancing, the field indicates VM internal ip.
#[prost(string, optional, tag = "406272220")]
pub ip_address: ::core::option::Option<::prost::alloc::string::String>,
/// The named port of the instance group, not necessarily the port that is health-checked.
#[prost(int32, optional, tag = "3446913")]
pub port: ::core::option::Option<i32>,
#[prost(string, optional, tag = "282149496")]
pub weight: ::core::option::Option<::prost::alloc::string::String>,
///
/// Check the WeightError enum for the list of possible values.
#[prost(string, optional, tag = "522501505")]
pub weight_error: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `HealthStatus`.
pub mod health_status {
/// Health state of the IPv4 address of the instance.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum HealthState {
/// A value indicating that the enum field is not set.
UndefinedHealthState = 0,
Healthy = 439801213,
Unhealthy = 462118084,
}
impl HealthState {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
HealthState::UndefinedHealthState => "UNDEFINED_HEALTH_STATE",
HealthState::Healthy => "HEALTHY",
HealthState::Unhealthy => "UNHEALTHY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_HEALTH_STATE" => Some(Self::UndefinedHealthState),
"HEALTHY" => Some(Self::Healthy),
"UNHEALTHY" => Some(Self::Unhealthy),
_ => None,
}
}
}
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum WeightError {
/// A value indicating that the enum field is not set.
UndefinedWeightError = 0,
/// The response to a Health Check probe had the HTTP response header field X-Load-Balancing-Endpoint-Weight, but its content was invalid (i.e., not a non-negative single-precision floating-point number in decimal string representation).
InvalidWeight = 383698400,
/// The response to a Health Check probe did not have the HTTP response header field X-Load-Balancing-Endpoint-Weight.
MissingWeight = 384027537,
/// This is the value when the accompanied health status is either TIMEOUT (i.e.,the Health Check probe was not able to get a response in time) or UNKNOWN. For the latter, it should be typically because there has not been sufficient time to parse and report the weight for a new backend (which is with 0.0.0.0 ip address). However, it can be also due to an outage case for which the health status is explicitly reset to UNKNOWN.
UnavailableWeight = 439464295,
/// This is the default value when WeightReportMode is DISABLE, and is also the initial value when WeightReportMode has just updated to ENABLE or DRY_RUN and there has not been sufficient time to parse and report the backend weight.
WeightNone = 502428831,
}
impl WeightError {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
WeightError::UndefinedWeightError => "UNDEFINED_WEIGHT_ERROR",
WeightError::InvalidWeight => "INVALID_WEIGHT",
WeightError::MissingWeight => "MISSING_WEIGHT",
WeightError::UnavailableWeight => "UNAVAILABLE_WEIGHT",
WeightError::WeightNone => "WEIGHT_NONE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_WEIGHT_ERROR" => Some(Self::UndefinedWeightError),
"INVALID_WEIGHT" => Some(Self::InvalidWeight),
"MISSING_WEIGHT" => Some(Self::MissingWeight),
"UNAVAILABLE_WEIGHT" => Some(Self::UnavailableWeight),
"WEIGHT_NONE" => Some(Self::WeightNone),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HealthStatusForNetworkEndpoint {
/// URL of the backend service associated with the health state of the network endpoint.
#[prost(message, optional, tag = "306946058")]
pub backend_service: ::core::option::Option<BackendServiceReference>,
/// URL of the forwarding rule associated with the health state of the network endpoint.
#[prost(message, optional, tag = "269964030")]
pub forwarding_rule: ::core::option::Option<ForwardingRuleReference>,
/// URL of the health check associated with the health state of the network endpoint.
#[prost(message, optional, tag = "308876645")]
pub health_check: ::core::option::Option<HealthCheckReference>,
/// URL of the health check service associated with the health state of the network endpoint.
#[prost(message, optional, tag = "408374747")]
pub health_check_service: ::core::option::Option<HealthCheckServiceReference>,
/// Health state of the network endpoint determined based on the health checks configured.
/// Check the HealthState enum for the list of possible values.
#[prost(string, optional, tag = "324007150")]
pub health_state: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `HealthStatusForNetworkEndpoint`.
pub mod health_status_for_network_endpoint {
/// Health state of the network endpoint determined based on the health checks configured.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum HealthState {
/// A value indicating that the enum field is not set.
UndefinedHealthState = 0,
/// Endpoint is being drained.
Draining = 480455402,
/// Endpoint is healthy.
Healthy = 439801213,
/// Endpoint is unhealthy.
Unhealthy = 462118084,
/// Health status of the endpoint is unknown.
Unknown = 433141802,
}
impl HealthState {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
HealthState::UndefinedHealthState => "UNDEFINED_HEALTH_STATE",
HealthState::Draining => "DRAINING",
HealthState::Healthy => "HEALTHY",
HealthState::Unhealthy => "UNHEALTHY",
HealthState::Unknown => "UNKNOWN",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_HEALTH_STATE" => Some(Self::UndefinedHealthState),
"DRAINING" => Some(Self::Draining),
"HEALTHY" => Some(Self::Healthy),
"UNHEALTHY" => Some(Self::Unhealthy),
"UNKNOWN" => Some(Self::Unknown),
_ => None,
}
}
}
}
/// Provides links to documentation or for performing an out of band action. For example, if a quota check failed with an error indicating the calling project hasn't enabled the accessed service, this can contain a URL pointing directly to the right place in the developer console to flip the bit.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Help {
/// URL(s) pointing to additional information on handling the current error.
#[prost(message, repeated, tag = "102977465")]
pub links: ::prost::alloc::vec::Vec<HelpLink>,
}
/// Describes a URL link.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HelpLink {
/// Describes what the link offers.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the link.
#[prost(string, optional, tag = "116079")]
pub url: ::core::option::Option<::prost::alloc::string::String>,
}
/// UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HostRule {
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of (\[a-z0-9-.\]*). In that case, * must be the first character, and if followed by anything, the immediate following character must be either - or .. * based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
#[prost(string, repeated, tag = "99467211")]
pub hosts: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.
#[prost(string, optional, tag = "337813272")]
pub path_matcher: ::core::option::Option<::prost::alloc::string::String>,
}
/// Specification for how requests are aborted as part of fault injection.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HttpFaultAbort {
/// The HTTP status code used to abort the request. The value must be from 200 to 599 inclusive. For gRPC protocol, the gRPC status code is mapped to HTTP status code according to this mapping table. HTTP status 200 is mapped to gRPC status UNKNOWN. Injecting an OK status is currently not supported by Traffic Director.
#[prost(uint32, optional, tag = "468949897")]
pub http_status: ::core::option::Option<u32>,
/// The percentage of traffic for connections, operations, or requests that is aborted as part of fault injection. The value must be from 0.0 to 100.0 inclusive.
#[prost(double, optional, tag = "151909018")]
pub percentage: ::core::option::Option<f64>,
}
/// Specifies the delay introduced by the load balancer before forwarding the request to the backend service as part of fault injection.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HttpFaultDelay {
/// Specifies the value of the fixed delay interval.
#[prost(message, optional, tag = "317037816")]
pub fixed_delay: ::core::option::Option<Duration>,
/// The percentage of traffic for connections, operations, or requests for which a delay is introduced as part of fault injection. The value must be from 0.0 to 100.0 inclusive.
#[prost(double, optional, tag = "151909018")]
pub percentage: ::core::option::Option<f64>,
}
/// The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by the load balancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the load balancer for a percentage of requests.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HttpFaultInjection {
/// The specification for how client requests are aborted as part of fault injection.
#[prost(message, optional, tag = "92611376")]
pub abort: ::core::option::Option<HttpFaultAbort>,
/// The specification for how client requests are delayed as part of fault injection, before being sent to a backend service.
#[prost(message, optional, tag = "95467907")]
pub delay: ::core::option::Option<HttpFaultDelay>,
}
/// The request and response header transformations that take effect before the request is passed along to the selected backendService.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HttpHeaderAction {
/// Headers to add to a matching request before forwarding the request to the backendService.
#[prost(message, repeated, tag = "72111974")]
pub request_headers_to_add: ::prost::alloc::vec::Vec<HttpHeaderOption>,
/// A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
#[prost(string, repeated, tag = "218425247")]
pub request_headers_to_remove: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// Headers to add the response before sending the response back to the client.
#[prost(message, repeated, tag = "32136052")]
pub response_headers_to_add: ::prost::alloc::vec::Vec<HttpHeaderOption>,
/// A list of header names for headers that need to be removed from the response before sending the response back to the client.
#[prost(string, repeated, tag = "75415761")]
pub response_headers_to_remove: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
}
/// matchRule criteria for request header matches.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HttpHeaderMatch {
/// The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
#[prost(string, optional, tag = "457641093")]
pub exact_match: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method". When the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true, only non-binary user-specified custom metadata and the `content-type` header are supported. The following transport-level headers cannot be used in header matching rules: `:authority`, `:method`, `:path`, `:scheme`, `user-agent`, `accept-encoding`, `content-encoding`, `grpc-accept-encoding`, `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags-bin`, `grpc-timeout` and `grpc-trace-bin`.
#[prost(string, optional, tag = "110223613")]
pub header_name: ::core::option::Option<::prost::alloc::string::String>,
/// If set to false, the headerMatch is considered a match if the preceding match criteria are met. If set to true, the headerMatch is considered a match if the preceding match criteria are NOT met. The default setting is false.
#[prost(bool, optional, tag = "501130268")]
pub invert_match: ::core::option::Option<bool>,
/// The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
#[prost(string, optional, tag = "257898968")]
pub prefix_match: ::core::option::Option<::prost::alloc::string::String>,
/// A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
#[prost(bool, optional, tag = "67435841")]
pub present_match: ::core::option::Option<bool>,
/// The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range \[-5, 0\] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
#[prost(message, optional, tag = "97244227")]
pub range_match: ::core::option::Option<Int64RangeMatch>,
/// The value of the header must match the regular expression specified in regexMatch. For more information about regular expression syntax, see Syntax. For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
#[prost(string, optional, tag = "107387853")]
pub regex_match: ::core::option::Option<::prost::alloc::string::String>,
/// The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
#[prost(string, optional, tag = "426488663")]
pub suffix_match: ::core::option::Option<::prost::alloc::string::String>,
}
/// Specification determining how headers are added to requests or responses.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HttpHeaderOption {
/// The name of the header.
#[prost(string, optional, tag = "110223613")]
pub header_name: ::core::option::Option<::prost::alloc::string::String>,
/// The value of the header to add.
#[prost(string, optional, tag = "203094335")]
pub header_value: ::core::option::Option<::prost::alloc::string::String>,
/// If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
#[prost(bool, optional, tag = "20755124")]
pub replace: ::core::option::Option<bool>,
}
/// HttpRouteRuleMatch criteria for a request's query parameter.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HttpQueryParameterMatch {
/// The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch, or regexMatch must be set.
#[prost(string, optional, tag = "457641093")]
pub exact_match: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch, or regexMatch must be set.
#[prost(bool, optional, tag = "67435841")]
pub present_match: ::core::option::Option<bool>,
/// The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, or regexMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
#[prost(string, optional, tag = "107387853")]
pub regex_match: ::core::option::Option<::prost::alloc::string::String>,
}
/// Specifies settings for an HTTP redirect.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HttpRedirectAction {
/// The host that is used in the redirect response instead of the one that was supplied in the request. The value must be from 1 to 255 characters.
#[prost(string, optional, tag = "107417747")]
pub host_redirect: ::core::option::Option<::prost::alloc::string::String>,
/// If set to true, the URL scheme in the redirected request is set to HTTPS. If set to false, the URL scheme of the redirected request remains the same as that of the request. This must only be set for URL maps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
#[prost(bool, optional, tag = "170260656")]
pub https_redirect: ::core::option::Option<bool>,
/// The path that is used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request is used for the redirect. The value must be from 1 to 1024 characters.
#[prost(string, optional, tag = "272342710")]
pub path_redirect: ::core::option::Option<::prost::alloc::string::String>,
/// The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request is used for the redirect. The value must be from 1 to 1024 characters.
#[prost(string, optional, tag = "446184169")]
pub prefix_redirect: ::core::option::Option<::prost::alloc::string::String>,
/// The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method is retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method is retained.
/// Check the RedirectResponseCode enum for the list of possible values.
#[prost(string, optional, tag = "436710408")]
pub redirect_response_code: ::core::option::Option<::prost::alloc::string::String>,
/// If set to true, any accompanying query portion of the original URL is removed before redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false.
#[prost(bool, optional, tag = "52284641")]
pub strip_query: ::core::option::Option<bool>,
}
/// Nested message and enum types in `HttpRedirectAction`.
pub mod http_redirect_action {
/// The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method is retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method is retained.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum RedirectResponseCode {
/// A value indicating that the enum field is not set.
UndefinedRedirectResponseCode = 0,
/// Http Status Code 302 - Found.
Found = 67084130,
/// Http Status Code 301 - Moved Permanently.
MovedPermanentlyDefault = 386698449,
/// Http Status Code 308 - Permanent Redirect maintaining HTTP method.
PermanentRedirect = 382006381,
/// Http Status Code 303 - See Other.
SeeOther = 445380580,
/// Http Status Code 307 - Temporary Redirect maintaining HTTP method.
TemporaryRedirect = 489550378,
}
impl RedirectResponseCode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
RedirectResponseCode::UndefinedRedirectResponseCode => {
"UNDEFINED_REDIRECT_RESPONSE_CODE"
}
RedirectResponseCode::Found => "FOUND",
RedirectResponseCode::MovedPermanentlyDefault => {
"MOVED_PERMANENTLY_DEFAULT"
}
RedirectResponseCode::PermanentRedirect => "PERMANENT_REDIRECT",
RedirectResponseCode::SeeOther => "SEE_OTHER",
RedirectResponseCode::TemporaryRedirect => "TEMPORARY_REDIRECT",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_REDIRECT_RESPONSE_CODE" => {
Some(Self::UndefinedRedirectResponseCode)
}
"FOUND" => Some(Self::Found),
"MOVED_PERMANENTLY_DEFAULT" => Some(Self::MovedPermanentlyDefault),
"PERMANENT_REDIRECT" => Some(Self::PermanentRedirect),
"SEE_OTHER" => Some(Self::SeeOther),
"TEMPORARY_REDIRECT" => Some(Self::TemporaryRedirect),
_ => None,
}
}
}
}
/// The retry policy associates with HttpRouteRule
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HttpRetryPolicy {
/// Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
#[prost(uint32, optional, tag = "251680141")]
pub num_retries: ::core::option::Option<u32>,
/// Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in the HttpRouteAction field. If timeout in the HttpRouteAction field is not set, this field uses the largest timeout among all backend services associated with the route. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
#[prost(message, optional, tag = "280041147")]
pub per_try_timeout: ::core::option::Option<Duration>,
/// Specifies one or more conditions when this retry policy applies. Valid values are: - 5xx: retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams. - gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. - connect-failure: a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts. - retriable-4xx: a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409. - refused-stream: a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. - cancelled: a retry is attempted if the gRPC status code in the response header is set to cancelled. - deadline-exceeded: a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded. - internal: a retry is attempted if the gRPC status code in the response header is set to internal. - resource-exhausted: a retry is attempted if the gRPC status code in the response header is set to resource-exhausted. - unavailable: a retry is attempted if the gRPC status code in the response header is set to unavailable. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true. - cancelled - deadline-exceeded - internal - resource-exhausted - unavailable
#[prost(string, repeated, tag = "28815535")]
pub retry_conditions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HttpRouteAction {
/// The specification for allowing client-side cross-origin requests. For more information about the W3C recommendation for cross-origin resource sharing (CORS), see Fetch API Living Standard. Not supported when the URL map is bound to a target gRPC proxy.
#[prost(message, optional, tag = "398943748")]
pub cors_policy: ::core::option::Option<CorsPolicy>,
/// The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by a load balancer on a percentage of requests before sending those requests to the backend service. Similarly requests from clients can be aborted by the load balancer for a percentage of requests. timeout and retry_policy is ignored by clients that are configured with a fault_injection_policy if: 1. The traffic is generated by fault injection AND 2. The fault injection is not a delay fault injection. Fault injection is not supported with the classic Application Load Balancer . To see which load balancers support fault injection, see Load balancing: Routing and traffic management features.
#[prost(message, optional, tag = "412781079")]
pub fault_injection_policy: ::core::option::Option<HttpFaultInjection>,
/// Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout field where the timeout duration starts from the time the request has been fully processed (known as *end-of-stream*), the duration in this field is computed from the beginning of the stream until the response has been processed, including all retries. A stream that does not complete in this duration is closed. If not specified, this field uses the maximum maxStreamDuration value among all backend services associated with the route. This field is only allowed if the Url map is used with backend services with loadBalancingScheme set to INTERNAL_SELF_MANAGED.
#[prost(message, optional, tag = "61428376")]
pub max_stream_duration: ::core::option::Option<Duration>,
/// Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. The load balancer does not wait for responses from the shadow service. Before sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
#[prost(message, optional, tag = "220196866")]
pub request_mirror_policy: ::core::option::Option<RequestMirrorPolicy>,
/// Specifies the retry policy associated with this route.
#[prost(message, optional, tag = "56799913")]
pub retry_policy: ::core::option::Option<HttpRetryPolicy>,
/// Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (known as *end-of-stream*) up until the response has been processed. Timeout includes all retries. If not specified, this field uses the largest timeout among all backend services associated with the route. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
#[prost(message, optional, tag = "296701281")]
pub timeout: ::core::option::Option<Duration>,
/// The spec to modify the URL of the request, before forwarding the request to the matched service. urlRewrite is the only action supported in UrlMaps for classic Application Load Balancers. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
#[prost(message, optional, tag = "273333948")]
pub url_rewrite: ::core::option::Option<UrlRewrite>,
/// A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non-zero number. After a backend service is identified and before forwarding the request to the backend service, advanced routing actions such as URL rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction.
#[prost(message, repeated, tag = "337028049")]
pub weighted_backend_services: ::prost::alloc::vec::Vec<WeightedBackendService>,
}
/// The HttpRouteRule setting specifies how to match an HTTP request and the corresponding routing action that load balancing proxies perform.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HttpRouteRule {
/// The short description conveying the intent of this routeRule. The description can have a maximum length of 1024 characters.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction value specified here is applied before the matching pathMatchers\[\].headerAction and after pathMatchers\[\].routeRules\[\].routeAction.weightedBackendService.backendServiceWeightAction\[\].headerAction HeaderAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
#[prost(message, optional, tag = "328077352")]
pub header_action: ::core::option::Option<HttpHeaderAction>,
/// The list of criteria for matching attributes of a request to this routeRule. This list has OR semantics: the request matches this routeRule when any of the matchRules are satisfied. However predicates within a given matchRule have AND semantics. All predicates within a matchRule must match for the request to match the rule.
#[prost(message, repeated, tag = "376200701")]
pub match_rules: ::prost::alloc::vec::Vec<HttpRouteRuleMatch>,
/// For routeRules within a given pathMatcher, priority determines the order in which a load balancer interprets routeRules. RouteRules are evaluated in order of priority, from the lowest to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The first rule that matches the request is applied. You cannot configure two or more routeRules with the same priority. Priority for each rule must be set to a number from 0 to 2147483647 inclusive. Priority numbers can have gaps, which enable you to add or remove rules in the future without affecting the rest of the rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is a valid series of priority numbers to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the future without any impact on existing rules.
#[prost(int32, optional, tag = "445151652")]
pub priority: ::core::option::Option<i32>,
/// In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
#[prost(message, optional, tag = "424563948")]
pub route_action: ::core::option::Option<HttpRouteAction>,
/// The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
#[prost(string, optional, tag = "373540533")]
pub service: ::core::option::Option<::prost::alloc::string::String>,
/// When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
#[prost(message, optional, tag = "405147820")]
pub url_redirect: ::core::option::Option<HttpRedirectAction>,
}
/// HttpRouteRuleMatch specifies a set of criteria for matching requests to an HttpRouteRule. All specified criteria must be satisfied for a match to occur.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HttpRouteRuleMatch {
/// For satisfying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL. fullPathMatch must be from 1 to 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
#[prost(string, optional, tag = "214598875")]
pub full_path_match: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a list of header match criteria, all of which must match corresponding headers in the request.
#[prost(message, repeated, tag = "361903489")]
pub header_matches: ::prost::alloc::vec::Vec<HttpHeaderMatch>,
/// Specifies that prefixMatch and fullPathMatch matches are case sensitive. The default value is false. ignoreCase must not be used with regexMatch. Not supported when the URL map is bound to a target gRPC proxy.
#[prost(bool, optional, tag = "464324989")]
pub ignore_case: ::core::option::Option<bool>,
/// Opaque filter criteria used by the load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to the load balancer, xDS clients present node metadata. When there is a match, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadata filters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here is applied after those specified in ForwardingRule that refers to the UrlMap this HttpRouteRuleMatch belongs to. metadataFilters only applies to load balancers that have loadBalancingScheme set to INTERNAL_SELF_MANAGED. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
#[prost(message, repeated, tag = "464725739")]
pub metadata_filters: ::prost::alloc::vec::Vec<MetadataFilter>,
/// If specified, the route is a pattern match expression that must match the :path header once the query string is removed. A pattern match allows you to match - The value must be between 1 and 1024 characters - The pattern must start with a leading slash ("/") - There may be no more than 5 operators in pattern Precisely one of prefix_match, full_path_match, regex_match or path_template_match must be set.
#[prost(string, optional, tag = "292348186")]
pub path_template_match: ::core::option::Option<::prost::alloc::string::String>,
/// For satisfying the matchRule condition, the request's path must begin with the specified prefixMatch. prefixMatch must begin with a /. The value must be from 1 to 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
#[prost(string, optional, tag = "257898968")]
pub prefix_match: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Not supported when the URL map is bound to a target gRPC proxy.
#[prost(message, repeated, tag = "286231270")]
pub query_parameter_matches: ::prost::alloc::vec::Vec<HttpQueryParameterMatch>,
/// For satisfying the matchRule condition, the path of the request must satisfy the regular expression specified in regexMatch after removing any query parameters and anchor supplied with the original URL. For more information about regular expression syntax, see Syntax. Only one of prefixMatch, fullPathMatch or regexMatch must be specified. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
#[prost(string, optional, tag = "107387853")]
pub regex_match: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents an Image resource. You can use images to create boot disks for your VM instances. For more information, read Images.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Image {
/// The architecture of the image. Valid values are ARM64 or X86_64.
/// Check the Architecture enum for the list of possible values.
#[prost(string, optional, tag = "302803283")]
pub architecture: ::core::option::Option<::prost::alloc::string::String>,
/// Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
#[prost(int64, optional, tag = "381093450")]
pub archive_size_bytes: ::core::option::Option<i64>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// The deprecation status associated with this image.
#[prost(message, optional, tag = "515138995")]
pub deprecated: ::core::option::Option<DeprecationStatus>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Size of the image when restored onto a persistent disk (in GB).
#[prost(int64, optional, tag = "316263735")]
pub disk_size_gb: ::core::option::Option<i64>,
/// Whether this image is created from a confidential compute mode disk. \[Output Only\]: This field is not set by user, but from source disk.
#[prost(bool, optional, tag = "102135228")]
pub enable_confidential_compute: ::core::option::Option<bool>,
/// The name of the image family to which this image belongs. The image family name can be from a publicly managed image family provided by Compute Engine, or from a custom image family you create. For example, centos-stream-9 is a publicly available image family. For more information, see Image family best practices. When creating disks, you can specify an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035.
#[prost(string, optional, tag = "328751972")]
pub family: ::core::option::Option<::prost::alloc::string::String>,
/// A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures\[\].type parameter.
#[prost(message, repeated, tag = "79294545")]
pub guest_os_features: ::prost::alloc::vec::Vec<GuestOsFeature>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// Encrypts the image using a customer-supplied encryption key. After you encrypt an image with a customer-supplied key, you must provide the same key if you use the image later (e.g. to create a disk from the image). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the image, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the image later.
#[prost(message, optional, tag = "379512583")]
pub image_encryption_key: ::core::option::Option<CustomerEncryptionKey>,
/// \[Output Only\] Type of the resource. Always compute#image for images.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// A fingerprint for the labels being applied to this image, which is essentially a hash of the labels used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an image.
#[prost(string, optional, tag = "178124825")]
pub label_fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// Labels to apply to this image. These can be later modified by the setLabels method.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Integer license codes indicating which licenses are attached to this image.
#[prost(int64, repeated, tag = "45482664")]
pub license_codes: ::prost::alloc::vec::Vec<i64>,
/// Any applicable license URI.
#[prost(string, repeated, tag = "337642578")]
pub licenses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The parameters of the raw disk image.
#[prost(message, optional, tag = "503113556")]
pub raw_disk: ::core::option::Option<RawDisk>,
/// Output only. Reserved for future use.
#[prost(bool, optional, tag = "480964257")]
pub satisfies_pzi: ::core::option::Option<bool>,
/// \[Output Only\] Reserved for future use.
#[prost(bool, optional, tag = "480964267")]
pub satisfies_pzs: ::core::option::Option<bool>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// Set the secure boot keys of shielded instance.
#[prost(message, optional, tag = "192356867")]
pub shielded_instance_initial_state: ::core::option::Option<InitialStateConfig>,
/// URL of the source disk used to create this image. For example, the following are valid values: - <https://www.googleapis.com/compute/v1/projects/project/zones/zone> /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
#[prost(string, optional, tag = "451753793")]
pub source_disk: ::core::option::Option<::prost::alloc::string::String>,
/// The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
#[prost(message, optional, tag = "531501153")]
pub source_disk_encryption_key: ::core::option::Option<CustomerEncryptionKey>,
/// \[Output Only\] The ID value of the disk used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given disk name.
#[prost(string, optional, tag = "454190809")]
pub source_disk_id: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the source image used to create this image. The following are valid formats for the URL: - <https://www.googleapis.com/compute/v1/projects/project_id/global/> images/image_name - projects/project_id/global/images/image_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
#[prost(string, optional, tag = "50443319")]
pub source_image: ::core::option::Option<::prost::alloc::string::String>,
/// The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
#[prost(message, optional, tag = "381503659")]
pub source_image_encryption_key: ::core::option::Option<CustomerEncryptionKey>,
/// \[Output Only\] The ID value of the image used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given image name.
#[prost(string, optional, tag = "55328291")]
pub source_image_id: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the source snapshot used to create this image. The following are valid formats for the URL: - <https://www.googleapis.com/compute/v1/projects/project_id/global/> snapshots/snapshot_name - projects/project_id/global/snapshots/snapshot_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
#[prost(string, optional, tag = "126061928")]
pub source_snapshot: ::core::option::Option<::prost::alloc::string::String>,
/// The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key.
#[prost(message, optional, tag = "303679322")]
pub source_snapshot_encryption_key: ::core::option::Option<CustomerEncryptionKey>,
/// \[Output Only\] The ID value of the snapshot used to create this image. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given snapshot name.
#[prost(string, optional, tag = "98962258")]
pub source_snapshot_id: ::core::option::Option<::prost::alloc::string::String>,
/// The type of the image used to create this disk. The default and only valid value is RAW.
/// Check the SourceType enum for the list of possible values.
#[prost(string, optional, tag = "452245726")]
pub source_type: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// Cloud Storage bucket storage location of the image (regional or multi-regional).
#[prost(string, repeated, tag = "328005274")]
pub storage_locations: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Image`.
pub mod image {
/// The architecture of the image. Valid values are ARM64 or X86_64.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Architecture {
/// A value indicating that the enum field is not set.
UndefinedArchitecture = 0,
/// Default value indicating Architecture is not set.
Unspecified = 394750507,
/// Machines with architecture ARM64
Arm64 = 62547450,
/// Machines with architecture X86_64
X8664 = 425300551,
}
impl Architecture {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Architecture::UndefinedArchitecture => "UNDEFINED_ARCHITECTURE",
Architecture::Unspecified => "ARCHITECTURE_UNSPECIFIED",
Architecture::Arm64 => "ARM64",
Architecture::X8664 => "X86_64",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ARCHITECTURE" => Some(Self::UndefinedArchitecture),
"ARCHITECTURE_UNSPECIFIED" => Some(Self::Unspecified),
"ARM64" => Some(Self::Arm64),
"X86_64" => Some(Self::X8664),
_ => None,
}
}
}
/// The type of the image used to create this disk. The default and only valid value is RAW.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum SourceType {
/// A value indicating that the enum field is not set.
UndefinedSourceType = 0,
Raw = 80904,
}
impl SourceType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
SourceType::UndefinedSourceType => "UNDEFINED_SOURCE_TYPE",
SourceType::Raw => "RAW",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_SOURCE_TYPE" => Some(Self::UndefinedSourceType),
"RAW" => Some(Self::Raw),
_ => None,
}
}
}
/// \[Output Only\] The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// Image is deleting.
Deleting = 528602024,
/// Image creation failed due to an error.
Failed = 455706685,
/// Image hasn't been created as yet.
Pending = 35394935,
/// Image has been successfully created.
Ready = 77848963,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Deleting => "DELETING",
Status::Failed => "FAILED",
Status::Pending => "PENDING",
Status::Ready => "READY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"DELETING" => Some(Self::Deleting),
"FAILED" => Some(Self::Failed),
"PENDING" => Some(Self::Pending),
"READY" => Some(Self::Ready),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ImageFamilyView {
/// The latest image that is part of the specified image family in the requested location, and that is not deprecated.
#[prost(message, optional, tag = "100313435")]
pub image: ::core::option::Option<Image>,
}
/// Contains a list of images.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ImageList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Image resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Image>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Initial State for shielded instance, these are public keys which are safe to store in public
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InitialStateConfig {
/// The Key Database (db).
#[prost(message, repeated, tag = "99253")]
pub dbs: ::prost::alloc::vec::Vec<FileContentBuffer>,
/// The forbidden key database (dbx).
#[prost(message, repeated, tag = "3077113")]
pub dbxs: ::prost::alloc::vec::Vec<FileContentBuffer>,
/// The Key Exchange Key (KEK).
#[prost(message, repeated, tag = "3288130")]
pub keks: ::prost::alloc::vec::Vec<FileContentBuffer>,
/// The Platform Key (PK).
#[prost(message, optional, tag = "3579")]
pub pk: ::core::option::Option<FileContentBuffer>,
}
/// A request message for Addresses.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertAddressRequest {
/// The body resource for this request
#[prost(message, optional, tag = "483888121")]
pub address_resource: ::core::option::Option<Address>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Autoscalers.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertAutoscalerRequest {
/// The body resource for this request
#[prost(message, optional, tag = "207616118")]
pub autoscaler_resource: ::core::option::Option<Autoscaler>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for BackendBuckets.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertBackendBucketRequest {
/// The body resource for this request
#[prost(message, optional, tag = "380757784")]
pub backend_bucket_resource: ::core::option::Option<BackendBucket>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for BackendServices.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertBackendServiceRequest {
/// The body resource for this request
#[prost(message, optional, tag = "347586723")]
pub backend_service_resource: ::core::option::Option<BackendService>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Disks.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertDiskRequest {
/// The body resource for this request
#[prost(message, optional, tag = "25880688")]
pub disk_resource: ::core::option::Option<Disk>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Source image to restore onto a disk. This field is optional.
#[prost(string, optional, tag = "50443319")]
pub source_image: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for ExternalVpnGateways.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertExternalVpnGatewayRequest {
/// The body resource for this request
#[prost(message, optional, tag = "486813576")]
pub external_vpn_gateway_resource: ::core::option::Option<ExternalVpnGateway>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for FirewallPolicies.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertFirewallPolicyRequest {
/// The body resource for this request
#[prost(message, optional, tag = "495049532")]
pub firewall_policy_resource: ::core::option::Option<FirewallPolicy>,
/// Parent ID for this request. The ID can be either be "folders/\[FOLDER_ID\]" if the parent is a folder or "organizations/\[ORGANIZATION_ID\]" if the parent is an organization.
#[prost(string, tag = "459714768")]
pub parent_id: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Firewalls.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertFirewallRequest {
/// The body resource for this request
#[prost(message, optional, tag = "41425005")]
pub firewall_resource: ::core::option::Option<Firewall>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for ForwardingRules.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertForwardingRuleRequest {
/// The body resource for this request
#[prost(message, optional, tag = "301211695")]
pub forwarding_rule_resource: ::core::option::Option<ForwardingRule>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for GlobalAddresses.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertGlobalAddressRequest {
/// The body resource for this request
#[prost(message, optional, tag = "483888121")]
pub address_resource: ::core::option::Option<Address>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for GlobalForwardingRules.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertGlobalForwardingRuleRequest {
/// The body resource for this request
#[prost(message, optional, tag = "301211695")]
pub forwarding_rule_resource: ::core::option::Option<ForwardingRule>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for GlobalNetworkEndpointGroups.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertGlobalNetworkEndpointGroupRequest {
/// The body resource for this request
#[prost(message, optional, tag = "525788839")]
pub network_endpoint_group_resource: ::core::option::Option<NetworkEndpointGroup>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for GlobalPublicDelegatedPrefixes.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertGlobalPublicDelegatedPrefixeRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "47594501")]
pub public_delegated_prefix_resource: ::core::option::Option<PublicDelegatedPrefix>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for HealthChecks.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertHealthCheckRequest {
/// The body resource for this request
#[prost(message, optional, tag = "201925032")]
pub health_check_resource: ::core::option::Option<HealthCheck>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Images.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertImageRequest {
/// Force image creation if true.
#[prost(bool, optional, tag = "197723344")]
pub force_create: ::core::option::Option<bool>,
/// The body resource for this request
#[prost(message, optional, tag = "371171954")]
pub image_resource: ::core::option::Option<Image>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for InstanceGroupManagers.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertInstanceGroupManagerRequest {
/// The body resource for this request
#[prost(message, optional, tag = "261063946")]
pub instance_group_manager_resource: ::core::option::Option<InstanceGroupManager>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where you want to create the managed instance group.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InstanceGroups.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertInstanceGroupRequest {
/// The body resource for this request
#[prost(message, optional, tag = "286612152")]
pub instance_group_resource: ::core::option::Option<InstanceGroup>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where you want to create the instance group.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Instances.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertInstanceRequest {
/// The body resource for this request
#[prost(message, optional, tag = "215988344")]
pub instance_resource: ::core::option::Option<Instance>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - <https://www.googleapis.com/compute/v1/projects/project> /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate
#[prost(string, optional, tag = "332423616")]
pub source_instance_template: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the machine image to use to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to a machine image: - <https://www.googleapis.com/compute/v1/projects/project/global/global> /machineImages/machineImage - projects/project/global/global/machineImages/machineImage - global/machineImages/machineImage
#[prost(string, optional, tag = "21769791")]
pub source_machine_image: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InstanceTemplates.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertInstanceTemplateRequest {
/// The body resource for this request
#[prost(message, optional, tag = "10679561")]
pub instance_template_resource: ::core::option::Option<InstanceTemplate>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for InstantSnapshots.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertInstantSnapshotRequest {
/// The body resource for this request
#[prost(message, optional, tag = "383915339")]
pub instant_snapshot_resource: ::core::option::Option<InstantSnapshot>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InterconnectAttachments.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertInterconnectAttachmentRequest {
/// The body resource for this request
#[prost(message, optional, tag = "212341369")]
pub interconnect_attachment_resource: ::core::option::Option<InterconnectAttachment>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// If true, the request will not be committed.
#[prost(bool, optional, tag = "242744629")]
pub validate_only: ::core::option::Option<bool>,
}
/// A request message for Interconnects.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertInterconnectRequest {
/// The body resource for this request
#[prost(message, optional, tag = "397611167")]
pub interconnect_resource: ::core::option::Option<Interconnect>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Licenses.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertLicenseRequest {
/// The body resource for this request
#[prost(message, optional, tag = "437955148")]
pub license_resource: ::core::option::Option<License>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for MachineImages.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertMachineImageRequest {
/// The body resource for this request
#[prost(message, optional, tag = "60740970")]
pub machine_image_resource: ::core::option::Option<MachineImage>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Required. Source instance that is used to create the machine image from.
#[prost(string, optional, tag = "396315705")]
pub source_instance: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NetworkAttachments.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertNetworkAttachmentRequest {
/// The body resource for this request
#[prost(message, optional, tag = "210974745")]
pub network_attachment_resource: ::core::option::Option<NetworkAttachment>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region of this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NetworkEdgeSecurityServices.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertNetworkEdgeSecurityServiceRequest {
/// The body resource for this request
#[prost(message, optional, tag = "477548966")]
pub network_edge_security_service_resource: ::core::option::Option<
NetworkEdgeSecurityService,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// If true, the request will not be committed.
#[prost(bool, optional, tag = "242744629")]
pub validate_only: ::core::option::Option<bool>,
}
/// A request message for NetworkEndpointGroups.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertNetworkEndpointGroupRequest {
/// The body resource for this request
#[prost(message, optional, tag = "525788839")]
pub network_endpoint_group_resource: ::core::option::Option<NetworkEndpointGroup>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where you want to create the network endpoint group. It should comply with RFC1035.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for NetworkFirewallPolicies.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertNetworkFirewallPolicyRequest {
/// The body resource for this request
#[prost(message, optional, tag = "495049532")]
pub firewall_policy_resource: ::core::option::Option<FirewallPolicy>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Networks.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertNetworkRequest {
/// The body resource for this request
#[prost(message, optional, tag = "122105599")]
pub network_resource: ::core::option::Option<Network>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NodeGroups.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertNodeGroupRequest {
/// Initial count of nodes in the node group.
#[prost(int32, tag = "71951469")]
pub initial_node_count: i32,
/// The body resource for this request
#[prost(message, optional, tag = "505321899")]
pub node_group_resource: ::core::option::Option<NodeGroup>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for NodeTemplates.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertNodeTemplateRequest {
/// The body resource for this request
#[prost(message, optional, tag = "127364406")]
pub node_template_resource: ::core::option::Option<NodeTemplate>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for PacketMirrorings.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertPacketMirroringRequest {
/// The body resource for this request
#[prost(message, optional, tag = "493501985")]
pub packet_mirroring_resource: ::core::option::Option<PacketMirroring>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for PublicAdvertisedPrefixes.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertPublicAdvertisedPrefixeRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "233614223")]
pub public_advertised_prefix_resource: ::core::option::Option<
PublicAdvertisedPrefix,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for PublicDelegatedPrefixes.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertPublicDelegatedPrefixeRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "47594501")]
pub public_delegated_prefix_resource: ::core::option::Option<PublicDelegatedPrefix>,
/// Name of the region of this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionAutoscalers.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRegionAutoscalerRequest {
/// The body resource for this request
#[prost(message, optional, tag = "207616118")]
pub autoscaler_resource: ::core::option::Option<Autoscaler>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionBackendServices.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRegionBackendServiceRequest {
/// The body resource for this request
#[prost(message, optional, tag = "347586723")]
pub backend_service_resource: ::core::option::Option<BackendService>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionCommitments.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRegionCommitmentRequest {
/// The body resource for this request
#[prost(message, optional, tag = "244240888")]
pub commitment_resource: ::core::option::Option<Commitment>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionDisks.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRegionDiskRequest {
/// The body resource for this request
#[prost(message, optional, tag = "25880688")]
pub disk_resource: ::core::option::Option<Disk>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Source image to restore onto a disk. This field is optional.
#[prost(string, optional, tag = "50443319")]
pub source_image: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionHealthChecks.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRegionHealthCheckRequest {
/// The body resource for this request
#[prost(message, optional, tag = "201925032")]
pub health_check_resource: ::core::option::Option<HealthCheck>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionHealthCheckServices.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRegionHealthCheckServiceRequest {
/// The body resource for this request
#[prost(message, optional, tag = "477367794")]
pub health_check_service_resource: ::core::option::Option<HealthCheckService>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionInstanceGroupManagers.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRegionInstanceGroupManagerRequest {
/// The body resource for this request
#[prost(message, optional, tag = "261063946")]
pub instance_group_manager_resource: ::core::option::Option<InstanceGroupManager>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionInstanceTemplates.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRegionInstanceTemplateRequest {
/// The body resource for this request
#[prost(message, optional, tag = "10679561")]
pub instance_template_resource: ::core::option::Option<InstanceTemplate>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionInstantSnapshots.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRegionInstantSnapshotRequest {
/// The body resource for this request
#[prost(message, optional, tag = "383915339")]
pub instant_snapshot_resource: ::core::option::Option<InstantSnapshot>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionNetworkEndpointGroups.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRegionNetworkEndpointGroupRequest {
/// The body resource for this request
#[prost(message, optional, tag = "525788839")]
pub network_endpoint_group_resource: ::core::option::Option<NetworkEndpointGroup>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region where you want to create the network endpoint group. It should comply with RFC1035.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionNetworkFirewallPolicies.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRegionNetworkFirewallPolicyRequest {
/// The body resource for this request
#[prost(message, optional, tag = "495049532")]
pub firewall_policy_resource: ::core::option::Option<FirewallPolicy>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionNotificationEndpoints.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRegionNotificationEndpointRequest {
/// The body resource for this request
#[prost(message, optional, tag = "338459940")]
pub notification_endpoint_resource: ::core::option::Option<NotificationEndpoint>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionSecurityPolicies.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRegionSecurityPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "216159612")]
pub security_policy_resource: ::core::option::Option<SecurityPolicy>,
/// If true, the request will not be committed.
#[prost(bool, optional, tag = "242744629")]
pub validate_only: ::core::option::Option<bool>,
}
/// A request message for RegionSslCertificates.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRegionSslCertificateRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "180709897")]
pub ssl_certificate_resource: ::core::option::Option<SslCertificate>,
}
/// A request message for RegionSslPolicies.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRegionSslPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "274891848")]
pub ssl_policy_resource: ::core::option::Option<SslPolicy>,
}
/// A request message for RegionTargetHttpProxies.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRegionTargetHttpProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "24696744")]
pub target_http_proxy_resource: ::core::option::Option<TargetHttpProxy>,
}
/// A request message for RegionTargetHttpsProxies.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRegionTargetHttpsProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "433657473")]
pub target_https_proxy_resource: ::core::option::Option<TargetHttpsProxy>,
}
/// A request message for RegionTargetTcpProxies.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRegionTargetTcpProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "145913931")]
pub target_tcp_proxy_resource: ::core::option::Option<TargetTcpProxy>,
}
/// A request message for RegionUrlMaps.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRegionUrlMapRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "168675425")]
pub url_map_resource: ::core::option::Option<UrlMap>,
}
/// A request message for Reservations.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertReservationRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "285030177")]
pub reservation_resource: ::core::option::Option<Reservation>,
/// Name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for ResourcePolicies.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertResourcePolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "76826186")]
pub resource_policy_resource: ::core::option::Option<ResourcePolicy>,
}
/// A request message for Routes.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRouteRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "225428804")]
pub route_resource: ::core::option::Option<Route>,
}
/// A request message for Routers.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertRouterRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "155222084")]
pub router_resource: ::core::option::Option<Router>,
}
/// A request message for SecurityPolicies.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertSecurityPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "216159612")]
pub security_policy_resource: ::core::option::Option<SecurityPolicy>,
/// If true, the request will not be committed.
#[prost(bool, optional, tag = "242744629")]
pub validate_only: ::core::option::Option<bool>,
}
/// A request message for ServiceAttachments.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertServiceAttachmentRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region of this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "472980256")]
pub service_attachment_resource: ::core::option::Option<ServiceAttachment>,
}
/// A request message for Snapshots.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertSnapshotRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "481319977")]
pub snapshot_resource: ::core::option::Option<Snapshot>,
}
/// A request message for SslCertificates.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertSslCertificateRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "180709897")]
pub ssl_certificate_resource: ::core::option::Option<SslCertificate>,
}
/// A request message for SslPolicies.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertSslPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "274891848")]
pub ssl_policy_resource: ::core::option::Option<SslPolicy>,
}
/// A request message for Subnetworks.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertSubnetworkRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "42233151")]
pub subnetwork_resource: ::core::option::Option<Subnetwork>,
}
/// A request message for TargetGrpcProxies.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertTargetGrpcProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "328922450")]
pub target_grpc_proxy_resource: ::core::option::Option<TargetGrpcProxy>,
}
/// A request message for TargetHttpProxies.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertTargetHttpProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "24696744")]
pub target_http_proxy_resource: ::core::option::Option<TargetHttpProxy>,
}
/// A request message for TargetHttpsProxies.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertTargetHttpsProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "433657473")]
pub target_https_proxy_resource: ::core::option::Option<TargetHttpsProxy>,
}
/// A request message for TargetInstances.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertTargetInstanceRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "430453066")]
pub target_instance_resource: ::core::option::Option<TargetInstance>,
/// Name of the zone scoping this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for TargetPools.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertTargetPoolRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "101281443")]
pub target_pool_resource: ::core::option::Option<TargetPool>,
}
/// A request message for TargetSslProxies.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertTargetSslProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "142016192")]
pub target_ssl_proxy_resource: ::core::option::Option<TargetSslProxy>,
}
/// A request message for TargetTcpProxies.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertTargetTcpProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "145913931")]
pub target_tcp_proxy_resource: ::core::option::Option<TargetTcpProxy>,
}
/// A request message for TargetVpnGateways.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertTargetVpnGatewayRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "498050")]
pub target_vpn_gateway_resource: ::core::option::Option<TargetVpnGateway>,
}
/// A request message for UrlMaps.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertUrlMapRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "168675425")]
pub url_map_resource: ::core::option::Option<UrlMap>,
}
/// A request message for VpnGateways.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertVpnGatewayRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "182688660")]
pub vpn_gateway_resource: ::core::option::Option<VpnGateway>,
}
/// A request message for VpnTunnels.Insert. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InsertVpnTunnelRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "86839482")]
pub vpn_tunnel_resource: ::core::option::Option<VpnTunnel>,
}
/// Represents an Instance resource. An instance is a virtual machine that is hosted on Google Cloud Platform. For more information, read Virtual Machine Instances.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Instance {
/// Controls for advanced machine-related behavior features.
#[prost(message, optional, tag = "409646002")]
pub advanced_machine_features: ::core::option::Option<AdvancedMachineFeatures>,
/// Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding .
#[prost(bool, optional, tag = "467731324")]
pub can_ip_forward: ::core::option::Option<bool>,
#[prost(message, optional, tag = "490637685")]
pub confidential_instance_config: ::core::option::Option<ConfidentialInstanceConfig>,
/// \[Output Only\] The CPU platform used by this instance.
#[prost(string, optional, tag = "410285354")]
pub cpu_platform: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// Whether the resource should be protected against deletion.
#[prost(bool, optional, tag = "458014698")]
pub deletion_protection: ::core::option::Option<bool>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Array of disks associated with this instance. Persistent disks must be created before you can assign them.
#[prost(message, repeated, tag = "95594102")]
pub disks: ::prost::alloc::vec::Vec<AttachedDisk>,
/// Enables display device for the instance.
#[prost(message, optional, tag = "258933875")]
pub display_device: ::core::option::Option<DisplayDevice>,
/// Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance. You must always provide an up-to-date fingerprint hash in order to update the instance. To see the latest fingerprint, make get() request to the instance.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// A list of the type and count of accelerator cards attached to the instance.
#[prost(message, repeated, tag = "463595119")]
pub guest_accelerators: ::prost::alloc::vec::Vec<AcceleratorConfig>,
/// Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If hostname is not specified, the default hostname is \[INSTANCE_NAME\].c.\[PROJECT_ID\].internal when using the global DNS, and \[INSTANCE_NAME\].[ZONE].c.\[PROJECT_ID\].internal when using zonal DNS.
#[prost(string, optional, tag = "237067315")]
pub hostname: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// Encrypts suspended data for an instance with a customer-managed encryption key. If you are creating a new instance, this field will encrypt the local SSD and in-memory contents of the instance during the suspend operation. If you do not provide an encryption key when creating the instance, then the local SSD and in-memory contents will be encrypted using an automatically generated key during the suspend operation.
#[prost(message, optional, tag = "64741517")]
pub instance_encryption_key: ::core::option::Option<CustomerEncryptionKey>,
/// KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified.
/// Check the KeyRevocationActionType enum for the list of possible values.
#[prost(string, optional, tag = "235941474")]
pub key_revocation_action_type: ::core::option::Option<
::prost::alloc::string::String,
>,
/// \[Output Only\] Type of the resource. Always compute#instance for instances.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the instance.
#[prost(string, optional, tag = "178124825")]
pub label_fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// Labels to apply to this instance. These can be later modified by the setLabels method.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// \[Output Only\] Last start timestamp in RFC3339 text format.
#[prost(string, optional, tag = "443830736")]
pub last_start_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Last stop timestamp in RFC3339 text format.
#[prost(string, optional, tag = "412823010")]
pub last_stop_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Last suspended timestamp in RFC3339 text format.
#[prost(string, optional, tag = "356275337")]
pub last_suspended_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type: zones/us-central1-f/machineTypes/n1-standard-1 To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB): zones/zone/machineTypes/custom-CPUS-MEMORY For example: zones/us-central1-f/machineTypes/custom-4-5120 For a full list of restrictions, read the Specifications for custom machine types.
#[prost(string, optional, tag = "227711026")]
pub machine_type: ::core::option::Option<::prost::alloc::string::String>,
/// The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys.
#[prost(message, optional, tag = "86866735")]
pub metadata: ::core::option::Option<Metadata>,
/// Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge".
#[prost(string, optional, tag = "242912759")]
pub min_cpu_platform: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.
#[prost(message, repeated, tag = "52735243")]
pub network_interfaces: ::prost::alloc::vec::Vec<NetworkInterface>,
#[prost(message, optional, tag = "398330850")]
pub network_performance_config: ::core::option::Option<NetworkPerformanceConfig>,
/// Input only. \[Input Only\] Additional params passed with the request, but not persisted as part of resource payload.
#[prost(message, optional, tag = "78313862")]
pub params: ::core::option::Option<InstanceParams>,
/// The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default.
/// Check the PrivateIpv6GoogleAccess enum for the list of possible values.
#[prost(string, optional, tag = "48277006")]
pub private_ipv6_google_access: ::core::option::Option<
::prost::alloc::string::String,
>,
/// Specifies the reservations that this instance can consume from.
#[prost(message, optional, tag = "157850683")]
pub reservation_affinity: ::core::option::Option<ReservationAffinity>,
/// Resource policies applied to this instance.
#[prost(string, repeated, tag = "22220385")]
pub resource_policies: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field.
#[prost(message, optional, tag = "249429315")]
pub resource_status: ::core::option::Option<ResourceStatus>,
/// \[Output Only\] Reserved for future use.
#[prost(bool, optional, tag = "480964257")]
pub satisfies_pzi: ::core::option::Option<bool>,
/// \[Output Only\] Reserved for future use.
#[prost(bool, optional, tag = "480964267")]
pub satisfies_pzs: ::core::option::Option<bool>,
/// Sets the scheduling options for this instance.
#[prost(message, optional, tag = "386688404")]
pub scheduling: ::core::option::Option<Scheduling>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
#[prost(message, repeated, tag = "277537328")]
pub service_accounts: ::prost::alloc::vec::Vec<ServiceAccount>,
#[prost(message, optional, tag = "12862901")]
pub shielded_instance_config: ::core::option::Option<ShieldedInstanceConfig>,
#[prost(message, optional, tag = "163696919")]
pub shielded_instance_integrity_policy: ::core::option::Option<
ShieldedInstanceIntegrityPolicy,
>,
/// Source machine image
#[prost(string, optional, tag = "21769791")]
pub source_machine_image: ::core::option::Option<::prost::alloc::string::String>,
/// Source machine image encryption key when creating an instance from a machine image.
#[prost(message, optional, tag = "192839075")]
pub source_machine_image_encryption_key: ::core::option::Option<
CustomerEncryptionKey,
>,
/// \[Output Only\] Whether a VM has been restricted for start because Compute Engine has detected suspicious activity.
#[prost(bool, optional, tag = "123693144")]
pub start_restricted: ::core::option::Option<bool>,
/// \[Output Only\] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] An optional, human-readable explanation of the status.
#[prost(string, optional, tag = "297428154")]
pub status_message: ::core::option::Option<::prost::alloc::string::String>,
/// Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the 'tags.items' field.
#[prost(message, optional, tag = "3552281")]
pub tags: ::core::option::Option<Tags>,
/// \[Output Only\] URL of the zone where the instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "3744684")]
pub zone: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Instance`.
pub mod instance {
/// KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum KeyRevocationActionType {
/// A value indicating that the enum field is not set.
UndefinedKeyRevocationActionType = 0,
/// Default value. This value is unused.
Unspecified = 467110106,
/// Indicates user chose no operation.
None = 2402104,
/// Indicates user chose to opt for VM shutdown on key revocation.
Stop = 2555906,
}
impl KeyRevocationActionType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
KeyRevocationActionType::UndefinedKeyRevocationActionType => {
"UNDEFINED_KEY_REVOCATION_ACTION_TYPE"
}
KeyRevocationActionType::Unspecified => {
"KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED"
}
KeyRevocationActionType::None => "NONE",
KeyRevocationActionType::Stop => "STOP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_KEY_REVOCATION_ACTION_TYPE" => {
Some(Self::UndefinedKeyRevocationActionType)
}
"KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"NONE" => Some(Self::None),
"STOP" => Some(Self::Stop),
_ => None,
}
}
}
/// The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum PrivateIpv6GoogleAccess {
/// A value indicating that the enum field is not set.
UndefinedPrivateIpv6GoogleAccess = 0,
/// Bidirectional private IPv6 access to/from Google services. If specified, the subnetwork who is attached to the instance's default network interface will be assigned an internal IPv6 prefix if it doesn't have before.
EnableBidirectionalAccessToGoogle = 427975994,
/// Outbound private IPv6 access from VMs in this subnet to Google services. If specified, the subnetwork who is attached to the instance's default network interface will be assigned an internal IPv6 prefix if it doesn't have before.
EnableOutboundVmAccessToGoogle = 288210263,
/// Each network interface inherits PrivateIpv6GoogleAccess from its subnetwork.
InheritFromSubnetwork = 530256959,
}
impl PrivateIpv6GoogleAccess {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
PrivateIpv6GoogleAccess::UndefinedPrivateIpv6GoogleAccess => {
"UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS"
}
PrivateIpv6GoogleAccess::EnableBidirectionalAccessToGoogle => {
"ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE"
}
PrivateIpv6GoogleAccess::EnableOutboundVmAccessToGoogle => {
"ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE"
}
PrivateIpv6GoogleAccess::InheritFromSubnetwork => {
"INHERIT_FROM_SUBNETWORK"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS" => {
Some(Self::UndefinedPrivateIpv6GoogleAccess)
}
"ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE" => {
Some(Self::EnableBidirectionalAccessToGoogle)
}
"ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE" => {
Some(Self::EnableOutboundVmAccessToGoogle)
}
"INHERIT_FROM_SUBNETWORK" => Some(Self::InheritFromSubnetwork),
_ => None,
}
}
}
/// \[Output Only\] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.
Deprovisioning = 428935662,
/// Resources are being allocated for the instance.
Provisioning = 290896621,
/// The instance is in repair.
Repairing = 413483285,
/// The instance is running.
Running = 121282975,
/// All required resources have been allocated and the instance is being started.
Staging = 431072283,
/// The instance has stopped successfully.
Stopped = 444276141,
/// The instance is currently stopping (either being deleted or killed).
Stopping = 350791796,
/// The instance has suspended.
Suspended = 51223995,
/// The instance is suspending.
Suspending = 514206246,
/// The instance has stopped (either by explicit action or underlying failure).
Terminated = 250018339,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Deprovisioning => "DEPROVISIONING",
Status::Provisioning => "PROVISIONING",
Status::Repairing => "REPAIRING",
Status::Running => "RUNNING",
Status::Staging => "STAGING",
Status::Stopped => "STOPPED",
Status::Stopping => "STOPPING",
Status::Suspended => "SUSPENDED",
Status::Suspending => "SUSPENDING",
Status::Terminated => "TERMINATED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"DEPROVISIONING" => Some(Self::Deprovisioning),
"PROVISIONING" => Some(Self::Provisioning),
"REPAIRING" => Some(Self::Repairing),
"RUNNING" => Some(Self::Running),
"STAGING" => Some(Self::Staging),
"STOPPED" => Some(Self::Stopped),
"STOPPING" => Some(Self::Stopping),
"SUSPENDED" => Some(Self::Suspended),
"SUSPENDING" => Some(Self::Suspending),
"TERMINATED" => Some(Self::Terminated),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// An object that contains a list of instances scoped by zone.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
InstancesScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#instanceAggregatedList for aggregated lists of Instance resources.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceConsumptionData {
/// Resources consumed by the instance.
#[prost(message, optional, tag = "146354898")]
pub consumption_info: ::core::option::Option<InstanceConsumptionInfo>,
/// Server-defined URL for the instance.
#[prost(string, optional, tag = "18257045")]
pub instance: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceConsumptionInfo {
/// The number of virtual CPUs that are available to the instance.
#[prost(int32, optional, tag = "393356754")]
pub guest_cpus: ::core::option::Option<i32>,
/// The amount of local SSD storage available to the instance, defined in GiB.
#[prost(int32, optional, tag = "329237578")]
pub local_ssd_gb: ::core::option::Option<i32>,
/// The amount of physical memory available to the instance, defined in MiB.
#[prost(int32, optional, tag = "116001171")]
pub memory_mb: ::core::option::Option<i32>,
/// The minimal guaranteed number of virtual CPUs that are reserved.
#[prost(int32, optional, tag = "317231675")]
pub min_node_cpus: ::core::option::Option<i32>,
}
/// Represents an Instance Group resource. Instance Groups can be used to configure a target for load balancing. Instance groups can either be managed or unmanaged. To create managed instance groups, use the instanceGroupManager or regionInstanceGroupManager resource instead. Use zonal unmanaged instance groups if you need to apply load balancing to groups of heterogeneous instances or if you need to manage the instances yourself. You cannot create regional unmanaged instance groups. For more information, read Instance groups.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroup {
/// \[Output Only\] The creation timestamp for this instance group in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A unique identifier for this instance group, generated by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] The resource type, which is always compute#instanceGroup for instance groups.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: \[{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}\] Named ports apply to all instances in this instance group.
#[prost(message, repeated, tag = "427598732")]
pub named_ports: ::prost::alloc::vec::Vec<NamedPort>,
/// \[Output Only\] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
#[prost(string, optional, tag = "232872494")]
pub network: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The URL of the region where the instance group is located (for regional resources).
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The URL for this instance group. The server generates this URL.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The total number of instances in the instance group.
#[prost(int32, optional, tag = "3530753")]
pub size: ::core::option::Option<i32>,
/// \[Output Only\] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
#[prost(string, optional, tag = "307827694")]
pub subnetwork: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The URL of the zone where the instance group is located (for zonal resources).
#[prost(string, optional, tag = "3744684")]
pub zone: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of InstanceGroupsScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
InstanceGroupsScopedList,
>,
/// \[Output Only\] The resource type, which is always compute#instanceGroupAggregatedList for aggregated lists of instance groups.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// A list of InstanceGroup resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of InstanceGroup resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<InstanceGroup>,
/// \[Output Only\] The resource type, which is always compute#instanceGroupList for instance group lists.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represents a Managed Instance Group resource. An instance group is a collection of VM instances that you can manage as a single entity. For more information, read Instance groups. For zonal Managed Instance Group, use the instanceGroupManagers resource. For regional Managed Instance Group, use the regionInstanceGroupManagers resource.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManager {
/// Specifies configuration that overrides the instance template configuration for the group.
#[prost(message, optional, tag = "112596737")]
pub all_instances_config: ::core::option::Option<
InstanceGroupManagerAllInstancesConfig,
>,
/// The autohealing policy for this managed instance group. You can specify only one value.
#[prost(message, repeated, tag = "456799109")]
pub auto_healing_policies: ::prost::alloc::vec::Vec<
InstanceGroupManagerAutoHealingPolicy,
>,
/// The base instance name to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with RFC1035.
#[prost(string, optional, tag = "389106439")]
pub base_instance_name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The creation timestamp for this managed instance group in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The list of instance actions and the number of instances in this managed instance group that are scheduled for each of those actions.
#[prost(message, optional, tag = "164045879")]
pub current_actions: ::core::option::Option<InstanceGroupManagerActionsSummary>,
/// An optional description of this resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Policy specifying the intended distribution of managed instances across zones in a regional managed instance group.
#[prost(message, optional, tag = "534558541")]
pub distribution_policy: ::core::option::Option<DistributionPolicy>,
/// Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to update the InstanceGroupManager, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an InstanceGroupManager.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A unique identifier for this resource type. The server generates this identifier.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] The URL of the Instance Group resource.
#[prost(string, optional, tag = "81095253")]
pub instance_group: ::core::option::Option<::prost::alloc::string::String>,
/// The repair policy for this managed instance group.
#[prost(message, optional, tag = "447961617")]
pub instance_lifecycle_policy: ::core::option::Option<
InstanceGroupManagerInstanceLifecyclePolicy,
>,
/// The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.
#[prost(string, optional, tag = "309248228")]
pub instance_template: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The resource type, which is always compute#instanceGroupManager for managed instance groups.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Pagination behavior of the listManagedInstances API method for this managed instance group.
/// Check the ListManagedInstancesResults enum for the list of possible values.
#[prost(string, optional, tag = "296047156")]
pub list_managed_instances_results: ::core::option::Option<
::prost::alloc::string::String,
>,
/// The name of the managed instance group. The name must be 1-63 characters long, and comply with RFC1035.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Named ports configured for the Instance Groups complementary to this Instance Group Manager.
#[prost(message, repeated, tag = "427598732")]
pub named_ports: ::prost::alloc::vec::Vec<NamedPort>,
/// \[Output Only\] The URL of the region where the managed instance group resides (for regional resources).
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The URL for this managed instance group. The server defines this URL.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// Stateful configuration for this Instanced Group Manager
#[prost(message, optional, tag = "47538565")]
pub stateful_policy: ::core::option::Option<StatefulPolicy>,
/// \[Output Only\] The status of this managed instance group.
#[prost(message, optional, tag = "181260274")]
pub status: ::core::option::Option<InstanceGroupManagerStatus>,
/// The URLs for all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group.
#[prost(string, repeated, tag = "336072617")]
pub target_pools: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The target number of running instances for this managed instance group. You can reduce this number by using the instanceGroupManager deleteInstances or abandonInstances methods. Resizing the group also changes this number.
#[prost(int32, optional, tag = "62880239")]
pub target_size: ::core::option::Option<i32>,
/// The update policy for this managed instance group.
#[prost(message, optional, tag = "175809896")]
pub update_policy: ::core::option::Option<InstanceGroupManagerUpdatePolicy>,
/// Specifies the instance templates used by this managed instance group to create instances. Each version is defined by an instanceTemplate and a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary updates.
#[prost(message, repeated, tag = "162430619")]
pub versions: ::prost::alloc::vec::Vec<InstanceGroupManagerVersion>,
/// \[Output Only\] The URL of a zone where the managed instance group is located (for zonal resources).
#[prost(string, optional, tag = "3744684")]
pub zone: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `InstanceGroupManager`.
pub mod instance_group_manager {
/// Pagination behavior of the listManagedInstances API method for this managed instance group.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ListManagedInstancesResults {
/// A value indicating that the enum field is not set.
UndefinedListManagedInstancesResults = 0,
/// (Default) Pagination is disabled for the group's listManagedInstances API method. maxResults and pageToken query parameters are ignored and all instances are returned in a single response.
Pageless = 32183464,
/// Pagination is enabled for the group's listManagedInstances API method. maxResults and pageToken query parameters are respected.
Paginated = 40190637,
}
impl ListManagedInstancesResults {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ListManagedInstancesResults::UndefinedListManagedInstancesResults => {
"UNDEFINED_LIST_MANAGED_INSTANCES_RESULTS"
}
ListManagedInstancesResults::Pageless => "PAGELESS",
ListManagedInstancesResults::Paginated => "PAGINATED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_LIST_MANAGED_INSTANCES_RESULTS" => {
Some(Self::UndefinedListManagedInstancesResults)
}
"PAGELESS" => Some(Self::Pageless),
"PAGINATED" => Some(Self::Paginated),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagerActionsSummary {
/// \[Output Only\] The total number of instances in the managed instance group that are scheduled to be abandoned. Abandoning an instance removes it from the managed instance group without deleting it.
#[prost(int32, optional, tag = "440023373")]
pub abandoning: ::core::option::Option<i32>,
/// \[Output Only\] The number of instances in the managed instance group that are scheduled to be created or are currently being created. If the group fails to create any of these instances, it tries again until it creates the instance successfully. If you have disabled creation retries, this field will not be populated; instead, the creatingWithoutRetries field will be populated.
#[prost(int32, optional, tag = "209809081")]
pub creating: ::core::option::Option<i32>,
/// \[Output Only\] The number of instances that the managed instance group will attempt to create. The group attempts to create each instance only once. If the group fails to create any of these instances, it decreases the group's targetSize value accordingly.
#[prost(int32, optional, tag = "369916745")]
pub creating_without_retries: ::core::option::Option<i32>,
/// \[Output Only\] The number of instances in the managed instance group that are scheduled to be deleted or are currently being deleted.
#[prost(int32, optional, tag = "282846120")]
pub deleting: ::core::option::Option<i32>,
/// \[Output Only\] The number of instances in the managed instance group that are running and have no scheduled actions.
#[prost(int32, optional, tag = "3387192")]
pub none: ::core::option::Option<i32>,
/// \[Output Only\] The number of instances in the managed instance group that are scheduled to be recreated or are currently being being recreated. Recreating an instance deletes the existing root persistent disk and creates a new disk from the image that is defined in the instance template.
#[prost(int32, optional, tag = "339057132")]
pub recreating: ::core::option::Option<i32>,
/// \[Output Only\] The number of instances in the managed instance group that are being reconfigured with properties that do not require a restart or a recreate action. For example, setting or removing target pools for the instance.
#[prost(int32, optional, tag = "215044903")]
pub refreshing: ::core::option::Option<i32>,
/// \[Output Only\] The number of instances in the managed instance group that are scheduled to be restarted or are currently being restarted.
#[prost(int32, optional, tag = "372312947")]
pub restarting: ::core::option::Option<i32>,
/// \[Output Only\] The number of instances in the managed instance group that are scheduled to be resumed or are currently being resumed.
#[prost(int32, optional, tag = "201100714")]
pub resuming: ::core::option::Option<i32>,
/// \[Output Only\] The number of instances in the managed instance group that are scheduled to be started or are currently being started.
#[prost(int32, optional, tag = "243064896")]
pub starting: ::core::option::Option<i32>,
/// \[Output Only\] The number of instances in the managed instance group that are scheduled to be stopped or are currently being stopped.
#[prost(int32, optional, tag = "105035892")]
pub stopping: ::core::option::Option<i32>,
/// \[Output Only\] The number of instances in the managed instance group that are scheduled to be suspended or are currently being suspended.
#[prost(int32, optional, tag = "29113894")]
pub suspending: ::core::option::Option<i32>,
/// \[Output Only\] The number of instances in the managed instance group that are being verified. See the managedInstances\[\].currentAction property in the listManagedInstances method documentation.
#[prost(int32, optional, tag = "451612873")]
pub verifying: ::core::option::Option<i32>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagerAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of InstanceGroupManagersScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
InstanceGroupManagersScopedList,
>,
/// \[Output Only\] The resource type, which is always compute#instanceGroupManagerAggregatedList for an aggregated list of managed instance groups.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagerAllInstancesConfig {
/// Properties to set on all instances in the group. You can add or modify properties using the instanceGroupManagers.patch or regionInstanceGroupManagers.patch. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration. To apply the configuration, set the group's updatePolicy.type field to use proactive updates or use the applyUpdatesToInstances method.
#[prost(message, optional, tag = "147688755")]
pub properties: ::core::option::Option<InstancePropertiesPatch>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagerAutoHealingPolicy {
/// The URL for the health check that signals autohealing.
#[prost(string, optional, tag = "308876645")]
pub health_check: ::core::option::Option<::prost::alloc::string::String>,
/// The initial delay is the number of seconds that a new VM takes to initialize and run its startup script. During a VM's initial delay period, the MIG ignores unsuccessful health checks because the VM might be in the startup process. This prevents the MIG from prematurely recreating a VM. If the health check receives a healthy response during the initial delay, it indicates that the startup process is complete and the VM is ready. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
#[prost(int32, optional, tag = "263207002")]
pub initial_delay_sec: ::core::option::Option<i32>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagerInstanceLifecyclePolicy {
/// The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not repair a failed or an unhealthy VM.
/// Check the DefaultActionOnFailure enum for the list of possible values.
#[prost(string, optional, tag = "61383253")]
pub default_action_on_failure: ::core::option::Option<
::prost::alloc::string::String,
>,
/// A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair.
/// Check the ForceUpdateOnRepair enum for the list of possible values.
#[prost(string, optional, tag = "356302027")]
pub force_update_on_repair: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `InstanceGroupManagerInstanceLifecyclePolicy`.
pub mod instance_group_manager_instance_lifecycle_policy {
/// The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not repair a failed or an unhealthy VM.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum DefaultActionOnFailure {
/// A value indicating that the enum field is not set.
UndefinedDefaultActionOnFailure = 0,
/// MIG does not repair a failed or an unhealthy VM.
DoNothing = 451307513,
/// (Default) MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG.
Repair = 266277773,
}
impl DefaultActionOnFailure {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
DefaultActionOnFailure::UndefinedDefaultActionOnFailure => {
"UNDEFINED_DEFAULT_ACTION_ON_FAILURE"
}
DefaultActionOnFailure::DoNothing => "DO_NOTHING",
DefaultActionOnFailure::Repair => "REPAIR",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_DEFAULT_ACTION_ON_FAILURE" => {
Some(Self::UndefinedDefaultActionOnFailure)
}
"DO_NOTHING" => Some(Self::DoNothing),
"REPAIR" => Some(Self::Repair),
_ => None,
}
}
}
/// A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ForceUpdateOnRepair {
/// A value indicating that the enum field is not set.
UndefinedForceUpdateOnRepair = 0,
No = 2497,
Yes = 87751,
}
impl ForceUpdateOnRepair {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ForceUpdateOnRepair::UndefinedForceUpdateOnRepair => {
"UNDEFINED_FORCE_UPDATE_ON_REPAIR"
}
ForceUpdateOnRepair::No => "NO",
ForceUpdateOnRepair::Yes => "YES",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_FORCE_UPDATE_ON_REPAIR" => {
Some(Self::UndefinedForceUpdateOnRepair)
}
"NO" => Some(Self::No),
"YES" => Some(Self::Yes),
_ => None,
}
}
}
}
/// \[Output Only\] A list of managed instance groups.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagerList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of InstanceGroupManager resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<InstanceGroupManager>,
/// \[Output Only\] The resource type, which is always compute#instanceGroupManagerList for a list of managed instance groups.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagerStatus {
/// \[Output only\] Status of all-instances configuration on the group.
#[prost(message, optional, tag = "112596737")]
pub all_instances_config: ::core::option::Option<
InstanceGroupManagerStatusAllInstancesConfig,
>,
/// \[Output Only\] The URL of the Autoscaler that targets this instance group manager.
#[prost(string, optional, tag = "517258967")]
pub autoscaler: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A bit indicating whether the managed instance group is in a stable state. A stable state means that: none of the instances in the managed instance group is currently undergoing any type of change (for example, creation, restart, or deletion); no future changes are scheduled for instances in the managed instance group; and the managed instance group itself is not being modified.
#[prost(bool, optional, tag = "108410864")]
pub is_stable: ::core::option::Option<bool>,
/// \[Output Only\] Stateful status of the given Instance Group Manager.
#[prost(message, optional, tag = "244462412")]
pub stateful: ::core::option::Option<InstanceGroupManagerStatusStateful>,
/// \[Output Only\] A status of consistency of Instances' versions with their target version specified by version field on Instance Group Manager.
#[prost(message, optional, tag = "289386200")]
pub version_target: ::core::option::Option<InstanceGroupManagerStatusVersionTarget>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagerStatusAllInstancesConfig {
/// \[Output Only\] Current all-instances configuration revision. This value is in RFC3339 text format.
#[prost(string, optional, tag = "38355937")]
pub current_revision: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A bit indicating whether this configuration has been applied to all managed instances in the group.
#[prost(bool, optional, tag = "141961639")]
pub effective: ::core::option::Option<bool>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagerStatusStateful {
/// \[Output Only\] A bit indicating whether the managed instance group has stateful configuration, that is, if you have configured any items in a stateful policy or in per-instance configs. The group might report that it has no stateful configuration even when there is still some preserved state on a managed instance, for example, if you have deleted all PICs but not yet applied those deletions.
#[prost(bool, optional, tag = "110474224")]
pub has_stateful_config: ::core::option::Option<bool>,
/// \[Output Only\] Status of per-instance configurations on the instance.
#[prost(message, optional, tag = "526265001")]
pub per_instance_configs: ::core::option::Option<
InstanceGroupManagerStatusStatefulPerInstanceConfigs,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagerStatusStatefulPerInstanceConfigs {
/// A bit indicating if all of the group's per-instance configurations (listed in the output of a listPerInstanceConfigs API call) have status EFFECTIVE or there are no per-instance-configs.
#[prost(bool, optional, tag = "516540553")]
pub all_effective: ::core::option::Option<bool>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagerStatusVersionTarget {
/// \[Output Only\] A bit indicating whether version target has been reached in this managed instance group, i.e. all instances are in their target version. Instances' target version are specified by version field on Instance Group Manager.
#[prost(bool, optional, tag = "433209149")]
pub is_reached: ::core::option::Option<bool>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagerUpdatePolicy {
/// The instance redistribution policy for regional managed instance groups. Valid values are: - PROACTIVE (default): The group attempts to maintain an even distribution of VM instances across zones in the region. - NONE: For non-autoscaled groups, proactive redistribution is disabled.
/// Check the InstanceRedistributionType enum for the list of possible values.
#[prost(string, optional, tag = "292630424")]
pub instance_redistribution_type: ::core::option::Option<
::prost::alloc::string::String,
>,
/// The maximum number of instances that can be created above the specified targetSize during the update process. This value can be either a fixed number or, if the group has 10 or more instances, a percentage. If you set a percentage, the number of instances is rounded if necessary. The default value for maxSurge is a fixed value equal to the number of zones in which the managed instance group operates. At least one of either maxSurge or maxUnavailable must be greater than 0. Learn more about maxSurge.
#[prost(message, optional, tag = "302572691")]
pub max_surge: ::core::option::Option<FixedOrPercent>,
/// The maximum number of instances that can be unavailable during the update process. An instance is considered available if all of the following conditions are satisfied: - The instance's status is RUNNING. - If there is a health check on the instance group, the instance's health check status must be HEALTHY at least once. If there is no health check on the group, then the instance only needs to have a status of RUNNING to be considered available. This value can be either a fixed number or, if the group has 10 or more instances, a percentage. If you set a percentage, the number of instances is rounded if necessary. The default value for maxUnavailable is a fixed value equal to the number of zones in which the managed instance group operates. At least one of either maxSurge or maxUnavailable must be greater than 0. Learn more about maxUnavailable.
#[prost(message, optional, tag = "404940277")]
pub max_unavailable: ::core::option::Option<FixedOrPercent>,
/// Minimal action to be taken on an instance. Use this option to minimize disruption as much as possible or to apply a more disruptive action than is necessary. - To limit disruption as much as possible, set the minimal action to REFRESH. If your update requires a more disruptive action, Compute Engine performs the necessary action to execute the update. - To apply a more disruptive action than is strictly necessary, set the minimal action to RESTART or REPLACE. For example, Compute Engine does not need to restart a VM to change its metadata. But if your application reads instance metadata only when a VM is restarted, you can set the minimal action to RESTART in order to pick up metadata changes.
/// Check the MinimalAction enum for the list of possible values.
#[prost(string, optional, tag = "270567060")]
pub minimal_action: ::core::option::Option<::prost::alloc::string::String>,
/// Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to avoid restarting the VM and to limit disruption as much as possible. RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all.
/// Check the MostDisruptiveAllowedAction enum for the list of possible values.
#[prost(string, optional, tag = "66103053")]
pub most_disruptive_allowed_action: ::core::option::Option<
::prost::alloc::string::String,
>,
/// What action should be used to replace instances. See minimal_action.REPLACE
/// Check the ReplacementMethod enum for the list of possible values.
#[prost(string, optional, tag = "505931694")]
pub replacement_method: ::core::option::Option<::prost::alloc::string::String>,
/// The type of update process. You can specify either PROACTIVE so that the MIG automatically updates VMs to the latest configurations or OPPORTUNISTIC so that you can select the VMs that you want to update.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `InstanceGroupManagerUpdatePolicy`.
pub mod instance_group_manager_update_policy {
/// The instance redistribution policy for regional managed instance groups. Valid values are: - PROACTIVE (default): The group attempts to maintain an even distribution of VM instances across zones in the region. - NONE: For non-autoscaled groups, proactive redistribution is disabled.
/// Additional supported values which may be not listed in the enum directly due to technical reasons:
/// NONE
/// PROACTIVE
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum InstanceRedistributionType {
/// A value indicating that the enum field is not set.
UndefinedInstanceRedistributionType = 0,
}
impl InstanceRedistributionType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
InstanceRedistributionType::UndefinedInstanceRedistributionType => {
"UNDEFINED_INSTANCE_REDISTRIBUTION_TYPE"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_INSTANCE_REDISTRIBUTION_TYPE" => {
Some(Self::UndefinedInstanceRedistributionType)
}
_ => None,
}
}
}
/// Minimal action to be taken on an instance. Use this option to minimize disruption as much as possible or to apply a more disruptive action than is necessary. - To limit disruption as much as possible, set the minimal action to REFRESH. If your update requires a more disruptive action, Compute Engine performs the necessary action to execute the update. - To apply a more disruptive action than is strictly necessary, set the minimal action to RESTART or REPLACE. For example, Compute Engine does not need to restart a VM to change its metadata. But if your application reads instance metadata only when a VM is restarted, you can set the minimal action to RESTART in order to pick up metadata changes.
/// Additional supported values which may be not listed in the enum directly due to technical reasons:
/// NONE
/// REFRESH
/// REPLACE
/// RESTART
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum MinimalAction {
/// A value indicating that the enum field is not set.
UndefinedMinimalAction = 0,
}
impl MinimalAction {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
MinimalAction::UndefinedMinimalAction => "UNDEFINED_MINIMAL_ACTION",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_MINIMAL_ACTION" => Some(Self::UndefinedMinimalAction),
_ => None,
}
}
}
/// Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to avoid restarting the VM and to limit disruption as much as possible. RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all.
/// Additional supported values which may be not listed in the enum directly due to technical reasons:
/// NONE
/// REFRESH
/// REPLACE
/// RESTART
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum MostDisruptiveAllowedAction {
/// A value indicating that the enum field is not set.
UndefinedMostDisruptiveAllowedAction = 0,
}
impl MostDisruptiveAllowedAction {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
MostDisruptiveAllowedAction::UndefinedMostDisruptiveAllowedAction => {
"UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION" => {
Some(Self::UndefinedMostDisruptiveAllowedAction)
}
_ => None,
}
}
}
/// What action should be used to replace instances. See minimal_action.REPLACE
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ReplacementMethod {
/// A value indicating that the enum field is not set.
UndefinedReplacementMethod = 0,
/// Instances will be recreated (with the same name)
Recreate = 522644719,
/// Default option: instances will be deleted and created (with a new name)
Substitute = 280924314,
}
impl ReplacementMethod {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ReplacementMethod::UndefinedReplacementMethod => {
"UNDEFINED_REPLACEMENT_METHOD"
}
ReplacementMethod::Recreate => "RECREATE",
ReplacementMethod::Substitute => "SUBSTITUTE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_REPLACEMENT_METHOD" => Some(Self::UndefinedReplacementMethod),
"RECREATE" => Some(Self::Recreate),
"SUBSTITUTE" => Some(Self::Substitute),
_ => None,
}
}
}
/// The type of update process. You can specify either PROACTIVE so that the MIG automatically updates VMs to the latest configurations or OPPORTUNISTIC so that you can select the VMs that you want to update.
/// Additional supported values which may be not listed in the enum directly due to technical reasons:
/// PROACTIVE
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
/// MIG will apply new configurations to existing VMs only when you selectively target specific or all VMs to be updated.
Opportunistic = 429530089,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::Opportunistic => "OPPORTUNISTIC",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"OPPORTUNISTIC" => Some(Self::Opportunistic),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagerVersion {
/// The URL of the instance template that is specified for this managed instance group. The group uses this template to create new instances in the managed instance group until the `targetSize` for this version is reached. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE; in those cases, existing instances are updated until the `targetSize` for this version is reached.
#[prost(string, optional, tag = "309248228")]
pub instance_template: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the version. Unique among all versions in the scope of this managed instance group.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the intended number of instances to be created from the instanceTemplate. The final number of instances created from the template will be equal to: - If expressed as a fixed number, the minimum of either targetSize.fixed or instanceGroupManager.targetSize is used. - if expressed as a percent, the targetSize would be (targetSize.percent/100 * InstanceGroupManager.targetSize) If there is a remainder, the number is rounded. If unset, this version will update any remaining instances not updated by another version. Read Starting a canary update for more information.
#[prost(message, optional, tag = "62880239")]
pub target_size: ::core::option::Option<FixedOrPercent>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagersAbandonInstancesRequest {
/// The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as zones/\[ZONE\]/instances/\[INSTANCE_NAME\].
#[prost(string, repeated, tag = "29097598")]
pub instances: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// InstanceGroupManagers.applyUpdatesToInstances
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagersApplyUpdatesRequest {
/// Flag to update all instances instead of specified list of “instances”. If the flag is set to true then the instances may not be specified in the request.
#[prost(bool, optional, tag = "403676512")]
pub all_instances: ::core::option::Option<bool>,
/// The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/\[ZONE\]/instances/\[INSTANCE_NAME\].
#[prost(string, repeated, tag = "29097598")]
pub instances: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update.
/// Check the MinimalAction enum for the list of possible values.
#[prost(string, optional, tag = "270567060")]
pub minimal_action: ::core::option::Option<::prost::alloc::string::String>,
/// The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail.
/// Check the MostDisruptiveAllowedAction enum for the list of possible values.
#[prost(string, optional, tag = "66103053")]
pub most_disruptive_allowed_action: ::core::option::Option<
::prost::alloc::string::String,
>,
}
/// Nested message and enum types in `InstanceGroupManagersApplyUpdatesRequest`.
pub mod instance_group_managers_apply_updates_request {
/// The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update.
/// Additional supported values which may be not listed in the enum directly due to technical reasons:
/// NONE
/// REFRESH
/// REPLACE
/// RESTART
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum MinimalAction {
/// A value indicating that the enum field is not set.
UndefinedMinimalAction = 0,
}
impl MinimalAction {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
MinimalAction::UndefinedMinimalAction => "UNDEFINED_MINIMAL_ACTION",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_MINIMAL_ACTION" => Some(Self::UndefinedMinimalAction),
_ => None,
}
}
}
/// The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail.
/// Additional supported values which may be not listed in the enum directly due to technical reasons:
/// NONE
/// REFRESH
/// REPLACE
/// RESTART
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum MostDisruptiveAllowedAction {
/// A value indicating that the enum field is not set.
UndefinedMostDisruptiveAllowedAction = 0,
}
impl MostDisruptiveAllowedAction {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
MostDisruptiveAllowedAction::UndefinedMostDisruptiveAllowedAction => {
"UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION" => {
Some(Self::UndefinedMostDisruptiveAllowedAction)
}
_ => None,
}
}
}
}
/// InstanceGroupManagers.createInstances
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagersCreateInstancesRequest {
/// \[Required\] List of specifications of per-instance configs.
#[prost(message, repeated, tag = "29097598")]
pub instances: ::prost::alloc::vec::Vec<PerInstanceConfig>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagersDeleteInstancesRequest {
/// The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/\[ZONE\]/instances/\[INSTANCE_NAME\]. Queued instances do not have URL and can be deleted only by name. One cannot specify both URLs and names in a single request.
#[prost(string, repeated, tag = "29097598")]
pub instances: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Specifies whether the request should proceed despite the inclusion of instances that are not members of the group or that are already in the process of being deleted or abandoned. If this field is set to `false` and such an instance is specified in the request, the operation fails. The operation always fails if the request contains a malformed instance URL or a reference to an instance that exists in a zone or region other than the group's zone or region.
#[prost(bool, optional, tag = "40631073")]
pub skip_instances_on_validation_error: ::core::option::Option<bool>,
}
/// InstanceGroupManagers.deletePerInstanceConfigs
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagersDeletePerInstanceConfigsReq {
/// The list of instance names for which we want to delete per-instance configs on this managed instance group.
#[prost(string, repeated, tag = "104585032")]
pub names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagersListErrorsResponse {
/// \[Output Only\] The list of errors of the managed instance group.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<InstanceManagedByIgmError>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagersListManagedInstancesResponse {
/// \[Output Only\] The list of instances in the managed instance group.
#[prost(message, repeated, tag = "336219614")]
pub managed_instances: ::prost::alloc::vec::Vec<ManagedInstance>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagersListPerInstanceConfigsResp {
/// \[Output Only\] The list of PerInstanceConfig.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<PerInstanceConfig>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// InstanceGroupManagers.patchPerInstanceConfigs
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagersPatchPerInstanceConfigsReq {
/// The list of per-instance configurations to insert or patch on this managed instance group.
#[prost(message, repeated, tag = "526265001")]
pub per_instance_configs: ::prost::alloc::vec::Vec<PerInstanceConfig>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagersRecreateInstancesRequest {
/// The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as zones/\[ZONE\]/instances/\[INSTANCE_NAME\].
#[prost(string, repeated, tag = "29097598")]
pub instances: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagersScopedList {
/// \[Output Only\] The list of managed instance groups that are contained in the specified project and zone.
#[prost(message, repeated, tag = "214072592")]
pub instance_group_managers: ::prost::alloc::vec::Vec<InstanceGroupManager>,
/// \[Output Only\] The warning that replaces the list of managed instance groups when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagersSetInstanceTemplateRequest {
/// The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.
#[prost(string, optional, tag = "309248228")]
pub instance_template: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagersSetTargetPoolsRequest {
/// The fingerprint of the target pools information. Use this optional property to prevent conflicts when multiple users change the target pools settings concurrently. Obtain the fingerprint with the instanceGroupManagers.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// The list of target pool URLs that instances in this managed instance group belong to. The managed instance group applies these target pools to all of the instances in the group. Existing instances and new instances in the group all receive these target pool settings.
#[prost(string, repeated, tag = "336072617")]
pub target_pools: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// InstanceGroupManagers.updatePerInstanceConfigs
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupManagersUpdatePerInstanceConfigsReq {
/// The list of per-instance configurations to insert or patch on this managed instance group.
#[prost(message, repeated, tag = "526265001")]
pub per_instance_configs: ::prost::alloc::vec::Vec<PerInstanceConfig>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupsAddInstancesRequest {
/// The list of instances to add to the instance group.
#[prost(message, repeated, tag = "29097598")]
pub instances: ::prost::alloc::vec::Vec<InstanceReference>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupsListInstances {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of InstanceWithNamedPorts resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<InstanceWithNamedPorts>,
/// \[Output Only\] The resource type, which is always compute#instanceGroupsListInstances for the list of instances in the specified instance group.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupsListInstancesRequest {
/// A filter for the state of the instances in the instance group. Valid options are ALL or RUNNING. If you do not specify this parameter the list includes all instances regardless of their state.
/// Check the InstanceState enum for the list of possible values.
#[prost(string, optional, tag = "92223591")]
pub instance_state: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `InstanceGroupsListInstancesRequest`.
pub mod instance_groups_list_instances_request {
/// A filter for the state of the instances in the instance group. Valid options are ALL or RUNNING. If you do not specify this parameter the list includes all instances regardless of their state.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum InstanceState {
/// A value indicating that the enum field is not set.
UndefinedInstanceState = 0,
/// Includes all instances in the generated list regardless of their state.
All = 64897,
/// Includes instances in the generated list only if they have a RUNNING state.
Running = 121282975,
}
impl InstanceState {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
InstanceState::UndefinedInstanceState => "UNDEFINED_INSTANCE_STATE",
InstanceState::All => "ALL",
InstanceState::Running => "RUNNING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_INSTANCE_STATE" => Some(Self::UndefinedInstanceState),
"ALL" => Some(Self::All),
"RUNNING" => Some(Self::Running),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupsRemoveInstancesRequest {
/// The list of instances to remove from the instance group.
#[prost(message, repeated, tag = "29097598")]
pub instances: ::prost::alloc::vec::Vec<InstanceReference>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupsScopedList {
/// \[Output Only\] The list of instance groups that are contained in this scope.
#[prost(message, repeated, tag = "366469310")]
pub instance_groups: ::prost::alloc::vec::Vec<InstanceGroup>,
/// \[Output Only\] An informational warning that replaces the list of instance groups when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroupsSetNamedPortsRequest {
/// The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request. A request with an incorrect fingerprint will fail with error 412 conditionNotMet.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// The list of named ports to set for this instance group.
#[prost(message, repeated, tag = "427598732")]
pub named_ports: ::prost::alloc::vec::Vec<NamedPort>,
}
/// Contains a list of instances.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Instance resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Instance>,
/// \[Output Only\] Type of resource. Always compute#instanceList for lists of Instance resources.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of instance referrers.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceListReferrers {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Reference resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Reference>,
/// \[Output Only\] Type of resource. Always compute#instanceListReferrers for lists of Instance referrers.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceManagedByIgmError {
/// \[Output Only\] Contents of the error.
#[prost(message, optional, tag = "96784904")]
pub error: ::core::option::Option<InstanceManagedByIgmErrorManagedInstanceError>,
/// \[Output Only\] Details of the instance action that triggered this error. May be null, if the error was not caused by an action on an instance. This field is optional.
#[prost(message, optional, tag = "292224547")]
pub instance_action_details: ::core::option::Option<
InstanceManagedByIgmErrorInstanceActionDetails,
>,
/// \[Output Only\] The time that this error occurred. This value is in RFC3339 text format.
#[prost(string, optional, tag = "55126294")]
pub timestamp: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceManagedByIgmErrorInstanceActionDetails {
/// \[Output Only\] Action that managed instance group was executing on the instance when the error occurred. Possible values:
/// Check the Action enum for the list of possible values.
#[prost(string, optional, tag = "187661878")]
pub action: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The URL of the instance. The URL can be set even if the instance has not yet been created.
#[prost(string, optional, tag = "18257045")]
pub instance: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Version this instance was created from, or was being created from, but the creation failed. Corresponds to one of the versions that were set on the Instance Group Manager resource at the time this instance was being created.
#[prost(message, optional, tag = "351608024")]
pub version: ::core::option::Option<ManagedInstanceVersion>,
}
/// Nested message and enum types in `InstanceManagedByIgmErrorInstanceActionDetails`.
pub mod instance_managed_by_igm_error_instance_action_details {
/// \[Output Only\] Action that managed instance group was executing on the instance when the error occurred. Possible values:
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Action {
/// A value indicating that the enum field is not set.
UndefinedAction = 0,
/// The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group.
Abandoning = 388244813,
/// The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful.
Creating = 455564985,
/// The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased.
CreatingWithoutRetries = 428843785,
/// The managed instance group is permanently deleting this instance.
Deleting = 528602024,
/// The managed instance group has not scheduled any actions for this instance.
None = 2402104,
/// The managed instance group is recreating this instance.
Recreating = 287278572,
/// The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance.
Refreshing = 163266343,
/// The managed instance group is restarting this instance.
Restarting = 320534387,
/// The managed instance group is resuming this instance.
Resuming = 446856618,
/// The managed instance group is starting this instance.
Starting = 488820800,
/// The managed instance group is stopping this instance.
Stopping = 350791796,
/// The managed instance group is suspending this instance.
Suspending = 514206246,
/// The managed instance group is verifying this already created instance. Verification happens every time the instance is (re)created or restarted and consists of: 1. Waiting until health check specified as part of this managed instance group's autohealing policy reports HEALTHY. Note: Applies only if autohealing policy has a health check specified 2. Waiting for addition verification steps performed as post-instance creation (subject to future extensions).
Verifying = 16982185,
}
impl Action {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Action::UndefinedAction => "UNDEFINED_ACTION",
Action::Abandoning => "ABANDONING",
Action::Creating => "CREATING",
Action::CreatingWithoutRetries => "CREATING_WITHOUT_RETRIES",
Action::Deleting => "DELETING",
Action::None => "NONE",
Action::Recreating => "RECREATING",
Action::Refreshing => "REFRESHING",
Action::Restarting => "RESTARTING",
Action::Resuming => "RESUMING",
Action::Starting => "STARTING",
Action::Stopping => "STOPPING",
Action::Suspending => "SUSPENDING",
Action::Verifying => "VERIFYING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ACTION" => Some(Self::UndefinedAction),
"ABANDONING" => Some(Self::Abandoning),
"CREATING" => Some(Self::Creating),
"CREATING_WITHOUT_RETRIES" => Some(Self::CreatingWithoutRetries),
"DELETING" => Some(Self::Deleting),
"NONE" => Some(Self::None),
"RECREATING" => Some(Self::Recreating),
"REFRESHING" => Some(Self::Refreshing),
"RESTARTING" => Some(Self::Restarting),
"RESUMING" => Some(Self::Resuming),
"STARTING" => Some(Self::Starting),
"STOPPING" => Some(Self::Stopping),
"SUSPENDING" => Some(Self::Suspending),
"VERIFYING" => Some(Self::Verifying),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceManagedByIgmErrorManagedInstanceError {
/// \[Output Only\] Error code.
#[prost(string, optional, tag = "3059181")]
pub code: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Error message.
#[prost(string, optional, tag = "418054151")]
pub message: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceMoveRequest {
/// The URL of the destination zone to move the instance. This can be a full or partial URL. For example, the following are all valid URLs to a zone: - <https://www.googleapis.com/compute/v1/projects/project/zones/zone> - projects/project/zones/zone - zones/zone
#[prost(string, optional, tag = "131854653")]
pub destination_zone: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the target instance to move. This can be a full or partial URL. For example, the following are all valid URLs to an instance: - <https://www.googleapis.com/compute/v1/projects/project/zones/zone> /instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/instance
#[prost(string, optional, tag = "289769347")]
pub target_instance: ::core::option::Option<::prost::alloc::string::String>,
}
/// Additional instance params.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceParams {
/// Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
#[prost(btree_map = "string, string", tag = "377671164")]
pub resource_manager_tags: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceProperties {
/// Controls for advanced machine-related behavior features. Note that for MachineImage, this is not supported yet.
#[prost(message, optional, tag = "409646002")]
pub advanced_machine_features: ::core::option::Option<AdvancedMachineFeatures>,
/// Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify true. If unsure, leave this set to false. See the Enable IP forwarding documentation for more information.
#[prost(bool, optional, tag = "467731324")]
pub can_ip_forward: ::core::option::Option<bool>,
/// Specifies the Confidential Instance options. Note that for MachineImage, this is not supported yet.
#[prost(message, optional, tag = "490637685")]
pub confidential_instance_config: ::core::option::Option<ConfidentialInstanceConfig>,
/// An optional text description for the instances that are created from these properties.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// An array of disks that are associated with the instances that are created from these properties.
#[prost(message, repeated, tag = "95594102")]
pub disks: ::prost::alloc::vec::Vec<AttachedDisk>,
/// A list of guest accelerator cards' type and count to use for instances created from these properties.
#[prost(message, repeated, tag = "463595119")]
pub guest_accelerators: ::prost::alloc::vec::Vec<AcceleratorConfig>,
/// KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified.
/// Check the KeyRevocationActionType enum for the list of possible values.
#[prost(string, optional, tag = "235941474")]
pub key_revocation_action_type: ::core::option::Option<
::prost::alloc::string::String,
>,
/// Labels to apply to instances that are created from these properties.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// The machine type to use for instances that are created from these properties.
#[prost(string, optional, tag = "227711026")]
pub machine_type: ::core::option::Option<::prost::alloc::string::String>,
/// The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.
#[prost(message, optional, tag = "86866735")]
pub metadata: ::core::option::Option<Metadata>,
/// Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.
#[prost(string, optional, tag = "242912759")]
pub min_cpu_platform: ::core::option::Option<::prost::alloc::string::String>,
/// An array of network access configurations for this interface.
#[prost(message, repeated, tag = "52735243")]
pub network_interfaces: ::prost::alloc::vec::Vec<NetworkInterface>,
/// Note that for MachineImage, this is not supported yet.
#[prost(message, optional, tag = "398330850")]
pub network_performance_config: ::core::option::Option<NetworkPerformanceConfig>,
/// The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as default. Note that for MachineImage, this is not supported yet.
/// Check the PrivateIpv6GoogleAccess enum for the list of possible values.
#[prost(string, optional, tag = "48277006")]
pub private_ipv6_google_access: ::core::option::Option<
::prost::alloc::string::String,
>,
/// Specifies the reservations that instances can consume from. Note that for MachineImage, this is not supported yet.
#[prost(message, optional, tag = "157850683")]
pub reservation_affinity: ::core::option::Option<ReservationAffinity>,
/// Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
#[prost(btree_map = "string, string", tag = "377671164")]
pub resource_manager_tags: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Resource policies (names, not URLs) applied to instances created from these properties. Note that for MachineImage, this is not supported yet.
#[prost(string, repeated, tag = "22220385")]
pub resource_policies: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Specifies the scheduling options for the instances that are created from these properties.
#[prost(message, optional, tag = "386688404")]
pub scheduling: ::core::option::Option<Scheduling>,
/// A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
#[prost(message, repeated, tag = "277537328")]
pub service_accounts: ::prost::alloc::vec::Vec<ServiceAccount>,
/// Note that for MachineImage, this is not supported yet.
#[prost(message, optional, tag = "12862901")]
pub shielded_instance_config: ::core::option::Option<ShieldedInstanceConfig>,
/// A list of tags to apply to the instances that are created from these properties. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035.
#[prost(message, optional, tag = "3552281")]
pub tags: ::core::option::Option<Tags>,
}
/// Nested message and enum types in `InstanceProperties`.
pub mod instance_properties {
/// KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum KeyRevocationActionType {
/// A value indicating that the enum field is not set.
UndefinedKeyRevocationActionType = 0,
/// Default value. This value is unused.
Unspecified = 467110106,
/// Indicates user chose no operation.
None = 2402104,
/// Indicates user chose to opt for VM shutdown on key revocation.
Stop = 2555906,
}
impl KeyRevocationActionType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
KeyRevocationActionType::UndefinedKeyRevocationActionType => {
"UNDEFINED_KEY_REVOCATION_ACTION_TYPE"
}
KeyRevocationActionType::Unspecified => {
"KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED"
}
KeyRevocationActionType::None => "NONE",
KeyRevocationActionType::Stop => "STOP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_KEY_REVOCATION_ACTION_TYPE" => {
Some(Self::UndefinedKeyRevocationActionType)
}
"KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"NONE" => Some(Self::None),
"STOP" => Some(Self::Stop),
_ => None,
}
}
}
/// The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as default. Note that for MachineImage, this is not supported yet.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum PrivateIpv6GoogleAccess {
/// A value indicating that the enum field is not set.
UndefinedPrivateIpv6GoogleAccess = 0,
/// Bidirectional private IPv6 access to/from Google services. If specified, the subnetwork who is attached to the instance's default network interface will be assigned an internal IPv6 prefix if it doesn't have before.
EnableBidirectionalAccessToGoogle = 427975994,
/// Outbound private IPv6 access from VMs in this subnet to Google services. If specified, the subnetwork who is attached to the instance's default network interface will be assigned an internal IPv6 prefix if it doesn't have before.
EnableOutboundVmAccessToGoogle = 288210263,
/// Each network interface inherits PrivateIpv6GoogleAccess from its subnetwork.
InheritFromSubnetwork = 530256959,
}
impl PrivateIpv6GoogleAccess {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
PrivateIpv6GoogleAccess::UndefinedPrivateIpv6GoogleAccess => {
"UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS"
}
PrivateIpv6GoogleAccess::EnableBidirectionalAccessToGoogle => {
"ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE"
}
PrivateIpv6GoogleAccess::EnableOutboundVmAccessToGoogle => {
"ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE"
}
PrivateIpv6GoogleAccess::InheritFromSubnetwork => {
"INHERIT_FROM_SUBNETWORK"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS" => {
Some(Self::UndefinedPrivateIpv6GoogleAccess)
}
"ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE" => {
Some(Self::EnableBidirectionalAccessToGoogle)
}
"ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE" => {
Some(Self::EnableOutboundVmAccessToGoogle)
}
"INHERIT_FROM_SUBNETWORK" => Some(Self::InheritFromSubnetwork),
_ => None,
}
}
}
}
/// Represents the change that you want to make to the instance properties.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstancePropertiesPatch {
/// The label key-value pairs that you want to patch onto the instance.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata.
#[prost(btree_map = "string, string", tag = "86866735")]
pub metadata: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceReference {
/// The URL for a specific instance. @required compute.instancegroups.addInstances/removeInstances
#[prost(string, optional, tag = "18257045")]
pub instance: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents an Instance Template resource. Google Compute Engine has two Instance Template resources: * [Global](/compute/docs/reference/rest/v1/instanceTemplates) * [Regional](/compute/docs/reference/rest/v1/regionInstanceTemplates) You can reuse a global instance template in different regions whereas you can use a regional instance template in a specified region only. If you want to reduce cross-region dependency or achieve data residency, use a regional instance template. To create VMs, managed instance groups, and reservations, you can use either global or regional instance templates. For more information, read Instance Templates.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceTemplate {
/// \[Output Only\] The creation timestamp for this instance template in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A unique identifier for this instance template. The server defines this identifier.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] The resource type, which is always compute#instanceTemplate for instance templates.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The instance properties for this instance template.
#[prost(message, optional, tag = "147688755")]
pub properties: ::core::option::Option<InstanceProperties>,
/// \[Output Only\] URL of the region where the instance template resides. Only applicable for regional resources.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The URL for this instance template. The server defines this URL.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// The source instance used to create the template. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - <https://www.googleapis.com/compute/v1/projects/project/zones/zone> /instances/instance - projects/project/zones/zone/instances/instance
#[prost(string, optional, tag = "396315705")]
pub source_instance: ::core::option::Option<::prost::alloc::string::String>,
/// The source instance params to use to create this instance template.
#[prost(message, optional, tag = "135342156")]
pub source_instance_params: ::core::option::Option<SourceInstanceParams>,
}
/// Contains a list of InstanceTemplatesScopedList.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceTemplateAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of InstanceTemplatesScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
InstanceTemplatesScopedList,
>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// A list of instance templates.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceTemplateList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of InstanceTemplate resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<InstanceTemplate>,
/// \[Output Only\] The resource type, which is always compute#instanceTemplatesListResponse for instance template lists.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceTemplatesScopedList {
/// \[Output Only\] A list of instance templates that are contained within the specified project and zone.
#[prost(message, repeated, tag = "459889679")]
pub instance_templates: ::prost::alloc::vec::Vec<InstanceTemplate>,
/// \[Output Only\] An informational warning that replaces the list of instance templates when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceWithNamedPorts {
/// \[Output Only\] The URL of the instance.
#[prost(string, optional, tag = "18257045")]
pub instance: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The named ports that belong to this instance group.
#[prost(message, repeated, tag = "427598732")]
pub named_ports: ::prost::alloc::vec::Vec<NamedPort>,
/// \[Output Only\] The status of the instance.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `InstanceWithNamedPorts`.
pub mod instance_with_named_ports {
/// \[Output Only\] The status of the instance.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.
Deprovisioning = 428935662,
/// Resources are being allocated for the instance.
Provisioning = 290896621,
/// The instance is in repair.
Repairing = 413483285,
/// The instance is running.
Running = 121282975,
/// All required resources have been allocated and the instance is being started.
Staging = 431072283,
/// The instance has stopped successfully.
Stopped = 444276141,
/// The instance is currently stopping (either being deleted or killed).
Stopping = 350791796,
/// The instance has suspended.
Suspended = 51223995,
/// The instance is suspending.
Suspending = 514206246,
/// The instance has stopped (either by explicit action or underlying failure).
Terminated = 250018339,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Deprovisioning => "DEPROVISIONING",
Status::Provisioning => "PROVISIONING",
Status::Repairing => "REPAIRING",
Status::Running => "RUNNING",
Status::Staging => "STAGING",
Status::Stopped => "STOPPED",
Status::Stopping => "STOPPING",
Status::Suspended => "SUSPENDED",
Status::Suspending => "SUSPENDING",
Status::Terminated => "TERMINATED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"DEPROVISIONING" => Some(Self::Deprovisioning),
"PROVISIONING" => Some(Self::Provisioning),
"REPAIRING" => Some(Self::Repairing),
"RUNNING" => Some(Self::Running),
"STAGING" => Some(Self::Staging),
"STOPPED" => Some(Self::Stopped),
"STOPPING" => Some(Self::Stopping),
"SUSPENDED" => Some(Self::Suspended),
"SUSPENDING" => Some(Self::Suspending),
"TERMINATED" => Some(Self::Terminated),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstancesAddResourcePoliciesRequest {
/// Resource policies to be added to this instance.
#[prost(string, repeated, tag = "22220385")]
pub resource_policies: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstancesBulkInsertOperationMetadata {
/// Status information per location (location name is key). Example key: zones/us-central1-a
#[prost(btree_map = "string, message", tag = "167851162")]
pub per_location_status: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
BulkInsertOperationStatus,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstancesGetEffectiveFirewallsResponse {
/// Effective firewalls from firewall policies.
#[prost(message, repeated, tag = "410985794")]
pub firewall_policys: ::prost::alloc::vec::Vec<
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy,
>,
/// Effective firewalls on the instance.
#[prost(message, repeated, tag = "272245619")]
pub firewalls: ::prost::alloc::vec::Vec<Firewall>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy {
/// \[Output Only\] Deprecated, please use short name instead. The display name of the firewall policy.
#[prost(string, optional, tag = "4473832")]
pub display_name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The name of the firewall policy.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The rules that apply to the network.
#[prost(message, repeated, tag = "108873975")]
pub rules: ::prost::alloc::vec::Vec<FirewallPolicyRule>,
/// \[Output Only\] The short name of the firewall policy.
#[prost(string, optional, tag = "492051566")]
pub short_name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy`.
pub mod instances_get_effective_firewalls_response_effective_firewall_policy {
/// \[Output Only\] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
Hierarchy = 69902869,
Network = 413984270,
NetworkRegional = 190804272,
Unspecified = 526786327,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::Hierarchy => "HIERARCHY",
Type::Network => "NETWORK",
Type::NetworkRegional => "NETWORK_REGIONAL",
Type::Unspecified => "UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"HIERARCHY" => Some(Self::Hierarchy),
"NETWORK" => Some(Self::Network),
"NETWORK_REGIONAL" => Some(Self::NetworkRegional),
"UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstancesRemoveResourcePoliciesRequest {
/// Resource policies to be removed from this instance.
#[prost(string, repeated, tag = "22220385")]
pub resource_policies: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstancesScopedList {
/// \[Output Only\] A list of instances contained in this scope.
#[prost(message, repeated, tag = "29097598")]
pub instances: ::prost::alloc::vec::Vec<Instance>,
/// \[Output Only\] Informational warning which replaces the list of instances when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstancesSetLabelsRequest {
/// Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide the latest fingerprint value when making a request to add or change labels.
#[prost(string, optional, tag = "178124825")]
pub label_fingerprint: ::core::option::Option<::prost::alloc::string::String>,
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstancesSetMachineResourcesRequest {
/// A list of the type and count of accelerator cards attached to the instance.
#[prost(message, repeated, tag = "463595119")]
pub guest_accelerators: ::prost::alloc::vec::Vec<AcceleratorConfig>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstancesSetMachineTypeRequest {
/// Full or partial URL of the machine type resource. See Machine Types for a full list of machine types. For example: zones/us-central1-f/machineTypes/n1-standard-1
#[prost(string, optional, tag = "227711026")]
pub machine_type: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstancesSetMinCpuPlatformRequest {
/// Minimum cpu/platform this instance should be started at.
#[prost(string, optional, tag = "242912759")]
pub min_cpu_platform: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstancesSetNameRequest {
/// The current name of this resource, used to prevent conflicts. Provide the latest name when making a request to change name.
#[prost(string, optional, tag = "394983825")]
pub current_name: ::core::option::Option<::prost::alloc::string::String>,
/// The name to be applied to the instance. Needs to be RFC 1035 compliant.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstancesSetSecurityPolicyRequest {
/// The network interfaces that the security policy will be applied to. Network interfaces use the nicN naming format. You can only set a security policy for network interfaces with an access config.
#[prost(string, repeated, tag = "52735243")]
pub network_interfaces: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
#[prost(string, optional, tag = "171082513")]
pub security_policy: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstancesSetServiceAccountRequest {
/// Email address of the service account.
#[prost(string, optional, tag = "96619420")]
pub email: ::core::option::Option<::prost::alloc::string::String>,
/// The list of scopes to be made available for this service account.
#[prost(string, repeated, tag = "165973151")]
pub scopes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstancesStartWithEncryptionKeyRequest {
/// Array of disks associated with this instance that are protected with a customer-supplied encryption key. In order to start the instance, the disk url and its corresponding key must be provided. If the disk is not protected with a customer-supplied encryption key it should not be specified.
#[prost(message, repeated, tag = "95594102")]
pub disks: ::prost::alloc::vec::Vec<CustomerEncryptionKeyProtectedDisk>,
}
/// Represents a InstantSnapshot resource. You can use instant snapshots to create disk rollback points quickly..
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstantSnapshot {
/// \[Output Only\] The architecture of the instant snapshot. Valid values are ARM64 or X86_64.
/// Check the Architecture enum for the list of possible values.
#[prost(string, optional, tag = "302803283")]
pub architecture: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Size of the source disk, specified in GB.
#[prost(int64, optional, tag = "316263735")]
pub disk_size_gb: ::core::option::Option<i64>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot.
#[prost(string, optional, tag = "178124825")]
pub label_fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Status information for the instant snapshot resource.
#[prost(message, optional, tag = "249429315")]
pub resource_status: ::core::option::Option<InstantSnapshotResourceStatus>,
/// Output only. Reserved for future use.
#[prost(bool, optional, tag = "480964257")]
pub satisfies_pzi: ::core::option::Option<bool>,
/// \[Output Only\] Reserved for future use.
#[prost(bool, optional, tag = "480964267")]
pub satisfies_pzs: ::core::option::Option<bool>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource's resource id.
#[prost(string, optional, tag = "44520962")]
pub self_link_with_id: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - <https://www.googleapis.com/compute/v1/projects/project/zones/zone> /disks/disk - <https://www.googleapis.com/compute/v1/projects/project/regions/region> /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
#[prost(string, optional, tag = "451753793")]
pub source_disk: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.
#[prost(string, optional, tag = "454190809")]
pub source_disk_id: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "3744684")]
pub zone: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `InstantSnapshot`.
pub mod instant_snapshot {
/// \[Output Only\] The architecture of the instant snapshot. Valid values are ARM64 or X86_64.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Architecture {
/// A value indicating that the enum field is not set.
UndefinedArchitecture = 0,
/// Default value indicating Architecture is not set.
Unspecified = 394750507,
/// Machines with architecture ARM64
Arm64 = 62547450,
/// Machines with architecture X86_64
X8664 = 425300551,
}
impl Architecture {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Architecture::UndefinedArchitecture => "UNDEFINED_ARCHITECTURE",
Architecture::Unspecified => "ARCHITECTURE_UNSPECIFIED",
Architecture::Arm64 => "ARM64",
Architecture::X8664 => "X86_64",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ARCHITECTURE" => Some(Self::UndefinedArchitecture),
"ARCHITECTURE_UNSPECIFIED" => Some(Self::Unspecified),
"ARM64" => Some(Self::Arm64),
"X86_64" => Some(Self::X8664),
_ => None,
}
}
}
/// \[Output Only\] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// InstantSnapshot creation is in progress.
Creating = 455564985,
/// InstantSnapshot is currently being deleted.
Deleting = 528602024,
/// InstantSnapshot creation failed.
Failed = 455706685,
/// InstantSnapshot has been created successfully.
Ready = 77848963,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Creating => "CREATING",
Status::Deleting => "DELETING",
Status::Failed => "FAILED",
Status::Ready => "READY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"CREATING" => Some(Self::Creating),
"DELETING" => Some(Self::Deleting),
"FAILED" => Some(Self::Failed),
"READY" => Some(Self::Ready),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstantSnapshotAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of InstantSnapshotsScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
InstantSnapshotsScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#instantSnapshotAggregatedList for aggregated lists of instantSnapshots.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of InstantSnapshot resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstantSnapshotList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of InstantSnapshot resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<InstantSnapshot>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstantSnapshotResourceStatus {
/// \[Output Only\] The storage size of this instant snapshot.
#[prost(int64, optional, tag = "387548913")]
pub storage_size_bytes: ::core::option::Option<i64>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstantSnapshotsScopedList {
/// \[Output Only\] A list of instantSnapshots contained in this scope.
#[prost(message, repeated, tag = "329637457")]
pub instant_snapshots: ::prost::alloc::vec::Vec<InstantSnapshot>,
/// \[Output Only\] Informational warning which replaces the list of instantSnapshots when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// HttpRouteRuleMatch criteria for field values that must stay within the specified integer range.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Int64RangeMatch {
/// The end of the range (exclusive) in signed long integer format.
#[prost(int64, optional, tag = "322439897")]
pub range_end: ::core::option::Option<i64>,
/// The start of the range (inclusive) in signed long integer format.
#[prost(int64, optional, tag = "103333600")]
pub range_start: ::core::option::Option<i64>,
}
/// Represents an Interconnect resource. An Interconnect resource is a dedicated connection between the Google Cloud network and your on-premises network. For more information, read the Dedicated Interconnect Overview.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Interconnect {
/// Administrative status of the interconnect. When this is set to true, the Interconnect is functional and can carry traffic. When set to false, no packets can be carried over the interconnect and no BGP routes are exchanged over it. By default, the status is set to true.
#[prost(bool, optional, tag = "445675089")]
pub admin_enabled: ::core::option::Option<bool>,
/// \[Output only\] List of features available for this Interconnect connection, which can take one of the following values: - MACSEC If present then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present then the Interconnect connection is provisioned on non-MACsec capable ports and MACsec isn't supported and enabling MACsec fails.
/// Check the AvailableFeatures enum for the list of possible values.
#[prost(string, repeated, tag = "496344307")]
pub available_features: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] A list of CircuitInfo objects, that describe the individual circuits in this LAG.
#[prost(message, repeated, tag = "164839855")]
pub circuit_infos: ::prost::alloc::vec::Vec<InterconnectCircuitInfo>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect.
#[prost(string, optional, tag = "3665484")]
pub customer_name: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A list of outages expected for this Interconnect.
#[prost(message, repeated, tag = "264484123")]
pub expected_outages: ::prost::alloc::vec::Vec<InterconnectOutageNotification>,
/// \[Output Only\] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests.
#[prost(string, optional, tag = "443105954")]
pub google_ip_address: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues.
#[prost(string, optional, tag = "534944469")]
pub google_reference_id: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] A list of the URLs of all InterconnectAttachments configured to use this Interconnect.
#[prost(string, repeated, tag = "425388415")]
pub interconnect_attachments: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED.
/// Check the InterconnectType enum for the list of possible values.
#[prost(string, optional, tag = "515165259")]
pub interconnect_type: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Type of the resource. Always compute#interconnect for interconnects.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// A fingerprint for the labels being applied to this Interconnect, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an Interconnect.
#[prost(string, optional, tag = "178124825")]
pub label_fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Type of link requested, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle.
/// Check the LinkType enum for the list of possible values.
#[prost(string, optional, tag = "523207775")]
pub link_type: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the InterconnectLocation object that represents where this connection is to be provisioned.
#[prost(string, optional, tag = "290430901")]
pub location: ::core::option::Option<::prost::alloc::string::String>,
/// Configuration that enables Media Access Control security (MACsec) on the Cloud Interconnect connection between Google and your on-premises router.
#[prost(message, optional, tag = "528867490")]
pub macsec: ::core::option::Option<InterconnectMacsec>,
/// Enable or disable MACsec on this Interconnect connection. MACsec enablement fails if the MACsec object is not specified.
#[prost(bool, optional, tag = "194203812")]
pub macsec_enabled: ::core::option::Option<bool>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation.
#[prost(string, optional, tag = "14072832")]
pub noc_contact_email: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The current status of this Interconnect's functionality, which can take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect.
/// Check the OperationalStatus enum for the list of possible values.
#[prost(string, optional, tag = "201070847")]
pub operational_status: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] IP address configured on the customer side of the Interconnect link. The customer should configure this IP address during turnup when prompted by Google NOC. This can be used only for ping tests.
#[prost(string, optional, tag = "207735769")]
pub peer_ip_address: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Number of links actually provisioned in this interconnect.
#[prost(int32, optional, tag = "410888565")]
pub provisioned_link_count: ::core::option::Option<i32>,
/// Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of Google's network that the interconnect is connected to.
#[prost(string, optional, tag = "324388750")]
pub remote_location: ::core::option::Option<::prost::alloc::string::String>,
/// Optional. List of features requested for this Interconnect connection, which can take one of the following values: - MACSEC If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available. This parameter can be provided only with Interconnect INSERT. It isn't valid for Interconnect PATCH.
/// Check the RequestedFeatures enum for the list of possible values.
#[prost(string, repeated, tag = "461240814")]
pub requested_features: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Target number of physical links in the link bundle, as requested by the customer.
#[prost(int32, optional, tag = "45051387")]
pub requested_link_count: ::core::option::Option<i32>,
/// \[Output Only\] Reserved for future use.
#[prost(bool, optional, tag = "480964267")]
pub satisfies_pzs: ::core::option::Option<bool>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The current state of Interconnect functionality, which can take one of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect.
/// Check the State enum for the list of possible values.
#[prost(string, optional, tag = "109757585")]
pub state: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Interconnect`.
pub mod interconnect {
///
/// Additional supported values which may be not listed in the enum directly due to technical reasons:
/// IF_MACSEC
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum AvailableFeatures {
/// A value indicating that the enum field is not set.
UndefinedAvailableFeatures = 0,
}
impl AvailableFeatures {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
AvailableFeatures::UndefinedAvailableFeatures => {
"UNDEFINED_AVAILABLE_FEATURES"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_AVAILABLE_FEATURES" => Some(Self::UndefinedAvailableFeatures),
_ => None,
}
}
}
/// Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum InterconnectType {
/// A value indicating that the enum field is not set.
UndefinedInterconnectType = 0,
/// A dedicated physical interconnection with the customer.
Dedicated = 258411983,
/// \[Deprecated\] A private, physical interconnection with the customer.
ItPrivate = 335677007,
/// A partner-managed interconnection shared between customers via partner.
Partner = 461924520,
}
impl InterconnectType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
InterconnectType::UndefinedInterconnectType => {
"UNDEFINED_INTERCONNECT_TYPE"
}
InterconnectType::Dedicated => "DEDICATED",
InterconnectType::ItPrivate => "IT_PRIVATE",
InterconnectType::Partner => "PARTNER",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_INTERCONNECT_TYPE" => Some(Self::UndefinedInterconnectType),
"DEDICATED" => Some(Self::Dedicated),
"IT_PRIVATE" => Some(Self::ItPrivate),
"PARTNER" => Some(Self::Partner),
_ => None,
}
}
}
/// Type of link requested, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum LinkType {
/// A value indicating that the enum field is not set.
UndefinedLinkType = 0,
/// 100G Ethernet, LR Optics.
Ethernet100gLr = 337672551,
/// 10G Ethernet, LR Optics. \[(rate_bps) = 10000000000\];
Ethernet10gLr = 236739749,
}
impl LinkType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
LinkType::UndefinedLinkType => "UNDEFINED_LINK_TYPE",
LinkType::Ethernet100gLr => "LINK_TYPE_ETHERNET_100G_LR",
LinkType::Ethernet10gLr => "LINK_TYPE_ETHERNET_10G_LR",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_LINK_TYPE" => Some(Self::UndefinedLinkType),
"LINK_TYPE_ETHERNET_100G_LR" => Some(Self::Ethernet100gLr),
"LINK_TYPE_ETHERNET_10G_LR" => Some(Self::Ethernet10gLr),
_ => None,
}
}
}
/// \[Output Only\] The current status of this Interconnect's functionality, which can take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum OperationalStatus {
/// A value indicating that the enum field is not set.
UndefinedOperationalStatus = 0,
/// The interconnect is valid, turned up, and ready to use. Attachments may be provisioned on this interconnect.
OsActive = 55721409,
/// The interconnect has not completed turnup. No attachments may be provisioned on this interconnect.
OsUnprovisioned = 239771840,
}
impl OperationalStatus {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
OperationalStatus::UndefinedOperationalStatus => {
"UNDEFINED_OPERATIONAL_STATUS"
}
OperationalStatus::OsActive => "OS_ACTIVE",
OperationalStatus::OsUnprovisioned => "OS_UNPROVISIONED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_OPERATIONAL_STATUS" => Some(Self::UndefinedOperationalStatus),
"OS_ACTIVE" => Some(Self::OsActive),
"OS_UNPROVISIONED" => Some(Self::OsUnprovisioned),
_ => None,
}
}
}
///
/// Additional supported values which may be not listed in the enum directly due to technical reasons:
/// IF_MACSEC
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum RequestedFeatures {
/// A value indicating that the enum field is not set.
UndefinedRequestedFeatures = 0,
}
impl RequestedFeatures {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
RequestedFeatures::UndefinedRequestedFeatures => {
"UNDEFINED_REQUESTED_FEATURES"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_REQUESTED_FEATURES" => Some(Self::UndefinedRequestedFeatures),
_ => None,
}
}
}
/// \[Output Only\] The current state of Interconnect functionality, which can take one of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// A value indicating that the enum field is not set.
UndefinedState = 0,
/// The interconnect is valid, turned up, and ready to use. Attachments may be provisioned on this interconnect.
Active = 314733318,
/// The interconnect has not completed turnup. No attachments may be provisioned on this interconnect.
Unprovisioned = 517333979,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::UndefinedState => "UNDEFINED_STATE",
State::Active => "ACTIVE",
State::Unprovisioned => "UNPROVISIONED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATE" => Some(Self::UndefinedState),
"ACTIVE" => Some(Self::Active),
"UNPROVISIONED" => Some(Self::Unprovisioned),
_ => None,
}
}
}
}
/// Represents an Interconnect Attachment (VLAN) resource. You can use Interconnect attachments (VLANS) to connect your Virtual Private Cloud networks to your on-premises networks through an Interconnect. For more information, read Creating VLAN Attachments.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectAttachment {
/// Determines whether this Attachment will carry packets. Not present for PARTNER_PROVIDER.
#[prost(bool, optional, tag = "445675089")]
pub admin_enabled: ::core::option::Option<bool>,
/// Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s
/// Check the Bandwidth enum for the list of possible values.
#[prost(string, optional, tag = "181715121")]
pub bandwidth: ::core::option::Option<::prost::alloc::string::String>,
/// This field is not available.
#[prost(string, repeated, tag = "70682522")]
pub candidate_ipv6_subnets: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
#[prost(string, repeated, tag = "237842938")]
pub candidate_subnets: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] IPv4 address + prefix length to be configured on Cloud Router Interface for this interconnect attachment.
#[prost(string, optional, tag = "287392776")]
pub cloud_router_ip_address: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] IPv6 address + prefix length to be configured on Cloud Router Interface for this interconnect attachment.
#[prost(string, optional, tag = "451922376")]
pub cloud_router_ipv6_address: ::core::option::Option<
::prost::alloc::string::String,
>,
/// This field is not available.
#[prost(string, optional, tag = "521282701")]
pub cloud_router_ipv6_interface_id: ::core::option::Option<
::prost::alloc::string::String,
>,
/// \[Output Only\] Constraints for this attachment, if any. The attachment does not work if these constraints are not met.
#[prost(message, optional, tag = "179681389")]
pub configuration_constraints: ::core::option::Option<
InterconnectAttachmentConfigurationConstraints,
>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] IPv4 address + prefix length to be configured on the customer router subinterface for this interconnect attachment.
#[prost(string, optional, tag = "332475761")]
pub customer_router_ip_address: ::core::option::Option<
::prost::alloc::string::String,
>,
/// \[Output Only\] IPv6 address + prefix length to be configured on the customer router subinterface for this interconnect attachment.
#[prost(string, optional, tag = "290127089")]
pub customer_router_ipv6_address: ::core::option::Option<
::prost::alloc::string::String,
>,
/// This field is not available.
#[prost(string, optional, tag = "380994308")]
pub customer_router_ipv6_interface_id: ::core::option::Option<
::prost::alloc::string::String,
>,
/// \[Output Only\] Dataplane version for this InterconnectAttachment. This field is only present for Dataplane version 2 and higher. Absence of this field in the API output indicates that the Dataplane is version 1.
#[prost(int32, optional, tag = "34920075")]
pub dataplane_version: ::core::option::Option<i32>,
/// An optional description of this resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
/// Check the EdgeAvailabilityDomain enum for the list of possible values.
#[prost(string, optional, tag = "71289510")]
pub edge_availability_domain: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates the user-supplied encryption option of this VLAN attachment (interconnectAttachment). Can only be specified at attachment creation for PARTNER or DEDICATED attachments. Possible values are: - NONE - This is the default value, which means that the VLAN attachment carries unencrypted traffic. VMs are able to send traffic to, or receive traffic from, such a VLAN attachment. - IPSEC - The VLAN attachment carries only encrypted traffic that is encrypted by an IPsec device, such as an HA VPN gateway or third-party IPsec VPN. VMs cannot directly send traffic to, or receive traffic from, such a VLAN attachment. To use *HA VPN over Cloud Interconnect*, the VLAN attachment must be created with this option.
/// Check the Encryption enum for the list of possible values.
#[prost(string, optional, tag = "97980291")]
pub encryption: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Google reference ID, to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. \[Deprecated\] This field is not used.
#[prost(string, optional, tag = "534944469")]
pub google_reference_id: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// URL of the underlying Interconnect object that this attachment's traffic will traverse through.
#[prost(string, optional, tag = "224601230")]
pub interconnect: ::core::option::Option<::prost::alloc::string::String>,
/// A list of URLs of addresses that have been reserved for the VLAN attachment. Used only for the VLAN attachment that has the encryption option as IPSEC. The addresses must be regional internal IP address ranges. When creating an HA VPN gateway over the VLAN attachment, if the attachment is configured to use a regional internal IP address, then the VPN gateway's IP address is allocated from the IP address range specified here. For example, if the HA VPN gateway's interface 0 is paired to this VLAN attachment, then a regional internal IP address for the VPN gateway interface 0 will be allocated from the IP address specified for this VLAN attachment. If this field is not specified when creating the VLAN attachment, then later on when creating an HA VPN gateway on this VLAN attachment, the HA VPN gateway's IP address is allocated from the regional external IP address pool.
#[prost(string, repeated, tag = "407648565")]
pub ipsec_internal_addresses: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// \[Output Only\] Type of the resource. Always compute#interconnectAttachment for interconnect attachments.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// A fingerprint for the labels being applied to this InterconnectAttachment, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an InterconnectAttachment.
#[prost(string, optional, tag = "178124825")]
pub label_fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect attachment. Only 1440 and 1500 are allowed. If not specified, the value will default to 1440.
#[prost(int32, optional, tag = "108462")]
pub mtu: ::core::option::Option<i32>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The current status of whether or not this interconnect attachment is functional, which can take one of the following values: - OS_ACTIVE: The attachment has been turned up and is ready to use. - OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
/// Check the OperationalStatus enum for the list of possible values.
#[prost(string, optional, tag = "201070847")]
pub operational_status: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not present for DEDICATED\]. The opaque identifier of a PARTNER attachment used to initiate provisioning with a selected partner. Of the form "XXXXX/region/domain"
#[prost(string, optional, tag = "439695464")]
pub pairing_key: ::core::option::Option<::prost::alloc::string::String>,
/// Optional BGP ASN for the router supplied by a Layer 3 Partner if they configured BGP on behalf of the customer. Output only for PARTNER type, input only for PARTNER_PROVIDER, not available for DEDICATED.
#[prost(int64, optional, tag = "438166149")]
pub partner_asn: ::core::option::Option<i64>,
/// Informational metadata about Partner attachments from Partners to display to customers. Output only for PARTNER type, mutable for PARTNER_PROVIDER, not available for DEDICATED.
#[prost(message, optional, tag = "65908934")]
pub partner_metadata: ::core::option::Option<InterconnectAttachmentPartnerMetadata>,
/// \[Output Only\] Information specific to an InterconnectAttachment. This property is populated if the interconnect that this is attached to is of type DEDICATED.
#[prost(message, optional, tag = "237270531")]
pub private_interconnect_info: ::core::option::Option<
InterconnectAttachmentPrivateInfo,
>,
/// \[Output Only\] URL of the region where the regional interconnect attachment resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] If the attachment is on a Cross-Cloud Interconnect connection, this field contains the interconnect's remote location service provider. Example values: "Amazon Web Services" "Microsoft Azure". The field is set only for attachments on Cross-Cloud Interconnect connections. Its value is copied from the InterconnectRemoteLocation remoteService field.
#[prost(string, optional, tag = "391954364")]
pub remote_service: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the Cloud Router to be used for dynamic routing. This router must be in the same region as this InterconnectAttachment. The InterconnectAttachment will automatically connect the Interconnect to the network & region within which the Cloud Router is configured.
#[prost(string, optional, tag = "148608841")]
pub router: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Reserved for future use.
#[prost(bool, optional, tag = "480964267")]
pub satisfies_pzs: ::core::option::Option<bool>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// The stack type for this interconnect attachment to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used. This field can be both set at interconnect attachments creation and update interconnect attachment operations.
/// Check the StackType enum for the list of possible values.
#[prost(string, optional, tag = "425908881")]
pub stack_type: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The current state of this attachment's functionality. Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This state can take one of the following values: - ACTIVE: The attachment has been turned up and is ready to use. - UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side. - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it. - DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted.
/// Check the State enum for the list of possible values.
#[prost(string, optional, tag = "109757585")]
pub state: ::core::option::Option<::prost::alloc::string::String>,
/// Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility.
#[prost(int32, optional, tag = "279831048")]
pub subnet_length: ::core::option::Option<i32>,
/// The type of interconnect attachment this is, which can take one of the following values: - DEDICATED: an attachment to a Dedicated Interconnect. - PARTNER: an attachment to a Partner Interconnect, created by the customer. - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by the partner.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
/// The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4093. Only specified at creation time.
#[prost(int32, optional, tag = "119927836")]
pub vlan_tag8021q: ::core::option::Option<i32>,
}
/// Nested message and enum types in `InterconnectAttachment`.
pub mod interconnect_attachment {
/// Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Bandwidth {
/// A value indicating that the enum field is not set.
UndefinedBandwidth = 0,
/// 100 Mbit/s
Bps100m = 49547958,
/// 10 Gbit/s
Bps10g = 278693006,
/// 1 Gbit/s
Bps1g = 355358448,
/// 200 Mbit/s
Bps200m = 49577749,
/// 20 Gbit/s
Bps20g = 278693967,
/// 2 Gbit/s
Bps2g = 355358479,
/// 300 Mbit/s
Bps300m = 49607540,
/// 400 Mbit/s
Bps400m = 49637331,
/// 500 Mbit/s
Bps500m = 49667122,
/// 50 Gbit/s
Bps50g = 278696850,
/// 50 Mbit/s
Bps50m = 278696856,
/// 5 Gbit/s
Bps5g = 355358572,
}
impl Bandwidth {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Bandwidth::UndefinedBandwidth => "UNDEFINED_BANDWIDTH",
Bandwidth::Bps100m => "BPS_100M",
Bandwidth::Bps10g => "BPS_10G",
Bandwidth::Bps1g => "BPS_1G",
Bandwidth::Bps200m => "BPS_200M",
Bandwidth::Bps20g => "BPS_20G",
Bandwidth::Bps2g => "BPS_2G",
Bandwidth::Bps300m => "BPS_300M",
Bandwidth::Bps400m => "BPS_400M",
Bandwidth::Bps500m => "BPS_500M",
Bandwidth::Bps50g => "BPS_50G",
Bandwidth::Bps50m => "BPS_50M",
Bandwidth::Bps5g => "BPS_5G",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_BANDWIDTH" => Some(Self::UndefinedBandwidth),
"BPS_100M" => Some(Self::Bps100m),
"BPS_10G" => Some(Self::Bps10g),
"BPS_1G" => Some(Self::Bps1g),
"BPS_200M" => Some(Self::Bps200m),
"BPS_20G" => Some(Self::Bps20g),
"BPS_2G" => Some(Self::Bps2g),
"BPS_300M" => Some(Self::Bps300m),
"BPS_400M" => Some(Self::Bps400m),
"BPS_500M" => Some(Self::Bps500m),
"BPS_50G" => Some(Self::Bps50g),
"BPS_50M" => Some(Self::Bps50m),
"BPS_5G" => Some(Self::Bps5g),
_ => None,
}
}
}
/// Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum EdgeAvailabilityDomain {
/// A value indicating that the enum field is not set.
UndefinedEdgeAvailabilityDomain = 0,
AvailabilityDomain1 = 349552090,
AvailabilityDomain2 = 349552091,
AvailabilityDomainAny = 375256373,
}
impl EdgeAvailabilityDomain {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
EdgeAvailabilityDomain::UndefinedEdgeAvailabilityDomain => {
"UNDEFINED_EDGE_AVAILABILITY_DOMAIN"
}
EdgeAvailabilityDomain::AvailabilityDomain1 => "AVAILABILITY_DOMAIN_1",
EdgeAvailabilityDomain::AvailabilityDomain2 => "AVAILABILITY_DOMAIN_2",
EdgeAvailabilityDomain::AvailabilityDomainAny => {
"AVAILABILITY_DOMAIN_ANY"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_EDGE_AVAILABILITY_DOMAIN" => {
Some(Self::UndefinedEdgeAvailabilityDomain)
}
"AVAILABILITY_DOMAIN_1" => Some(Self::AvailabilityDomain1),
"AVAILABILITY_DOMAIN_2" => Some(Self::AvailabilityDomain2),
"AVAILABILITY_DOMAIN_ANY" => Some(Self::AvailabilityDomainAny),
_ => None,
}
}
}
/// Indicates the user-supplied encryption option of this VLAN attachment (interconnectAttachment). Can only be specified at attachment creation for PARTNER or DEDICATED attachments. Possible values are: - NONE - This is the default value, which means that the VLAN attachment carries unencrypted traffic. VMs are able to send traffic to, or receive traffic from, such a VLAN attachment. - IPSEC - The VLAN attachment carries only encrypted traffic that is encrypted by an IPsec device, such as an HA VPN gateway or third-party IPsec VPN. VMs cannot directly send traffic to, or receive traffic from, such a VLAN attachment. To use *HA VPN over Cloud Interconnect*, the VLAN attachment must be created with this option.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Encryption {
/// A value indicating that the enum field is not set.
UndefinedEncryption = 0,
/// The interconnect attachment will carry only encrypted traffic that is encrypted by an IPsec device such as HA VPN gateway; VMs cannot directly send traffic to or receive traffic from such an interconnect attachment. To use HA VPN over Cloud Interconnect, the interconnect attachment must be created with this option.
Ipsec = 69882282,
/// This is the default value, which means the Interconnect Attachment will carry unencrypted traffic. VMs will be able to send traffic to or receive traffic from such interconnect attachment.
None = 2402104,
}
impl Encryption {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Encryption::UndefinedEncryption => "UNDEFINED_ENCRYPTION",
Encryption::Ipsec => "IPSEC",
Encryption::None => "NONE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ENCRYPTION" => Some(Self::UndefinedEncryption),
"IPSEC" => Some(Self::Ipsec),
"NONE" => Some(Self::None),
_ => None,
}
}
}
/// \[Output Only\] The current status of whether or not this interconnect attachment is functional, which can take one of the following values: - OS_ACTIVE: The attachment has been turned up and is ready to use. - OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum OperationalStatus {
/// A value indicating that the enum field is not set.
UndefinedOperationalStatus = 0,
/// Indicates that attachment has been turned up and is ready to use.
OsActive = 55721409,
/// Indicates that attachment is not ready to use yet, because turnup is not complete.
OsUnprovisioned = 239771840,
}
impl OperationalStatus {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
OperationalStatus::UndefinedOperationalStatus => {
"UNDEFINED_OPERATIONAL_STATUS"
}
OperationalStatus::OsActive => "OS_ACTIVE",
OperationalStatus::OsUnprovisioned => "OS_UNPROVISIONED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_OPERATIONAL_STATUS" => Some(Self::UndefinedOperationalStatus),
"OS_ACTIVE" => Some(Self::OsActive),
"OS_UNPROVISIONED" => Some(Self::OsUnprovisioned),
_ => None,
}
}
}
/// The stack type for this interconnect attachment to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used. This field can be both set at interconnect attachments creation and update interconnect attachment operations.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum StackType {
/// A value indicating that the enum field is not set.
UndefinedStackType = 0,
/// The interconnect attachment can have both IPv4 and IPv6 addresses.
Ipv4Ipv6 = 22197249,
/// The interconnect attachment will only be assigned IPv4 addresses.
Ipv4Only = 22373798,
}
impl StackType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
StackType::UndefinedStackType => "UNDEFINED_STACK_TYPE",
StackType::Ipv4Ipv6 => "IPV4_IPV6",
StackType::Ipv4Only => "IPV4_ONLY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STACK_TYPE" => Some(Self::UndefinedStackType),
"IPV4_IPV6" => Some(Self::Ipv4Ipv6),
"IPV4_ONLY" => Some(Self::Ipv4Only),
_ => None,
}
}
}
/// \[Output Only\] The current state of this attachment's functionality. Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This state can take one of the following values: - ACTIVE: The attachment has been turned up and is ready to use. - UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side. - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it. - DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// A value indicating that the enum field is not set.
UndefinedState = 0,
/// Indicates that attachment has been turned up and is ready to use.
Active = 314733318,
/// The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was wiped out, or because the other side of a Partner attachment was deleted.
Defunct = 115891759,
/// A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it.
PartnerRequestReceived = 513587304,
/// PARTNER or PARTNER_PROVIDER attachment that is waiting for the customer to activate.
PendingCustomer = 167494054,
/// A newly created PARTNER attachment that has not yet been configured on the Partner side.
PendingPartner = 387890656,
Unspecified = 470755401,
/// Indicates that attachment is not ready to use yet, because turnup is not complete.
Unprovisioned = 517333979,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::UndefinedState => "UNDEFINED_STATE",
State::Active => "ACTIVE",
State::Defunct => "DEFUNCT",
State::PartnerRequestReceived => "PARTNER_REQUEST_RECEIVED",
State::PendingCustomer => "PENDING_CUSTOMER",
State::PendingPartner => "PENDING_PARTNER",
State::Unspecified => "STATE_UNSPECIFIED",
State::Unprovisioned => "UNPROVISIONED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATE" => Some(Self::UndefinedState),
"ACTIVE" => Some(Self::Active),
"DEFUNCT" => Some(Self::Defunct),
"PARTNER_REQUEST_RECEIVED" => Some(Self::PartnerRequestReceived),
"PENDING_CUSTOMER" => Some(Self::PendingCustomer),
"PENDING_PARTNER" => Some(Self::PendingPartner),
"STATE_UNSPECIFIED" => Some(Self::Unspecified),
"UNPROVISIONED" => Some(Self::Unprovisioned),
_ => None,
}
}
}
/// The type of interconnect attachment this is, which can take one of the following values: - DEDICATED: an attachment to a Dedicated Interconnect. - PARTNER: an attachment to a Partner Interconnect, created by the customer. - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by the partner.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
/// Attachment to a dedicated interconnect.
Dedicated = 258411983,
/// Attachment to a partner interconnect, created by the customer.
Partner = 461924520,
/// Attachment to a partner interconnect, created by the partner.
PartnerProvider = 483261352,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::Dedicated => "DEDICATED",
Type::Partner => "PARTNER",
Type::PartnerProvider => "PARTNER_PROVIDER",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"DEDICATED" => Some(Self::Dedicated),
"PARTNER" => Some(Self::Partner),
"PARTNER_PROVIDER" => Some(Self::PartnerProvider),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectAttachmentAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of InterconnectAttachmentsScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
InterconnectAttachmentsScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#interconnectAttachmentAggregatedList for aggregated lists of interconnect attachments.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectAttachmentConfigurationConstraints {
/// \[Output Only\] Whether the attachment's BGP session requires/allows/disallows BGP MD5 authentication. This can take one of the following values: MD5_OPTIONAL, MD5_REQUIRED, MD5_UNSUPPORTED. For example, a Cross-Cloud Interconnect connection to a remote cloud provider that requires BGP MD5 authentication has the interconnectRemoteLocation attachment_configuration_constraints.bgp_md5 field set to MD5_REQUIRED, and that property is propagated to the attachment. Similarly, if BGP MD5 is MD5_UNSUPPORTED, an error is returned if MD5 is requested.
/// Check the BgpMd5 enum for the list of possible values.
#[prost(string, optional, tag = "373093386")]
pub bgp_md5: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] List of ASN ranges that the remote location is known to support. Formatted as an array of inclusive ranges {min: min-value, max: max-value}. For example, \[{min: 123, max: 123}, {min: 64512, max: 65534}\] allows the peer ASN to be 123 or anything in the range 64512-65534. This field is only advisory. Although the API accepts other ranges, these are the ranges that we recommend.
#[prost(message, repeated, tag = "475946370")]
pub bgp_peer_asn_ranges: ::prost::alloc::vec::Vec<
InterconnectAttachmentConfigurationConstraintsBgpPeerAsnRange,
>,
}
/// Nested message and enum types in `InterconnectAttachmentConfigurationConstraints`.
pub mod interconnect_attachment_configuration_constraints {
/// \[Output Only\] Whether the attachment's BGP session requires/allows/disallows BGP MD5 authentication. This can take one of the following values: MD5_OPTIONAL, MD5_REQUIRED, MD5_UNSUPPORTED. For example, a Cross-Cloud Interconnect connection to a remote cloud provider that requires BGP MD5 authentication has the interconnectRemoteLocation attachment_configuration_constraints.bgp_md5 field set to MD5_REQUIRED, and that property is propagated to the attachment. Similarly, if BGP MD5 is MD5_UNSUPPORTED, an error is returned if MD5 is requested.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum BgpMd5 {
/// A value indicating that the enum field is not set.
UndefinedBgpMd5 = 0,
/// MD5_OPTIONAL: BGP MD5 authentication is supported and can optionally be configured.
Md5Optional = 532156673,
/// MD5_REQUIRED: BGP MD5 authentication must be configured.
Md5Required = 218034496,
/// MD5_UNSUPPORTED: BGP MD5 authentication must not be configured
Md5Unsupported = 86962388,
}
impl BgpMd5 {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
BgpMd5::UndefinedBgpMd5 => "UNDEFINED_BGP_MD5",
BgpMd5::Md5Optional => "MD5_OPTIONAL",
BgpMd5::Md5Required => "MD5_REQUIRED",
BgpMd5::Md5Unsupported => "MD5_UNSUPPORTED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_BGP_MD5" => Some(Self::UndefinedBgpMd5),
"MD5_OPTIONAL" => Some(Self::Md5Optional),
"MD5_REQUIRED" => Some(Self::Md5Required),
"MD5_UNSUPPORTED" => Some(Self::Md5Unsupported),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectAttachmentConfigurationConstraintsBgpPeerAsnRange {
#[prost(uint32, optional, tag = "107876")]
pub max: ::core::option::Option<u32>,
#[prost(uint32, optional, tag = "108114")]
pub min: ::core::option::Option<u32>,
}
/// Response to the list request, and contains a list of interconnect attachments.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectAttachmentList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of InterconnectAttachment resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<InterconnectAttachment>,
/// \[Output Only\] Type of resource. Always compute#interconnectAttachmentList for lists of interconnect attachments.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Informational metadata about Partner attachments from Partners to display to customers. These fields are propagated from PARTNER_PROVIDER attachments to their corresponding PARTNER attachments.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectAttachmentPartnerMetadata {
/// Plain text name of the Interconnect this attachment is connected to, as displayed in the Partner's portal. For instance "Chicago 1". This value may be validated to match approved Partner values.
#[prost(string, optional, tag = "514963356")]
pub interconnect_name: ::core::option::Option<::prost::alloc::string::String>,
/// Plain text name of the Partner providing this attachment. This value may be validated to match approved Partner values.
#[prost(string, optional, tag = "161747874")]
pub partner_name: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the Partner's portal for this Attachment. Partners may customise this to be a deep link to the specific resource on the Partner portal. This value may be validated to match approved Partner values.
#[prost(string, optional, tag = "269182748")]
pub portal_url: ::core::option::Option<::prost::alloc::string::String>,
}
/// Information for an interconnect attachment when this belongs to an interconnect of type DEDICATED.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectAttachmentPrivateInfo {
/// \[Output Only\] 802.1q encapsulation tag to be used for traffic between Google and the customer, going to and from this network and region.
#[prost(uint32, optional, tag = "271820992")]
pub tag8021q: ::core::option::Option<u32>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectAttachmentsScopedList {
/// A list of interconnect attachments contained in this scope.
#[prost(message, repeated, tag = "425388415")]
pub interconnect_attachments: ::prost::alloc::vec::Vec<InterconnectAttachment>,
/// Informational warning which replaces the list of addresses when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Describes a single physical circuit between the Customer and Google. CircuitInfo objects are created by Google, so all fields are output only.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectCircuitInfo {
/// Customer-side demarc ID for this circuit.
#[prost(string, optional, tag = "28771859")]
pub customer_demarc_id: ::core::option::Option<::prost::alloc::string::String>,
/// Google-assigned unique ID for this circuit. Assigned at circuit turn-up.
#[prost(string, optional, tag = "262014711")]
pub google_circuit_id: ::core::option::Option<::prost::alloc::string::String>,
/// Google-side demarc ID for this circuit. Assigned at circuit turn-up and provided by Google to the customer in the LOA.
#[prost(string, optional, tag = "448196270")]
pub google_demarc_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// Diagnostics information about the Interconnect connection, which contains detailed and current technical information about Google's side of the connection.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectDiagnostics {
/// A list of InterconnectDiagnostics.ARPEntry objects, describing individual neighbors currently seen by the Google router in the ARP cache for the Interconnect. This will be empty when the Interconnect is not bundled.
#[prost(message, repeated, tag = "414591761")]
pub arp_caches: ::prost::alloc::vec::Vec<InterconnectDiagnosticsArpEntry>,
/// The aggregation type of the bundle interface.
/// Check the BundleAggregationType enum for the list of possible values.
#[prost(string, optional, tag = "434939028")]
pub bundle_aggregation_type: ::core::option::Option<::prost::alloc::string::String>,
/// The operational status of the bundle interface.
/// Check the BundleOperationalStatus enum for the list of possible values.
#[prost(string, optional, tag = "106433500")]
pub bundle_operational_status: ::core::option::Option<
::prost::alloc::string::String,
>,
/// A list of InterconnectDiagnostics.LinkStatus objects, describing the status for each link on the Interconnect.
#[prost(message, repeated, tag = "102977465")]
pub links: ::prost::alloc::vec::Vec<InterconnectDiagnosticsLinkStatus>,
/// The MAC address of the Interconnect's bundle interface.
#[prost(string, optional, tag = "332540164")]
pub mac_address: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `InterconnectDiagnostics`.
pub mod interconnect_diagnostics {
/// The aggregation type of the bundle interface.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum BundleAggregationType {
/// A value indicating that the enum field is not set.
UndefinedBundleAggregationType = 0,
/// LACP is enabled.
Lacp = 27758925,
/// LACP is disabled.
Static = 50678873,
}
impl BundleAggregationType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
BundleAggregationType::UndefinedBundleAggregationType => {
"UNDEFINED_BUNDLE_AGGREGATION_TYPE"
}
BundleAggregationType::Lacp => "BUNDLE_AGGREGATION_TYPE_LACP",
BundleAggregationType::Static => "BUNDLE_AGGREGATION_TYPE_STATIC",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_BUNDLE_AGGREGATION_TYPE" => {
Some(Self::UndefinedBundleAggregationType)
}
"BUNDLE_AGGREGATION_TYPE_LACP" => Some(Self::Lacp),
"BUNDLE_AGGREGATION_TYPE_STATIC" => Some(Self::Static),
_ => None,
}
}
}
/// The operational status of the bundle interface.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum BundleOperationalStatus {
/// A value indicating that the enum field is not set.
UndefinedBundleOperationalStatus = 0,
/// If bundleAggregationType is LACP: LACP is not established and/or all links in the bundle have DOWN operational status. If bundleAggregationType is STATIC: one or more links in the bundle has DOWN operational status.
Down = 453842693,
/// If bundleAggregationType is LACP: LACP is established and at least one link in the bundle has UP operational status. If bundleAggregationType is STATIC: all links in the bundle (typically just one) have UP operational status.
Up = 161366462,
}
impl BundleOperationalStatus {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
BundleOperationalStatus::UndefinedBundleOperationalStatus => {
"UNDEFINED_BUNDLE_OPERATIONAL_STATUS"
}
BundleOperationalStatus::Down => "BUNDLE_OPERATIONAL_STATUS_DOWN",
BundleOperationalStatus::Up => "BUNDLE_OPERATIONAL_STATUS_UP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_BUNDLE_OPERATIONAL_STATUS" => {
Some(Self::UndefinedBundleOperationalStatus)
}
"BUNDLE_OPERATIONAL_STATUS_DOWN" => Some(Self::Down),
"BUNDLE_OPERATIONAL_STATUS_UP" => Some(Self::Up),
_ => None,
}
}
}
}
/// Describing the ARP neighbor entries seen on this link
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectDiagnosticsArpEntry {
/// The IP address of this ARP neighbor.
#[prost(string, optional, tag = "406272220")]
pub ip_address: ::core::option::Option<::prost::alloc::string::String>,
/// The MAC address of this ARP neighbor.
#[prost(string, optional, tag = "332540164")]
pub mac_address: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectDiagnosticsLinkLacpStatus {
/// System ID of the port on Google's side of the LACP exchange.
#[prost(string, optional, tag = "91210405")]
pub google_system_id: ::core::option::Option<::prost::alloc::string::String>,
/// System ID of the port on the neighbor's side of the LACP exchange.
#[prost(string, optional, tag = "343821342")]
pub neighbor_system_id: ::core::option::Option<::prost::alloc::string::String>,
/// The state of a LACP link, which can take one of the following values: - ACTIVE: The link is configured and active within the bundle. - DETACHED: The link is not configured within the bundle. This means that the rest of the object should be empty.
/// Check the State enum for the list of possible values.
#[prost(string, optional, tag = "109757585")]
pub state: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `InterconnectDiagnosticsLinkLACPStatus`.
pub mod interconnect_diagnostics_link_lacp_status {
/// The state of a LACP link, which can take one of the following values: - ACTIVE: The link is configured and active within the bundle. - DETACHED: The link is not configured within the bundle. This means that the rest of the object should be empty.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// A value indicating that the enum field is not set.
UndefinedState = 0,
/// The link is configured and active within the bundle.
Active = 314733318,
/// The link is not configured within the bundle, this means the rest of the object should be empty.
Detached = 216562546,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::UndefinedState => "UNDEFINED_STATE",
State::Active => "ACTIVE",
State::Detached => "DETACHED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATE" => Some(Self::UndefinedState),
"ACTIVE" => Some(Self::Active),
"DETACHED" => Some(Self::Detached),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectDiagnosticsLinkOpticalPower {
/// The status of the current value when compared to the warning and alarm levels for the receiving or transmitting transceiver. Possible states include: - OK: The value has not crossed a warning threshold. - LOW_WARNING: The value has crossed below the low warning threshold. - HIGH_WARNING: The value has crossed above the high warning threshold. - LOW_ALARM: The value has crossed below the low alarm threshold. - HIGH_ALARM: The value has crossed above the high alarm threshold.
/// Check the State enum for the list of possible values.
#[prost(string, optional, tag = "109757585")]
pub state: ::core::option::Option<::prost::alloc::string::String>,
/// Value of the current receiving or transmitting optical power, read in dBm. Take a known good optical value, give it a 10% margin and trigger warnings relative to that value. In general, a -7dBm warning and a -11dBm alarm are good optical value estimates for most links.
#[prost(float, optional, tag = "111972721")]
pub value: ::core::option::Option<f32>,
}
/// Nested message and enum types in `InterconnectDiagnosticsLinkOpticalPower`.
pub mod interconnect_diagnostics_link_optical_power {
/// The status of the current value when compared to the warning and alarm levels for the receiving or transmitting transceiver. Possible states include: - OK: The value has not crossed a warning threshold. - LOW_WARNING: The value has crossed below the low warning threshold. - HIGH_WARNING: The value has crossed above the high warning threshold. - LOW_ALARM: The value has crossed below the low alarm threshold. - HIGH_ALARM: The value has crossed above the high alarm threshold.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// A value indicating that the enum field is not set.
UndefinedState = 0,
/// The value has crossed above the high alarm threshold.
HighAlarm = 305363284,
/// The value of the current optical power has crossed above the high warning threshold.
HighWarning = 220984799,
/// The value of the current optical power has crossed below the low alarm threshold.
LowAlarm = 316659046,
/// The value of the current optical power has crossed below the low warning threshold.
LowWarning = 338793841,
/// The value of the current optical power has not crossed a warning threshold.
Ok = 2524,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::UndefinedState => "UNDEFINED_STATE",
State::HighAlarm => "HIGH_ALARM",
State::HighWarning => "HIGH_WARNING",
State::LowAlarm => "LOW_ALARM",
State::LowWarning => "LOW_WARNING",
State::Ok => "OK",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATE" => Some(Self::UndefinedState),
"HIGH_ALARM" => Some(Self::HighAlarm),
"HIGH_WARNING" => Some(Self::HighWarning),
"LOW_ALARM" => Some(Self::LowAlarm),
"LOW_WARNING" => Some(Self::LowWarning),
"OK" => Some(Self::Ok),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectDiagnosticsLinkStatus {
/// A list of InterconnectDiagnostics.ARPEntry objects, describing the ARP neighbor entries seen on this link. This will be empty if the link is bundled
#[prost(message, repeated, tag = "414591761")]
pub arp_caches: ::prost::alloc::vec::Vec<InterconnectDiagnosticsArpEntry>,
/// The unique ID for this link assigned during turn up by Google.
#[prost(string, optional, tag = "225180977")]
pub circuit_id: ::core::option::Option<::prost::alloc::string::String>,
/// The Demarc address assigned by Google and provided in the LoA.
#[prost(string, optional, tag = "51084")]
pub google_demarc: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "361210415")]
pub lacp_status: ::core::option::Option<InterconnectDiagnosticsLinkLacpStatus>,
/// Describes the status of MACsec encryption on this link.
#[prost(message, optional, tag = "528867490")]
pub macsec: ::core::option::Option<InterconnectDiagnosticsMacsecStatus>,
/// The operational status of the link.
/// Check the OperationalStatus enum for the list of possible values.
#[prost(string, optional, tag = "201070847")]
pub operational_status: ::core::option::Option<::prost::alloc::string::String>,
/// An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of the received light level.
#[prost(message, optional, tag = "244717279")]
pub receiving_optical_power: ::core::option::Option<
InterconnectDiagnosticsLinkOpticalPower,
>,
/// An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of the transmitted light level.
#[prost(message, optional, tag = "459431197")]
pub transmitting_optical_power: ::core::option::Option<
InterconnectDiagnosticsLinkOpticalPower,
>,
}
/// Nested message and enum types in `InterconnectDiagnosticsLinkStatus`.
pub mod interconnect_diagnostics_link_status {
/// The operational status of the link.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum OperationalStatus {
/// A value indicating that the enum field is not set.
UndefinedOperationalStatus = 0,
/// The interface is unable to communicate with the remote end.
LinkOperationalStatusDown = 281653885,
/// The interface has low level communication with the remote end.
LinkOperationalStatusUp = 305879862,
}
impl OperationalStatus {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
OperationalStatus::UndefinedOperationalStatus => {
"UNDEFINED_OPERATIONAL_STATUS"
}
OperationalStatus::LinkOperationalStatusDown => {
"LINK_OPERATIONAL_STATUS_DOWN"
}
OperationalStatus::LinkOperationalStatusUp => {
"LINK_OPERATIONAL_STATUS_UP"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_OPERATIONAL_STATUS" => Some(Self::UndefinedOperationalStatus),
"LINK_OPERATIONAL_STATUS_DOWN" => Some(Self::LinkOperationalStatusDown),
"LINK_OPERATIONAL_STATUS_UP" => Some(Self::LinkOperationalStatusUp),
_ => None,
}
}
}
}
/// Describes the status of MACsec encryption on the link.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectDiagnosticsMacsecStatus {
/// Indicates the Connectivity Association Key Name (CKN) currently being used if MACsec is operational.
#[prost(string, optional, tag = "98566")]
pub ckn: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether or not MACsec is operational on this link.
#[prost(bool, optional, tag = "129704914")]
pub operational: ::core::option::Option<bool>,
}
/// Response to the list request, and contains a list of interconnects.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Interconnect resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Interconnect>,
/// \[Output Only\] Type of resource. Always compute#interconnectList for lists of interconnects.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represents an Interconnect Attachment (VLAN) Location resource. You can use this resource to find location details about an Interconnect attachment (VLAN). For more information about interconnect attachments, read Creating VLAN Attachments.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectLocation {
/// \[Output Only\] The postal address of the Point of Presence, each line in the address is separated by a newline character.
#[prost(string, optional, tag = "462920692")]
pub address: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Availability zone for this InterconnectLocation. Within a metropolitan area (metro), maintenance will not be simultaneously scheduled in more than one availability zone. Example: "zone1" or "zone2".
#[prost(string, optional, tag = "158459920")]
pub availability_zone: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output only\] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC
/// Check the AvailableFeatures enum for the list of possible values.
#[prost(string, repeated, tag = "496344307")]
pub available_features: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output only\] List of link types available at this InterconnectLocation, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR - LINK_TYPE_ETHERNET_100G_LR
/// Check the AvailableLinkTypes enum for the list of possible values.
#[prost(string, repeated, tag = "509504298")]
pub available_link_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Metropolitan area designator that indicates which city an interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands".
#[prost(string, optional, tag = "3053931")]
pub city: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA
/// Check the Continent enum for the list of possible values.
#[prost(string, optional, tag = "133442996")]
pub continent: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] An optional description of the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The name of the provider for this facility (e.g., EQUINIX).
#[prost(string, optional, tag = "533303309")]
pub facility_provider: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1).
#[prost(string, optional, tag = "87269125")]
pub facility_provider_facility_id: ::core::option::Option<
::prost::alloc::string::String,
>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#interconnectLocation for interconnect locations.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Name of the resource.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb).
#[prost(string, optional, tag = "536567094")]
pub peeringdb_facility_id: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
#[prost(message, repeated, tag = "312194170")]
pub region_infos: ::prost::alloc::vec::Vec<InterconnectLocationRegionInfo>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The status of this InterconnectLocation, which can take one of the following values: - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Reserved for future use.
#[prost(bool, optional, tag = "83983214")]
pub supports_pzs: ::core::option::Option<bool>,
}
/// Nested message and enum types in `InterconnectLocation`.
pub mod interconnect_location {
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum AvailableFeatures {
/// A value indicating that the enum field is not set.
UndefinedAvailableFeatures = 0,
/// Media Access Control security (MACsec)
IfMacsec = 396279300,
}
impl AvailableFeatures {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
AvailableFeatures::UndefinedAvailableFeatures => {
"UNDEFINED_AVAILABLE_FEATURES"
}
AvailableFeatures::IfMacsec => "IF_MACSEC",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_AVAILABLE_FEATURES" => Some(Self::UndefinedAvailableFeatures),
"IF_MACSEC" => Some(Self::IfMacsec),
_ => None,
}
}
}
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum AvailableLinkTypes {
/// A value indicating that the enum field is not set.
UndefinedAvailableLinkTypes = 0,
/// 100G Ethernet, LR Optics.
LinkTypeEthernet100gLr = 337672551,
/// 10G Ethernet, LR Optics. \[(rate_bps) = 10000000000\];
LinkTypeEthernet10gLr = 236739749,
}
impl AvailableLinkTypes {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
AvailableLinkTypes::UndefinedAvailableLinkTypes => {
"UNDEFINED_AVAILABLE_LINK_TYPES"
}
AvailableLinkTypes::LinkTypeEthernet100gLr => {
"LINK_TYPE_ETHERNET_100G_LR"
}
AvailableLinkTypes::LinkTypeEthernet10gLr => "LINK_TYPE_ETHERNET_10G_LR",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_AVAILABLE_LINK_TYPES" => {
Some(Self::UndefinedAvailableLinkTypes)
}
"LINK_TYPE_ETHERNET_100G_LR" => Some(Self::LinkTypeEthernet100gLr),
"LINK_TYPE_ETHERNET_10G_LR" => Some(Self::LinkTypeEthernet10gLr),
_ => None,
}
}
}
/// \[Output Only\] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Continent {
/// A value indicating that the enum field is not set.
UndefinedContinent = 0,
Africa = 317443706,
AsiaPac = 119782269,
CAfrica = 71993846,
CAsiaPac = 465668089,
CEurope = 200369438,
CNorthAmerica = 275697048,
CSouthAmerica = 397149792,
Europe = 445819298,
NorthAmerica = 448015508,
SouthAmerica = 32597340,
}
impl Continent {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Continent::UndefinedContinent => "UNDEFINED_CONTINENT",
Continent::Africa => "AFRICA",
Continent::AsiaPac => "ASIA_PAC",
Continent::CAfrica => "C_AFRICA",
Continent::CAsiaPac => "C_ASIA_PAC",
Continent::CEurope => "C_EUROPE",
Continent::CNorthAmerica => "C_NORTH_AMERICA",
Continent::CSouthAmerica => "C_SOUTH_AMERICA",
Continent::Europe => "EUROPE",
Continent::NorthAmerica => "NORTH_AMERICA",
Continent::SouthAmerica => "SOUTH_AMERICA",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_CONTINENT" => Some(Self::UndefinedContinent),
"AFRICA" => Some(Self::Africa),
"ASIA_PAC" => Some(Self::AsiaPac),
"C_AFRICA" => Some(Self::CAfrica),
"C_ASIA_PAC" => Some(Self::CAsiaPac),
"C_EUROPE" => Some(Self::CEurope),
"C_NORTH_AMERICA" => Some(Self::CNorthAmerica),
"C_SOUTH_AMERICA" => Some(Self::CSouthAmerica),
"EUROPE" => Some(Self::Europe),
"NORTH_AMERICA" => Some(Self::NorthAmerica),
"SOUTH_AMERICA" => Some(Self::SouthAmerica),
_ => None,
}
}
}
/// \[Output Only\] The status of this InterconnectLocation, which can take one of the following values: - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// The InterconnectLocation is available for provisioning new Interconnects.
Available = 442079913,
/// The InterconnectLocation is closed for provisioning new Interconnects.
Closed = 380163436,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Available => "AVAILABLE",
Status::Closed => "CLOSED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"AVAILABLE" => Some(Self::Available),
"CLOSED" => Some(Self::Closed),
_ => None,
}
}
}
}
/// Response to the list request, and contains a list of interconnect locations.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectLocationList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of InterconnectLocation resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<InterconnectLocation>,
/// \[Output Only\] Type of resource. Always compute#interconnectLocationList for lists of interconnect locations.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Information about any potential InterconnectAttachments between an Interconnect at a specific InterconnectLocation, and a specific Cloud Region.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectLocationRegionInfo {
/// Expected round-trip time in milliseconds, from this InterconnectLocation to a VM in this region.
#[prost(int64, optional, tag = "422543866")]
pub expected_rtt_ms: ::core::option::Option<i64>,
/// Identifies the network presence of this location.
/// Check the LocationPresence enum for the list of possible values.
#[prost(string, optional, tag = "101517893")]
pub location_presence: ::core::option::Option<::prost::alloc::string::String>,
/// URL for the region of this location.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `InterconnectLocationRegionInfo`.
pub mod interconnect_location_region_info {
/// Identifies the network presence of this location.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum LocationPresence {
/// A value indicating that the enum field is not set.
UndefinedLocationPresence = 0,
/// This region is not in any common network presence with this InterconnectLocation.
Global = 494663587,
/// This region shares the same regional network presence as this InterconnectLocation.
LocalRegion = 403535464,
/// \[Deprecated\] This region is not in any common network presence with this InterconnectLocation.
LpGlobal = 429584062,
/// \[Deprecated\] This region shares the same regional network presence as this InterconnectLocation.
LpLocalRegion = 488598851,
}
impl LocationPresence {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
LocationPresence::UndefinedLocationPresence => {
"UNDEFINED_LOCATION_PRESENCE"
}
LocationPresence::Global => "GLOBAL",
LocationPresence::LocalRegion => "LOCAL_REGION",
LocationPresence::LpGlobal => "LP_GLOBAL",
LocationPresence::LpLocalRegion => "LP_LOCAL_REGION",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_LOCATION_PRESENCE" => Some(Self::UndefinedLocationPresence),
"GLOBAL" => Some(Self::Global),
"LOCAL_REGION" => Some(Self::LocalRegion),
"LP_GLOBAL" => Some(Self::LpGlobal),
"LP_LOCAL_REGION" => Some(Self::LpLocalRegion),
_ => None,
}
}
}
}
/// Configuration information for enabling Media Access Control security (MACsec) on this Cloud Interconnect connection between Google and your on-premises router.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectMacsec {
/// If set to true, the Interconnect connection is configured with a should-secure MACsec security policy, that allows the Google router to fallback to cleartext traffic if the MKA session cannot be established. By default, the Interconnect connection is configured with a must-secure security policy that drops all traffic if the MKA session cannot be established with your router.
#[prost(bool, optional, tag = "532597451")]
pub fail_open: ::core::option::Option<bool>,
/// Required. A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.
#[prost(message, repeated, tag = "420308466")]
pub pre_shared_keys: ::prost::alloc::vec::Vec<InterconnectMacsecPreSharedKey>,
}
/// MACsec configuration information for the Interconnect connection. Contains the generated Connectivity Association Key Name (CKN) and the key (CAK) for this Interconnect connection.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectMacsecConfig {
/// A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.
#[prost(message, repeated, tag = "420308466")]
pub pre_shared_keys: ::prost::alloc::vec::Vec<InterconnectMacsecConfigPreSharedKey>,
}
/// Describes a pre-shared key used to setup MACsec in static connectivity association key (CAK) mode.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectMacsecConfigPreSharedKey {
/// An auto-generated Connectivity Association Key (CAK) for this key.
#[prost(string, optional, tag = "98253")]
pub cak: ::core::option::Option<::prost::alloc::string::String>,
/// An auto-generated Connectivity Association Key Name (CKN) for this key.
#[prost(string, optional, tag = "98566")]
pub ckn: ::core::option::Option<::prost::alloc::string::String>,
/// User provided name for this pre-shared key.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// User provided timestamp on or after which this key is valid.
#[prost(string, optional, tag = "37467274")]
pub start_time: ::core::option::Option<::prost::alloc::string::String>,
}
/// Describes a pre-shared key used to setup MACsec in static connectivity association key (CAK) mode.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectMacsecPreSharedKey {
/// Required. A name for this pre-shared key. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// A RFC3339 timestamp on or after which the key is valid. startTime can be in the future. If the keychain has a single key, startTime can be omitted. If the keychain has multiple keys, startTime is mandatory for each key. The start times of keys must be in increasing order. The start times of two consecutive keys must be at least 6 hours apart.
#[prost(string, optional, tag = "37467274")]
pub start_time: ::core::option::Option<::prost::alloc::string::String>,
}
/// Description of a planned outage on this Interconnect.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectOutageNotification {
/// If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs that will be affected.
#[prost(string, repeated, tag = "177717013")]
pub affected_circuits: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// A description about the purpose of the outage.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Scheduled end time for the outage (milliseconds since Unix epoch).
#[prost(int64, optional, tag = "114938801")]
pub end_time: ::core::option::Option<i64>,
/// Form this outage is expected to take, which can take one of the following values: - OUTAGE: The Interconnect may be completely out of service for some or all of the specified window. - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole should remain up, but with reduced bandwidth. Note that the versions of this enum prefixed with "IT_" have been deprecated in favor of the unprefixed values.
/// Check the IssueType enum for the list of possible values.
#[prost(string, optional, tag = "369639136")]
pub issue_type: ::core::option::Option<::prost::alloc::string::String>,
/// Unique identifier for this outage notification.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The party that generated this notification, which can take the following value: - GOOGLE: this notification as generated by Google. Note that the value of NSRC_GOOGLE has been deprecated in favor of GOOGLE.
/// Check the Source enum for the list of possible values.
#[prost(string, optional, tag = "177235995")]
pub source: ::core::option::Option<::prost::alloc::string::String>,
/// Scheduled start time for the outage (milliseconds since Unix epoch).
#[prost(int64, optional, tag = "37467274")]
pub start_time: ::core::option::Option<i64>,
/// State of this notification, which can take one of the following values: - ACTIVE: This outage notification is active. The event could be in the past, present, or future. See start_time and end_time for scheduling. - CANCELLED: The outage associated with this notification was cancelled before the outage was due to start. - COMPLETED: The outage associated with this notification is complete. Note that the versions of this enum prefixed with "NS_" have been deprecated in favor of the unprefixed values.
/// Check the State enum for the list of possible values.
#[prost(string, optional, tag = "109757585")]
pub state: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `InterconnectOutageNotification`.
pub mod interconnect_outage_notification {
/// Form this outage is expected to take, which can take one of the following values: - OUTAGE: The Interconnect may be completely out of service for some or all of the specified window. - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole should remain up, but with reduced bandwidth. Note that the versions of this enum prefixed with "IT_" have been deprecated in favor of the unprefixed values.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum IssueType {
/// A value indicating that the enum field is not set.
UndefinedIssueType = 0,
/// \[Deprecated\] The Interconnect may be completely out of service for some or all of the specified window.
ItOutage = 175779973,
/// \[Deprecated\] Some circuits comprising the Interconnect will be out of service during the expected window. The interconnect as a whole should remain up, albeit with reduced bandwidth.
ItPartialOutage = 92103971,
/// The Interconnect may be completely out of service for some or all of the specified window.
Outage = 195285745,
/// Some circuits comprising the Interconnect will be out of service during the expected window. The interconnect as a whole should remain up, albeit with reduced bandwidth.
PartialOutage = 147053455,
}
impl IssueType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
IssueType::UndefinedIssueType => "UNDEFINED_ISSUE_TYPE",
IssueType::ItOutage => "IT_OUTAGE",
IssueType::ItPartialOutage => "IT_PARTIAL_OUTAGE",
IssueType::Outage => "OUTAGE",
IssueType::PartialOutage => "PARTIAL_OUTAGE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ISSUE_TYPE" => Some(Self::UndefinedIssueType),
"IT_OUTAGE" => Some(Self::ItOutage),
"IT_PARTIAL_OUTAGE" => Some(Self::ItPartialOutage),
"OUTAGE" => Some(Self::Outage),
"PARTIAL_OUTAGE" => Some(Self::PartialOutage),
_ => None,
}
}
}
/// The party that generated this notification, which can take the following value: - GOOGLE: this notification as generated by Google. Note that the value of NSRC_GOOGLE has been deprecated in favor of GOOGLE.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Source {
/// A value indicating that the enum field is not set.
UndefinedSource = 0,
/// This notification was generated by Google.
Google = 497439289,
/// \[Deprecated\] This notification was generated by Google.
NsrcGoogle = 510574562,
}
impl Source {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Source::UndefinedSource => "UNDEFINED_SOURCE",
Source::Google => "GOOGLE",
Source::NsrcGoogle => "NSRC_GOOGLE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_SOURCE" => Some(Self::UndefinedSource),
"GOOGLE" => Some(Self::Google),
"NSRC_GOOGLE" => Some(Self::NsrcGoogle),
_ => None,
}
}
}
/// State of this notification, which can take one of the following values: - ACTIVE: This outage notification is active. The event could be in the past, present, or future. See start_time and end_time for scheduling. - CANCELLED: The outage associated with this notification was cancelled before the outage was due to start. - COMPLETED: The outage associated with this notification is complete. Note that the versions of this enum prefixed with "NS_" have been deprecated in favor of the unprefixed values.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// A value indicating that the enum field is not set.
UndefinedState = 0,
/// This outage notification is active. The event could be in the future, present, or past. See start_time and end_time for scheduling.
Active = 314733318,
/// The outage associated with this notification was cancelled before the outage was due to start.
Cancelled = 41957681,
/// The outage associated with this notification is complete.
Completed = 309921323,
/// \[Deprecated\] This outage notification is active. The event could be in the future, present, or past. See start_time and end_time for scheduling.
NsActive = 252563136,
/// \[Deprecated\] The outage associated with this notification was canceled before the outage was due to start.
NsCanceled = 506579411,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::UndefinedState => "UNDEFINED_STATE",
State::Active => "ACTIVE",
State::Cancelled => "CANCELLED",
State::Completed => "COMPLETED",
State::NsActive => "NS_ACTIVE",
State::NsCanceled => "NS_CANCELED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATE" => Some(Self::UndefinedState),
"ACTIVE" => Some(Self::Active),
"CANCELLED" => Some(Self::Cancelled),
"COMPLETED" => Some(Self::Completed),
"NS_ACTIVE" => Some(Self::NsActive),
"NS_CANCELED" => Some(Self::NsCanceled),
_ => None,
}
}
}
}
/// Represents a Cross-Cloud Interconnect Remote Location resource. You can use this resource to find remote location details about an Interconnect attachment (VLAN).
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectRemoteLocation {
/// \[Output Only\] The postal address of the Point of Presence, each line in the address is separated by a newline character.
#[prost(string, optional, tag = "462920692")]
pub address: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Subset of fields from InterconnectAttachment's |configurationConstraints| field that apply to all attachments for this remote location.
#[prost(message, optional, tag = "326825041")]
pub attachment_configuration_constraints: ::core::option::Option<
InterconnectAttachmentConfigurationConstraints,
>,
/// \[Output Only\] Metropolitan area designator that indicates which city an interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands".
#[prost(string, optional, tag = "3053931")]
pub city: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Constraints on the parameters for creating Cross-Cloud Interconnect and associated InterconnectAttachments.
#[prost(message, optional, tag = "3909174")]
pub constraints: ::core::option::Option<InterconnectRemoteLocationConstraints>,
/// \[Output Only\] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA
/// Check the Continent enum for the list of possible values.
#[prost(string, optional, tag = "133442996")]
pub continent: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] An optional description of the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The name of the provider for this facility (e.g., EQUINIX).
#[prost(string, optional, tag = "533303309")]
pub facility_provider: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1).
#[prost(string, optional, tag = "87269125")]
pub facility_provider_facility_id: ::core::option::Option<
::prost::alloc::string::String,
>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#interconnectRemoteLocation for interconnect remote locations.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Link Aggregation Control Protocol (LACP) constraints, which can take one of the following values: LACP_SUPPORTED, LACP_UNSUPPORTED
/// Check the Lacp enum for the list of possible values.
#[prost(string, optional, tag = "3313826")]
pub lacp: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The maximum number of 100 Gbps ports supported in a link aggregation group (LAG). When linkType is 100 Gbps, requestedLinkCount cannot exceed max_lag_size_100_gbps.
#[prost(int32, optional, tag = "245219253")]
pub max_lag_size100_gbps: ::core::option::Option<i32>,
/// \[Output Only\] The maximum number of 10 Gbps ports supported in a link aggregation group (LAG). When linkType is 10 Gbps, requestedLinkCount cannot exceed max_lag_size_10_gbps.
#[prost(int32, optional, tag = "294007573")]
pub max_lag_size10_gbps: ::core::option::Option<i32>,
/// \[Output Only\] Name of the resource.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb).
#[prost(string, optional, tag = "536567094")]
pub peeringdb_facility_id: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Permitted connections.
#[prost(message, repeated, tag = "442063278")]
pub permitted_connections: ::prost::alloc::vec::Vec<
InterconnectRemoteLocationPermittedConnections,
>,
/// \[Output Only\] Indicates the service provider present at the remote location. Example values: "Amazon Web Services", "Microsoft Azure".
#[prost(string, optional, tag = "391954364")]
pub remote_service: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The status of this InterconnectRemoteLocation, which can take one of the following values: - CLOSED: The InterconnectRemoteLocation is closed and is unavailable for provisioning new Cross-Cloud Interconnects. - AVAILABLE: The InterconnectRemoteLocation is available for provisioning new Cross-Cloud Interconnects.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `InterconnectRemoteLocation`.
pub mod interconnect_remote_location {
/// \[Output Only\] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Continent {
/// A value indicating that the enum field is not set.
UndefinedContinent = 0,
Africa = 317443706,
AsiaPac = 119782269,
Europe = 445819298,
NorthAmerica = 448015508,
SouthAmerica = 32597340,
}
impl Continent {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Continent::UndefinedContinent => "UNDEFINED_CONTINENT",
Continent::Africa => "AFRICA",
Continent::AsiaPac => "ASIA_PAC",
Continent::Europe => "EUROPE",
Continent::NorthAmerica => "NORTH_AMERICA",
Continent::SouthAmerica => "SOUTH_AMERICA",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_CONTINENT" => Some(Self::UndefinedContinent),
"AFRICA" => Some(Self::Africa),
"ASIA_PAC" => Some(Self::AsiaPac),
"EUROPE" => Some(Self::Europe),
"NORTH_AMERICA" => Some(Self::NorthAmerica),
"SOUTH_AMERICA" => Some(Self::SouthAmerica),
_ => None,
}
}
}
/// \[Output Only\] Link Aggregation Control Protocol (LACP) constraints, which can take one of the following values: LACP_SUPPORTED, LACP_UNSUPPORTED
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Lacp {
/// A value indicating that the enum field is not set.
UndefinedLacp = 0,
/// LACP_SUPPORTED: LACP is supported, and enabled by default on the Cross-Cloud Interconnect.
Supported = 339576113,
/// LACP_UNSUPPORTED: LACP is not supported and is not be enabled on this port. GetDiagnostics shows bundleAggregationType as "static". GCP does not support LAGs without LACP, so requestedLinkCount must be 1.
Unsupported = 203930104,
}
impl Lacp {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Lacp::UndefinedLacp => "UNDEFINED_LACP",
Lacp::Supported => "LACP_SUPPORTED",
Lacp::Unsupported => "LACP_UNSUPPORTED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_LACP" => Some(Self::UndefinedLacp),
"LACP_SUPPORTED" => Some(Self::Supported),
"LACP_UNSUPPORTED" => Some(Self::Unsupported),
_ => None,
}
}
}
/// \[Output Only\] The status of this InterconnectRemoteLocation, which can take one of the following values: - CLOSED: The InterconnectRemoteLocation is closed and is unavailable for provisioning new Cross-Cloud Interconnects. - AVAILABLE: The InterconnectRemoteLocation is available for provisioning new Cross-Cloud Interconnects.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// The InterconnectRemoteLocation is available for provisioning new Cross-Cloud Interconnects.
Available = 442079913,
/// The InterconnectRemoteLocation is closed for provisioning new Cross-Cloud Interconnects.
Closed = 380163436,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Available => "AVAILABLE",
Status::Closed => "CLOSED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"AVAILABLE" => Some(Self::Available),
"CLOSED" => Some(Self::Closed),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectRemoteLocationConstraints {
/// \[Output Only\] Port pair remote location constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, PORT_PAIR_MATCHING_REMOTE_LOCATION. GCP's API refers only to individual ports, but the UI uses this field when ordering a pair of ports, to prevent users from accidentally ordering something that is incompatible with their cloud provider. Specifically, when ordering a redundant pair of Cross-Cloud Interconnect ports, and one of them uses a remote location with portPairMatchingRemoteLocation set to matching, the UI requires that both ports use the same remote location.
/// Check the PortPairRemoteLocation enum for the list of possible values.
#[prost(string, optional, tag = "495917351")]
pub port_pair_remote_location: ::core::option::Option<
::prost::alloc::string::String,
>,
/// \[Output Only\] Port pair VLAN constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN
/// Check the PortPairVlan enum for the list of possible values.
#[prost(string, optional, tag = "478214506")]
pub port_pair_vlan: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] [min-length, max-length] The minimum and maximum value (inclusive) for the IPv4 subnet length. For example, an interconnectRemoteLocation for Azure has {min: 30, max: 30} because Azure requires /30 subnets. This range specifies the values supported by both cloud providers. Interconnect currently supports /29 and /30 IPv4 subnet lengths. If a remote cloud has no constraint on IPv4 subnet length, the range would thus be {min: 29, max: 30}.
#[prost(message, optional, tag = "184473670")]
pub subnet_length_range: ::core::option::Option<
InterconnectRemoteLocationConstraintsSubnetLengthRange,
>,
}
/// Nested message and enum types in `InterconnectRemoteLocationConstraints`.
pub mod interconnect_remote_location_constraints {
/// \[Output Only\] Port pair remote location constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, PORT_PAIR_MATCHING_REMOTE_LOCATION. GCP's API refers only to individual ports, but the UI uses this field when ordering a pair of ports, to prevent users from accidentally ordering something that is incompatible with their cloud provider. Specifically, when ordering a redundant pair of Cross-Cloud Interconnect ports, and one of them uses a remote location with portPairMatchingRemoteLocation set to matching, the UI requires that both ports use the same remote location.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum PortPairRemoteLocation {
/// A value indicating that the enum field is not set.
UndefinedPortPairRemoteLocation = 0,
/// If PORT_PAIR_MATCHING_REMOTE_LOCATION, the remote cloud provider allocates ports in pairs, and the user should choose the same remote location for both ports.
PortPairMatchingRemoteLocation = 207291859,
/// If PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, a user may opt to provision a redundant pair of Cross-Cloud Interconnects using two different remote locations in the same city.
PortPairUnconstrainedRemoteLocation = 60609829,
}
impl PortPairRemoteLocation {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
PortPairRemoteLocation::UndefinedPortPairRemoteLocation => {
"UNDEFINED_PORT_PAIR_REMOTE_LOCATION"
}
PortPairRemoteLocation::PortPairMatchingRemoteLocation => {
"PORT_PAIR_MATCHING_REMOTE_LOCATION"
}
PortPairRemoteLocation::PortPairUnconstrainedRemoteLocation => {
"PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PORT_PAIR_REMOTE_LOCATION" => {
Some(Self::UndefinedPortPairRemoteLocation)
}
"PORT_PAIR_MATCHING_REMOTE_LOCATION" => {
Some(Self::PortPairMatchingRemoteLocation)
}
"PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION" => {
Some(Self::PortPairUnconstrainedRemoteLocation)
}
_ => None,
}
}
}
/// \[Output Only\] Port pair VLAN constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum PortPairVlan {
/// A value indicating that the enum field is not set.
UndefinedPortPairVlan = 0,
/// If PORT_PAIR_MATCHING_VLAN, the Interconnect for this attachment is part of a pair of ports that should have matching VLAN allocations. This occurs with Cross-Cloud Interconnect to Azure remote locations. While GCP's API does not explicitly group pairs of ports, the UI uses this field to ensure matching VLAN ids when configuring a redundant VLAN pair.
PortPairMatchingVlan = 250295358,
/// PORT_PAIR_UNCONSTRAINED_VLAN means there is no constraint.
PortPairUnconstrainedVlan = 175227948,
}
impl PortPairVlan {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
PortPairVlan::UndefinedPortPairVlan => "UNDEFINED_PORT_PAIR_VLAN",
PortPairVlan::PortPairMatchingVlan => "PORT_PAIR_MATCHING_VLAN",
PortPairVlan::PortPairUnconstrainedVlan => "PORT_PAIR_UNCONSTRAINED_VLAN",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PORT_PAIR_VLAN" => Some(Self::UndefinedPortPairVlan),
"PORT_PAIR_MATCHING_VLAN" => Some(Self::PortPairMatchingVlan),
"PORT_PAIR_UNCONSTRAINED_VLAN" => Some(Self::PortPairUnconstrainedVlan),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectRemoteLocationConstraintsSubnetLengthRange {
#[prost(int32, optional, tag = "107876")]
pub max: ::core::option::Option<i32>,
#[prost(int32, optional, tag = "108114")]
pub min: ::core::option::Option<i32>,
}
/// Response to the list request, and contains a list of interconnect remote locations.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectRemoteLocationList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of InterconnectRemoteLocation resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<InterconnectRemoteLocation>,
/// \[Output Only\] Type of resource. Always compute#interconnectRemoteLocationList for lists of interconnect remote locations.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token lets you get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectRemoteLocationPermittedConnections {
/// \[Output Only\] URL of an Interconnect location that is permitted to connect to this Interconnect remote location.
#[prost(string, optional, tag = "492235846")]
pub interconnect_location: ::core::option::Option<::prost::alloc::string::String>,
}
/// Response for the InterconnectsGetDiagnosticsRequest.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectsGetDiagnosticsResponse {
#[prost(message, optional, tag = "139315229")]
pub result: ::core::option::Option<InterconnectDiagnostics>,
}
/// Response for the InterconnectsGetMacsecConfigRequest.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterconnectsGetMacsecConfigResponse {
/// end_interface: MixerGetResponseWithEtagBuilder
#[prost(string, optional, tag = "3123477")]
pub etag: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "139315229")]
pub result: ::core::option::Option<InterconnectMacsecConfig>,
}
/// A request message for UrlMaps.InvalidateCache. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InvalidateCacheUrlMapRequest {
/// The body resource for this request
#[prost(message, optional, tag = "312795565")]
pub cache_invalidation_rule_resource: ::core::option::Option<CacheInvalidationRule>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the UrlMap scoping this request.
#[prost(string, tag = "367020684")]
pub url_map: ::prost::alloc::string::String,
}
/// Metadata
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Items {
/// Key for the metadata entry. Keys must conform to the following regexp: \[a-zA-Z0-9-_\]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
#[prost(string, optional, tag = "106079")]
pub key: ::core::option::Option<::prost::alloc::string::String>,
/// Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).
#[prost(string, optional, tag = "111972721")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a License resource. A License represents billing and aggregate usage data for public and marketplace images. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct License {
/// \[Output Only\] Deprecated. This field no longer reflects whether a license charges a usage fee.
#[prost(bool, optional, tag = "372412622")]
pub charges_use_fee: ::core::option::Option<bool>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional textual description of the resource; provided by the client when the resource is created.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of resource. Always compute#license for licenses.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique code used to attach this license to images, snapshots, and disks.
#[prost(uint64, optional, tag = "1467179")]
pub license_code: ::core::option::Option<u64>,
/// Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "214292769")]
pub resource_requirements: ::core::option::Option<LicenseResourceRequirements>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
#[prost(bool, optional, tag = "4349893")]
pub transferable: ::core::option::Option<bool>,
}
/// Represents a License Code resource. A License Code is a unique identifier used to represent a license resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LicenseCode {
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Description of this License Code.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of resource. Always compute#licenseCode for licenses.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL and description aliases of Licenses with the same License Code.
#[prost(message, repeated, tag = "43550930")]
pub license_alias: ::prost::alloc::vec::Vec<LicenseCodeLicenseAlias>,
/// \[Output Only\] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Current state of this License Code.
/// Check the State enum for the list of possible values.
#[prost(string, optional, tag = "109757585")]
pub state: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.
#[prost(bool, optional, tag = "4349893")]
pub transferable: ::core::option::Option<bool>,
}
/// Nested message and enum types in `LicenseCode`.
pub mod license_code {
/// \[Output Only\] Current state of this License Code.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// A value indicating that the enum field is not set.
UndefinedState = 0,
/// Machines are not allowed to attach boot disks with this License Code. Requests to create new resources with this license will be rejected.
Disabled = 516696700,
/// Use is allowed for anyone with USE_READ_ONLY access to this License Code.
Enabled = 182130465,
/// Use of this license is limited to a project whitelist.
Restricted = 261551195,
Unspecified = 470755401,
/// Reserved state.
Terminated = 250018339,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::UndefinedState => "UNDEFINED_STATE",
State::Disabled => "DISABLED",
State::Enabled => "ENABLED",
State::Restricted => "RESTRICTED",
State::Unspecified => "STATE_UNSPECIFIED",
State::Terminated => "TERMINATED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATE" => Some(Self::UndefinedState),
"DISABLED" => Some(Self::Disabled),
"ENABLED" => Some(Self::Enabled),
"RESTRICTED" => Some(Self::Restricted),
"STATE_UNSPECIFIED" => Some(Self::Unspecified),
"TERMINATED" => Some(Self::Terminated),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LicenseCodeLicenseAlias {
/// \[Output Only\] Description of this License Code.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of license corresponding to this License Code.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
}
/// Commitment for a particular license resource.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LicenseResourceCommitment {
/// The number of licenses purchased.
#[prost(int64, optional, tag = "196759640")]
pub amount: ::core::option::Option<i64>,
/// Specifies the core range of the instance for which this license applies.
#[prost(string, optional, tag = "32482324")]
pub cores_per_license: ::core::option::Option<::prost::alloc::string::String>,
/// Any applicable license URI.
#[prost(string, optional, tag = "166757441")]
pub license: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LicenseResourceRequirements {
/// Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
#[prost(int32, optional, tag = "477964836")]
pub min_guest_cpu_count: ::core::option::Option<i32>,
/// Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
#[prost(int32, optional, tag = "504785894")]
pub min_memory_mb: ::core::option::Option<i32>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LicensesListResponse {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of License resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<License>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// A request message for AcceleratorTypes.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListAcceleratorTypesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Addresses.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListAddressesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for FirewallPolicies.ListAssociations. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListAssociationsFirewallPolicyRequest {
/// The target resource to list associations. It is an organization, or a folder.
#[prost(string, optional, tag = "467318524")]
pub target_resource: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Autoscalers.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListAutoscalersRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// Name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionSslPolicies.ListAvailableFeatures. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListAvailableFeaturesRegionSslPoliciesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for SslPolicies.ListAvailableFeatures. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListAvailableFeaturesSslPoliciesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for BackendBuckets.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListBackendBucketsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for BackendServices.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListBackendServicesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for DiskTypes.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListDiskTypesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Disks.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListDisksRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InstanceGroupManagers.ListErrors. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListErrorsInstanceGroupManagersRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?)|1-9{0,19}.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The name of the zone where the managed instance group is located. It should conform to RFC1035.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionInstanceGroupManagers.ListErrors. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListErrorsRegionInstanceGroupManagersRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?)|1-9{0,19}.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request. This should conform to RFC1035.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for ExternalVpnGateways.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListExternalVpnGatewaysRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for FirewallPolicies.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListFirewallPoliciesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Parent ID for this request. The ID can be either be "folders/\[FOLDER_ID\]" if the parent is a folder or "organizations/\[ORGANIZATION_ID\]" if the parent is an organization.
#[prost(string, optional, tag = "459714768")]
pub parent_id: ::core::option::Option<::prost::alloc::string::String>,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for Firewalls.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListFirewallsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for ForwardingRules.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListForwardingRulesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for GlobalAddresses.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListGlobalAddressesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for GlobalForwardingRules.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListGlobalForwardingRulesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for GlobalNetworkEndpointGroups.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListGlobalNetworkEndpointGroupsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for GlobalOperations.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListGlobalOperationsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for GlobalOrganizationOperations.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListGlobalOrganizationOperationsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Parent ID for this request.
#[prost(string, optional, tag = "459714768")]
pub parent_id: ::core::option::Option<::prost::alloc::string::String>,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for GlobalPublicDelegatedPrefixes.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListGlobalPublicDelegatedPrefixesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for HealthChecks.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListHealthChecksRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for Images.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListImagesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for InstanceGroupManagers.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListInstanceGroupManagersRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The name of the zone where the managed instance group is located.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InstanceGroups.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListInstanceGroupsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The name of the zone where the instance group is located.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InstanceTemplates.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListInstanceTemplatesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for InstanceGroups.ListInstances. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListInstancesInstanceGroupsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the instance group from which you want to generate a list of included instances.
#[prost(string, tag = "81095253")]
pub instance_group: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "476255263")]
pub instance_groups_list_instances_request_resource: ::core::option::Option<
InstanceGroupsListInstancesRequest,
>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The name of the zone where the instance group is located.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionInstanceGroups.ListInstances. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListInstancesRegionInstanceGroupsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the regional instance group for which we want to list the instances.
#[prost(string, tag = "81095253")]
pub instance_group: ::prost::alloc::string::String,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "48239828")]
pub region_instance_groups_list_instances_request_resource: ::core::option::Option<
RegionInstanceGroupsListInstancesRequest,
>,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for Instances.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListInstancesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InstantSnapshots.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListInstantSnapshotsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InterconnectAttachments.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListInterconnectAttachmentsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for InterconnectLocations.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListInterconnectLocationsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for InterconnectRemoteLocations.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListInterconnectRemoteLocationsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for Interconnects.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListInterconnectsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for Licenses.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListLicensesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for MachineImages.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMachineImagesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for MachineTypes.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMachineTypesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InstanceGroupManagers.ListManagedInstances. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListManagedInstancesInstanceGroupManagersRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the managed instance group.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The name of the zone where the managed instance group is located.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionInstanceGroupManagers.ListManagedInstances. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListManagedInstancesRegionInstanceGroupManagersRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the managed instance group.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for NetworkAttachments.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListNetworkAttachmentsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region of this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for NetworkEndpointGroups.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListNetworkEndpointGroupsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The name of the zone where the network endpoint group is located. It should comply with RFC1035.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for GlobalNetworkEndpointGroups.ListNetworkEndpoints. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035.
#[prost(string, tag = "433907078")]
pub network_endpoint_group: ::prost::alloc::string::String,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for NetworkEndpointGroups.ListNetworkEndpoints. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListNetworkEndpointsNetworkEndpointGroupsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035.
#[prost(string, tag = "433907078")]
pub network_endpoint_group: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "59493390")]
pub network_endpoint_groups_list_endpoints_request_resource: ::core::option::Option<
NetworkEndpointGroupsListEndpointsRequest,
>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The name of the zone where the network endpoint group is located. It should comply with RFC1035.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionNetworkEndpointGroups.ListNetworkEndpoints. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListNetworkEndpointsRegionNetworkEndpointGroupsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035.
#[prost(string, tag = "433907078")]
pub network_endpoint_group: ::prost::alloc::string::String,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region where the network endpoint group is located. It should comply with RFC1035.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for NetworkFirewallPolicies.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListNetworkFirewallPoliciesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for Networks.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListNetworksRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for NodeGroups.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListNodeGroupsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for NodeTemplates.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListNodeTemplatesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for NodeTypes.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListNodeTypesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for NodeGroups.ListNodes. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListNodesNodeGroupsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Name of the NodeGroup resource whose nodes you want to list.
#[prost(string, tag = "469958146")]
pub node_group: ::prost::alloc::string::String,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for PacketMirrorings.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListPacketMirroringsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for Networks.ListPeeringRoutes. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListPeeringRoutesNetworksRequest {
/// The direction of the exchanged routes.
/// Check the Direction enum for the list of possible values.
#[prost(string, optional, tag = "111150975")]
pub direction: ::core::option::Option<::prost::alloc::string::String>,
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Name of the network for this request.
#[prost(string, tag = "232872494")]
pub network: ::prost::alloc::string::String,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// The response will show routes exchanged over the given peering connection.
#[prost(string, optional, tag = "249571370")]
pub peering_name: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The region of the request. The response will include all subnet routes, static routes and dynamic routes in the region.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// Nested message and enum types in `ListPeeringRoutesNetworksRequest`.
pub mod list_peering_routes_networks_request {
/// The direction of the exchanged routes.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Direction {
/// A value indicating that the enum field is not set.
UndefinedDirection = 0,
/// For routes exported from peer network.
Incoming = 338552870,
/// For routes exported from local network.
Outgoing = 307438444,
}
impl Direction {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Direction::UndefinedDirection => "UNDEFINED_DIRECTION",
Direction::Incoming => "INCOMING",
Direction::Outgoing => "OUTGOING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_DIRECTION" => Some(Self::UndefinedDirection),
"INCOMING" => Some(Self::Incoming),
"OUTGOING" => Some(Self::Outgoing),
_ => None,
}
}
}
}
/// A request message for InstanceGroupManagers.ListPerInstanceConfigs. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListPerInstanceConfigsInstanceGroupManagersRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the managed instance group. It should conform to RFC1035.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The name of the zone where the managed instance group is located. It should conform to RFC1035.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionInstanceGroupManagers.ListPerInstanceConfigs. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListPerInstanceConfigsRegionInstanceGroupManagersRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the managed instance group. It should conform to RFC1035.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request, should conform to RFC1035.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for SecurityPolicies.ListPreconfiguredExpressionSets. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListPreconfiguredExpressionSetsSecurityPoliciesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for PublicAdvertisedPrefixes.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListPublicAdvertisedPrefixesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for PublicDelegatedPrefixes.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListPublicDelegatedPrefixesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region of this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for Instances.ListReferrers. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListReferrersInstancesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the target instance scoping this request, or '-' if the request should span over all instances in the container.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionAutoscalers.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionAutoscalersRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionBackendServices.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionBackendServicesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionCommitments.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionCommitmentsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionDiskTypes.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionDiskTypesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionDisks.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionDisksRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionHealthCheckServices.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionHealthCheckServicesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionHealthChecks.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionHealthChecksRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionInstanceGroupManagers.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionInstanceGroupManagersRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionInstanceGroups.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionInstanceGroupsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionInstanceTemplates.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionInstanceTemplatesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the regions for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionInstantSnapshots.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionInstantSnapshotsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionNetworkEndpointGroups.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionNetworkEndpointGroupsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region where the network endpoint group is located. It should comply with RFC1035.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionNetworkFirewallPolicies.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionNetworkFirewallPoliciesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionNotificationEndpoints.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionNotificationEndpointsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionOperations.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionOperationsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionSecurityPolicies.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionSecurityPoliciesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionSslCertificates.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionSslCertificatesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionSslPolicies.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionSslPoliciesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionTargetHttpProxies.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionTargetHttpProxiesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionTargetHttpsProxies.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionTargetHttpsProxiesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionTargetTcpProxies.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionTargetTcpProxiesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionUrlMaps.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionUrlMapsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionZones.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionZonesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for Regions.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRegionsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for Reservations.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListReservationsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// Name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for ResourcePolicies.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListResourcePoliciesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for Routers.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRoutersRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for Routes.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRoutesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for SecurityPolicies.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSecurityPoliciesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for ServiceAttachments.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListServiceAttachmentsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region of this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for Snapshots.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSnapshotsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for SslCertificates.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSslCertificatesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for SslPolicies.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSslPoliciesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for Subnetworks.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSubnetworksRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for TargetGrpcProxies.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListTargetGrpcProxiesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for TargetHttpProxies.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListTargetHttpProxiesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for TargetHttpsProxies.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListTargetHttpsProxiesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for TargetInstances.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListTargetInstancesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// Name of the zone scoping this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for TargetPools.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListTargetPoolsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for TargetSslProxies.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListTargetSslProxiesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for TargetTcpProxies.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListTargetTcpProxiesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for TargetVpnGateways.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListTargetVpnGatewaysRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for UrlMaps.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListUrlMapsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for BackendServices.ListUsable. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListUsableBackendServicesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for RegionBackendServices.ListUsable. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListUsableRegionBackendServicesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request. It must be a string that meets the requirements in RFC1035.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for Subnetworks.ListUsable. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListUsableSubnetworksRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for VpnGateways.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListVpnGatewaysRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for VpnTunnels.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListVpnTunnelsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for Projects.ListXpnHosts. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListXpnHostsProjectsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "238266391")]
pub projects_list_xpn_hosts_request_resource: ::core::option::Option<
ProjectsListXpnHostsRequest,
>,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
/// A request message for ZoneOperations.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListZoneOperationsRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
/// Name of the zone for request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Zones.List. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListZonesRequest {
/// A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
#[prost(uint32, optional, tag = "54715419")]
pub max_results: ::core::option::Option<u32>,
/// Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
#[prost(string, optional, tag = "160562920")]
pub order_by: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
#[prost(string, optional, tag = "19994697")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
#[prost(bool, optional, tag = "517198390")]
pub return_partial_success: ::core::option::Option<bool>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocalDisk {
/// Specifies the number of such disks.
#[prost(int32, optional, tag = "182933485")]
pub disk_count: ::core::option::Option<i32>,
/// Specifies the size of the disk in base-2 GB.
#[prost(int32, optional, tag = "316263735")]
pub disk_size_gb: ::core::option::Option<i32>,
/// Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
#[prost(string, optional, tag = "93009052")]
pub disk_type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Provides a localized error message that is safe to return to the user which can be attached to an RPC error.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocalizedMessage {
/// The locale used following the specification defined at <https://www.rfc-editor.org/rfc/bcp/bcp47.txt.> Examples are: "en-US", "fr-CH", "es-MX"
#[prost(string, optional, tag = "513150554")]
pub locale: ::core::option::Option<::prost::alloc::string::String>,
/// The localized error message in the above locale.
#[prost(string, optional, tag = "418054151")]
pub message: ::core::option::Option<::prost::alloc::string::String>,
}
/// Configuration for location policy among multiple possible locations (e.g. preferences for zone selection among zones in a single region).
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationPolicy {
/// Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us-central1-a.
#[prost(btree_map = "string, message", tag = "413423454")]
pub locations: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
LocationPolicyLocation,
>,
/// Strategy for distributing VMs across zones in a region.
/// Check the TargetShape enum for the list of possible values.
#[prost(string, optional, tag = "338621299")]
pub target_shape: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `LocationPolicy`.
pub mod location_policy {
/// Strategy for distributing VMs across zones in a region.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum TargetShape {
/// A value indicating that the enum field is not set.
UndefinedTargetShape = 0,
/// GCE picks zones for creating VM instances to fulfill the requested number of VMs within present resource constraints and to maximize utilization of unused zonal reservations. Recommended for batch workloads that do not require high availability.
Any = 64972,
/// GCE always selects a single zone for all the VMs, optimizing for resource quotas, available reservations and general capacity. Recommended for batch workloads that cannot tollerate distribution over multiple zones. This the default shape in Bulk Insert and Capacity Advisor APIs.
AnySingleZone = 61100880,
/// GCE prioritizes acquisition of resources, scheduling VMs in zones where resources are available while distributing VMs as evenly as possible across allowed zones to minimize the impact of zonal failure. Recommended for highly available serving workloads.
Balanced = 468409608,
}
impl TargetShape {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
TargetShape::UndefinedTargetShape => "UNDEFINED_TARGET_SHAPE",
TargetShape::Any => "ANY",
TargetShape::AnySingleZone => "ANY_SINGLE_ZONE",
TargetShape::Balanced => "BALANCED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TARGET_SHAPE" => Some(Self::UndefinedTargetShape),
"ANY" => Some(Self::Any),
"ANY_SINGLE_ZONE" => Some(Self::AnySingleZone),
"BALANCED" => Some(Self::Balanced),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationPolicyLocation {
/// Constraints that the caller requires on the result distribution in this zone.
#[prost(message, optional, tag = "3909174")]
pub constraints: ::core::option::Option<LocationPolicyLocationConstraints>,
/// Preference for a given location. Set to either ALLOW or DENY.
/// Check the Preference enum for the list of possible values.
#[prost(string, optional, tag = "150781147")]
pub preference: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `LocationPolicyLocation`.
pub mod location_policy_location {
/// Preference for a given location. Set to either ALLOW or DENY.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Preference {
/// A value indicating that the enum field is not set.
UndefinedPreference = 0,
/// Location is allowed for use.
Allow = 62368553,
/// Location is prohibited.
Deny = 2094604,
/// Default value, unused.
Unspecified = 496219571,
}
impl Preference {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Preference::UndefinedPreference => "UNDEFINED_PREFERENCE",
Preference::Allow => "ALLOW",
Preference::Deny => "DENY",
Preference::Unspecified => "PREFERENCE_UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PREFERENCE" => Some(Self::UndefinedPreference),
"ALLOW" => Some(Self::Allow),
"DENY" => Some(Self::Deny),
"PREFERENCE_UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
/// Per-zone constraints on location policy for this zone.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationPolicyLocationConstraints {
/// Maximum number of items that are allowed to be placed in this zone. The value must be non-negative.
#[prost(int32, optional, tag = "287620724")]
pub max_count: ::core::option::Option<i32>,
}
/// This is deprecated and has no effect. Do not use.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogConfig {
/// This is deprecated and has no effect. Do not use.
#[prost(message, optional, tag = "412852561")]
pub cloud_audit: ::core::option::Option<LogConfigCloudAuditOptions>,
/// This is deprecated and has no effect. Do not use.
#[prost(message, optional, tag = "420959740")]
pub counter: ::core::option::Option<LogConfigCounterOptions>,
/// This is deprecated and has no effect. Do not use.
#[prost(message, optional, tag = "286633881")]
pub data_access: ::core::option::Option<LogConfigDataAccessOptions>,
}
/// This is deprecated and has no effect. Do not use.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogConfigCloudAuditOptions {
/// This is deprecated and has no effect. Do not use.
#[prost(message, optional, tag = "217861624")]
pub authorization_logging_options: ::core::option::Option<
AuthorizationLoggingOptions,
>,
/// This is deprecated and has no effect. Do not use.
/// Check the LogName enum for the list of possible values.
#[prost(string, optional, tag = "402913958")]
pub log_name: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `LogConfigCloudAuditOptions`.
pub mod log_config_cloud_audit_options {
/// This is deprecated and has no effect. Do not use.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum LogName {
/// A value indicating that the enum field is not set.
UndefinedLogName = 0,
/// This is deprecated and has no effect. Do not use.
AdminActivity = 427503135,
/// This is deprecated and has no effect. Do not use.
DataAccess = 238070681,
/// This is deprecated and has no effect. Do not use.
UnspecifiedLogName = 410515182,
}
impl LogName {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
LogName::UndefinedLogName => "UNDEFINED_LOG_NAME",
LogName::AdminActivity => "ADMIN_ACTIVITY",
LogName::DataAccess => "DATA_ACCESS",
LogName::UnspecifiedLogName => "UNSPECIFIED_LOG_NAME",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_LOG_NAME" => Some(Self::UndefinedLogName),
"ADMIN_ACTIVITY" => Some(Self::AdminActivity),
"DATA_ACCESS" => Some(Self::DataAccess),
"UNSPECIFIED_LOG_NAME" => Some(Self::UnspecifiedLogName),
_ => None,
}
}
}
}
/// This is deprecated and has no effect. Do not use.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogConfigCounterOptions {
/// This is deprecated and has no effect. Do not use.
#[prost(message, repeated, tag = "249651015")]
pub custom_fields: ::prost::alloc::vec::Vec<LogConfigCounterOptionsCustomField>,
/// This is deprecated and has no effect. Do not use.
#[prost(string, optional, tag = "97427706")]
pub field: ::core::option::Option<::prost::alloc::string::String>,
/// This is deprecated and has no effect. Do not use.
#[prost(string, optional, tag = "533067184")]
pub metric: ::core::option::Option<::prost::alloc::string::String>,
}
/// This is deprecated and has no effect. Do not use.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogConfigCounterOptionsCustomField {
/// This is deprecated and has no effect. Do not use.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// This is deprecated and has no effect. Do not use.
#[prost(string, optional, tag = "111972721")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
/// This is deprecated and has no effect. Do not use.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogConfigDataAccessOptions {
/// This is deprecated and has no effect. Do not use.
/// Check the LogMode enum for the list of possible values.
#[prost(string, optional, tag = "402897342")]
pub log_mode: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `LogConfigDataAccessOptions`.
pub mod log_config_data_access_options {
/// This is deprecated and has no effect. Do not use.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum LogMode {
/// A value indicating that the enum field is not set.
UndefinedLogMode = 0,
/// This is deprecated and has no effect. Do not use.
LogFailClosed = 360469778,
/// This is deprecated and has no effect. Do not use.
Unspecified = 88160822,
}
impl LogMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
LogMode::UndefinedLogMode => "UNDEFINED_LOG_MODE",
LogMode::LogFailClosed => "LOG_FAIL_CLOSED",
LogMode::Unspecified => "LOG_MODE_UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_LOG_MODE" => Some(Self::UndefinedLogMode),
"LOG_FAIL_CLOSED" => Some(Self::LogFailClosed),
"LOG_MODE_UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
/// Represents a machine image resource. A machine image is a Compute Engine resource that stores all the configuration, metadata, permissions, and data from one or more disks required to create a Virtual machine (VM) instance. For more information, see Machine images.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MachineImage {
/// \[Output Only\] The creation timestamp for this machine image in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Input Only\] Whether to attempt an application consistent machine image by informing the OS to prepare for the snapshot process.
#[prost(bool, optional, tag = "385550813")]
pub guest_flush: ::core::option::Option<bool>,
/// \[Output Only\] A unique identifier for this machine image. The server defines this identifier.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Properties of source instance
#[prost(message, optional, tag = "215355165")]
pub instance_properties: ::core::option::Option<InstanceProperties>,
/// \[Output Only\] The resource type, which is always compute#machineImage for machine image.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Encrypts the machine image using a customer-supplied encryption key. After you encrypt a machine image using a customer-supplied key, you must provide the same key if you use the machine image later. For example, you must provide the encryption key when you create an instance from the encrypted machine image in a future request. Customer-supplied encryption keys do not protect access to metadata of the machine image. If you do not provide an encryption key when creating the machine image, then the machine image will be encrypted using an automatically generated key and you do not need to provide a key to use the machine image later.
#[prost(message, optional, tag = "528089087")]
pub machine_image_encryption_key: ::core::option::Option<CustomerEncryptionKey>,
/// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Reserved for future use.
#[prost(bool, optional, tag = "480964257")]
pub satisfies_pzi: ::core::option::Option<bool>,
/// \[Output Only\] Reserved for future use.
#[prost(bool, optional, tag = "480964267")]
pub satisfies_pzs: ::core::option::Option<bool>,
/// An array of Machine Image specific properties for disks attached to the source instance
#[prost(message, repeated, tag = "397424318")]
pub saved_disks: ::prost::alloc::vec::Vec<SavedDisk>,
/// \[Output Only\] The URL for this machine image. The server defines this URL.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Input Only\] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.
#[prost(message, repeated, tag = "370408498")]
pub source_disk_encryption_keys: ::prost::alloc::vec::Vec<SourceDiskEncryptionKey>,
/// The source instance used to create the machine image. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - <https://www.googleapis.com/compute/v1/projects/project/zones/zone> /instances/instance - projects/project/zones/zone/instances/instance
#[prost(string, optional, tag = "396315705")]
pub source_instance: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] DEPRECATED: Please use instance_properties instead for source instance related properties. New properties will not be added to this field.
#[prost(message, optional, tag = "475195641")]
pub source_instance_properties: ::core::option::Option<SourceInstanceProperties>,
/// \[Output Only\] The status of the machine image. One of the following values: INVALID, CREATING, READY, DELETING, and UPLOADING.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// The regional or multi-regional Cloud Storage bucket location where the machine image is stored.
#[prost(string, repeated, tag = "328005274")]
pub storage_locations: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Total size of the storage used by the machine image.
#[prost(int64, optional, tag = "81855468")]
pub total_storage_bytes: ::core::option::Option<i64>,
}
/// Nested message and enum types in `MachineImage`.
pub mod machine_image {
/// \[Output Only\] The status of the machine image. One of the following values: INVALID, CREATING, READY, DELETING, and UPLOADING.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
Creating = 455564985,
Deleting = 528602024,
Invalid = 530283991,
Ready = 77848963,
Uploading = 267603489,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Creating => "CREATING",
Status::Deleting => "DELETING",
Status::Invalid => "INVALID",
Status::Ready => "READY",
Status::Uploading => "UPLOADING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"CREATING" => Some(Self::Creating),
"DELETING" => Some(Self::Deleting),
"INVALID" => Some(Self::Invalid),
"READY" => Some(Self::Ready),
"UPLOADING" => Some(Self::Uploading),
_ => None,
}
}
}
}
/// A list of machine images.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MachineImageList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of MachineImage resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<MachineImage>,
/// \[Output Only\] The resource type, which is always compute#machineImagesListResponse for machine image lists.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represents a Machine Type resource. You can use specific machine types for your VM instances based on performance and pricing requirements. For more information, read Machine Types.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MachineType {
/// \[Output Only\] A list of accelerator configurations assigned to this machine type.
#[prost(message, repeated, tag = "269577064")]
pub accelerators: ::prost::alloc::vec::Vec<Accelerators>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The deprecation status associated with this machine type. Only applicable if the machine type is unavailable.
#[prost(message, optional, tag = "515138995")]
pub deprecated: ::core::option::Option<DeprecationStatus>,
/// \[Output Only\] An optional textual description of the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The number of virtual CPUs that are available to the instance.
#[prost(int32, optional, tag = "393356754")]
pub guest_cpus: ::core::option::Option<i32>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Deprecated\] This property is deprecated and will never be populated with any relevant values.
#[prost(int32, optional, tag = "75331864")]
pub image_space_gb: ::core::option::Option<i32>,
/// \[Output Only\] Whether this machine type has a shared CPU. See Shared-core machine types for more information.
#[prost(bool, optional, tag = "521399555")]
pub is_shared_cpu: ::core::option::Option<bool>,
/// \[Output Only\] The type of the resource. Always compute#machineType for machine types.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Maximum persistent disks allowed.
#[prost(int32, optional, tag = "496220941")]
pub maximum_persistent_disks: ::core::option::Option<i32>,
/// \[Output Only\] Maximum total persistent disks size (GB) allowed.
#[prost(int64, optional, tag = "154274471")]
pub maximum_persistent_disks_size_gb: ::core::option::Option<i64>,
/// \[Output Only\] The amount of physical memory available to the instance, defined in MB.
#[prost(int32, optional, tag = "116001171")]
pub memory_mb: ::core::option::Option<i32>,
/// \[Output Only\] Name of the resource.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A list of extended scratch disks assigned to the instance.
#[prost(message, repeated, tag = "480778481")]
pub scratch_disks: ::prost::alloc::vec::Vec<ScratchDisks>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The name of the zone where the machine type resides, such as us-central1-a.
#[prost(string, optional, tag = "3744684")]
pub zone: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MachineTypeAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of MachineTypesScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
MachineTypesScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#machineTypeAggregatedList for aggregated lists of machine types.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of machine types.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MachineTypeList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of MachineType resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<MachineType>,
/// \[Output Only\] Type of resource. Always compute#machineTypeList for lists of machine types.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MachineTypesScopedList {
/// \[Output Only\] A list of machine types contained in this scope.
#[prost(message, repeated, tag = "79720065")]
pub machine_types: ::prost::alloc::vec::Vec<MachineType>,
/// \[Output Only\] An informational warning that appears when the machine types list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// A Managed Instance resource.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ManagedInstance {
/// \[Output Only\] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified.
/// Check the CurrentAction enum for the list of possible values.
#[prost(string, optional, tag = "178475964")]
pub current_action: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output only\] The unique identifier for this resource. This field is empty when instance does not exist.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] The URL of the instance. The URL can exist even if the instance has not yet been created.
#[prost(string, optional, tag = "18257045")]
pub instance: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Health state of the instance per health-check.
#[prost(message, repeated, tag = "382667078")]
pub instance_health: ::prost::alloc::vec::Vec<ManagedInstanceInstanceHealth>,
/// \[Output Only\] The status of the instance. This field is empty when the instance does not exist.
/// Check the InstanceStatus enum for the list of possible values.
#[prost(string, optional, tag = "174577372")]
pub instance_status: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Information about the last attempt to create or delete the instance.
#[prost(message, optional, tag = "434771492")]
pub last_attempt: ::core::option::Option<ManagedInstanceLastAttempt>,
/// \[Output Only\] The name of the instance. The name always exists even if the instance has not yet been created.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Preserved state applied from per-instance config for this instance.
#[prost(message, optional, tag = "98661858")]
pub preserved_state_from_config: ::core::option::Option<PreservedState>,
/// \[Output Only\] Preserved state generated based on stateful policy for this instance.
#[prost(message, optional, tag = "470783954")]
pub preserved_state_from_policy: ::core::option::Option<PreservedState>,
/// \[Output Only\] Intended version of this instance.
#[prost(message, optional, tag = "351608024")]
pub version: ::core::option::Option<ManagedInstanceVersion>,
}
/// Nested message and enum types in `ManagedInstance`.
pub mod managed_instance {
/// \[Output Only\] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified.
/// Additional supported values which may be not listed in the enum directly due to technical reasons:
/// STOPPING
/// SUSPENDING
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum CurrentAction {
/// A value indicating that the enum field is not set.
UndefinedCurrentAction = 0,
/// The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group.
Abandoning = 388244813,
/// The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful.
Creating = 455564985,
/// The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased.
CreatingWithoutRetries = 428843785,
/// The managed instance group is permanently deleting this instance.
Deleting = 528602024,
/// The managed instance group has not scheduled any actions for this instance.
None = 2402104,
/// The managed instance group is recreating this instance.
Recreating = 287278572,
/// The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance.
Refreshing = 163266343,
/// The managed instance group is restarting this instance.
Restarting = 320534387,
/// The managed instance group is resuming this instance.
Resuming = 446856618,
/// The managed instance group is starting this instance.
Starting = 488820800,
/// The managed instance group is verifying this already created instance. Verification happens every time the instance is (re)created or restarted and consists of: 1. Waiting until health check specified as part of this managed instance group's autohealing policy reports HEALTHY. Note: Applies only if autohealing policy has a health check specified 2. Waiting for addition verification steps performed as post-instance creation (subject to future extensions).
Verifying = 16982185,
}
impl CurrentAction {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
CurrentAction::UndefinedCurrentAction => "UNDEFINED_CURRENT_ACTION",
CurrentAction::Abandoning => "ABANDONING",
CurrentAction::Creating => "CREATING",
CurrentAction::CreatingWithoutRetries => "CREATING_WITHOUT_RETRIES",
CurrentAction::Deleting => "DELETING",
CurrentAction::None => "NONE",
CurrentAction::Recreating => "RECREATING",
CurrentAction::Refreshing => "REFRESHING",
CurrentAction::Restarting => "RESTARTING",
CurrentAction::Resuming => "RESUMING",
CurrentAction::Starting => "STARTING",
CurrentAction::Verifying => "VERIFYING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_CURRENT_ACTION" => Some(Self::UndefinedCurrentAction),
"ABANDONING" => Some(Self::Abandoning),
"CREATING" => Some(Self::Creating),
"CREATING_WITHOUT_RETRIES" => Some(Self::CreatingWithoutRetries),
"DELETING" => Some(Self::Deleting),
"NONE" => Some(Self::None),
"RECREATING" => Some(Self::Recreating),
"REFRESHING" => Some(Self::Refreshing),
"RESTARTING" => Some(Self::Restarting),
"RESUMING" => Some(Self::Resuming),
"STARTING" => Some(Self::Starting),
"VERIFYING" => Some(Self::Verifying),
_ => None,
}
}
}
/// \[Output Only\] The status of the instance. This field is empty when the instance does not exist.
/// Additional supported values which may be not listed in the enum directly due to technical reasons:
/// STOPPING
/// SUSPENDING
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum InstanceStatus {
/// A value indicating that the enum field is not set.
UndefinedInstanceStatus = 0,
/// The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.
Deprovisioning = 428935662,
/// Resources are being allocated for the instance.
Provisioning = 290896621,
/// The instance is in repair.
Repairing = 413483285,
/// The instance is running.
Running = 121282975,
/// All required resources have been allocated and the instance is being started.
Staging = 431072283,
/// The instance has stopped successfully.
Stopped = 444276141,
Stopping = 350791796,
/// The instance has suspended.
Suspended = 51223995,
Suspending = 514206246,
/// The instance has stopped (either by explicit action or underlying failure).
Terminated = 250018339,
}
impl InstanceStatus {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
InstanceStatus::UndefinedInstanceStatus => "UNDEFINED_INSTANCE_STATUS",
InstanceStatus::Deprovisioning => "DEPROVISIONING",
InstanceStatus::Provisioning => "PROVISIONING",
InstanceStatus::Repairing => "REPAIRING",
InstanceStatus::Running => "RUNNING",
InstanceStatus::Staging => "STAGING",
InstanceStatus::Stopped => "STOPPED",
InstanceStatus::Stopping => "STOPPING",
InstanceStatus::Suspended => "SUSPENDED",
InstanceStatus::Suspending => "SUSPENDING",
InstanceStatus::Terminated => "TERMINATED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_INSTANCE_STATUS" => Some(Self::UndefinedInstanceStatus),
"DEPROVISIONING" => Some(Self::Deprovisioning),
"PROVISIONING" => Some(Self::Provisioning),
"REPAIRING" => Some(Self::Repairing),
"RUNNING" => Some(Self::Running),
"STAGING" => Some(Self::Staging),
"STOPPED" => Some(Self::Stopped),
"STOPPING" => Some(Self::Stopping),
"SUSPENDED" => Some(Self::Suspended),
"SUSPENDING" => Some(Self::Suspending),
"TERMINATED" => Some(Self::Terminated),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ManagedInstanceInstanceHealth {
/// \[Output Only\] The current detailed instance health state.
/// Check the DetailedHealthState enum for the list of possible values.
#[prost(string, optional, tag = "510470173")]
pub detailed_health_state: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The URL for the health check that verifies whether the instance is healthy.
#[prost(string, optional, tag = "308876645")]
pub health_check: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `ManagedInstanceInstanceHealth`.
pub mod managed_instance_instance_health {
/// \[Output Only\] The current detailed instance health state.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum DetailedHealthState {
/// A value indicating that the enum field is not set.
UndefinedDetailedHealthState = 0,
/// The instance is being drained. The existing connections to the instance have time to complete, but the new ones are being refused.
Draining = 480455402,
/// The instance is reachable i.e. a connection to the application health checking endpoint can be established, and conforms to the requirements defined by the health check.
Healthy = 439801213,
/// The instance is unreachable i.e. a connection to the application health checking endpoint cannot be established, or the server does not respond within the specified timeout.
Timeout = 477813057,
/// The instance is reachable, but does not conform to the requirements defined by the health check.
Unhealthy = 462118084,
/// The health checking system is aware of the instance but its health is not known at the moment.
Unknown = 433141802,
}
impl DetailedHealthState {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
DetailedHealthState::UndefinedDetailedHealthState => {
"UNDEFINED_DETAILED_HEALTH_STATE"
}
DetailedHealthState::Draining => "DRAINING",
DetailedHealthState::Healthy => "HEALTHY",
DetailedHealthState::Timeout => "TIMEOUT",
DetailedHealthState::Unhealthy => "UNHEALTHY",
DetailedHealthState::Unknown => "UNKNOWN",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_DETAILED_HEALTH_STATE" => {
Some(Self::UndefinedDetailedHealthState)
}
"DRAINING" => Some(Self::Draining),
"HEALTHY" => Some(Self::Healthy),
"TIMEOUT" => Some(Self::Timeout),
"UNHEALTHY" => Some(Self::Unhealthy),
"UNKNOWN" => Some(Self::Unknown),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ManagedInstanceLastAttempt {
/// \[Output Only\] Encountered errors during the last attempt to create or delete the instance.
#[prost(message, optional, tag = "315977579")]
pub errors: ::core::option::Option<Errors>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ManagedInstanceVersion {
/// \[Output Only\] The intended template of the instance. This field is empty when current_action is one of { DELETING, ABANDONING }.
#[prost(string, optional, tag = "309248228")]
pub instance_template: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Name of the version.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
}
/// A metadata key/value entry.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Metadata {
/// Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Items>,
/// \[Output Only\] Type of the resource. Always compute#metadata for metadata.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
}
/// Opaque filter criteria used by load balancers to restrict routing configuration to a limited set of load balancing proxies. Proxies and sidecars involved in load balancing would typically present metadata to the load balancers that need to match criteria specified here. If a match takes place, the relevant configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. An example for using metadataFilters would be: if load balancing involves Envoys, they receive routing configuration when values in metadataFilters match values supplied in of their XDS requests to loadbalancers.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetadataFilter {
/// The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.
#[prost(message, repeated, tag = "307903142")]
pub filter_labels: ::prost::alloc::vec::Vec<MetadataFilterLabelMatch>,
/// Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match. Supported values are: - MATCH_ANY: at least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching labels in the provided metadata.
/// Check the FilterMatchCriteria enum for the list of possible values.
#[prost(string, optional, tag = "239970368")]
pub filter_match_criteria: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `MetadataFilter`.
pub mod metadata_filter {
/// Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match. Supported values are: - MATCH_ANY: at least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching labels in the provided metadata.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum FilterMatchCriteria {
/// A value indicating that the enum field is not set.
UndefinedFilterMatchCriteria = 0,
/// Specifies that all filterLabels must match for the metadataFilter to be considered a match.
MatchAll = 180663271,
/// Specifies that any filterLabel must match for the metadataFilter to be considered a match.
MatchAny = 180663346,
/// Indicates that the match criteria was not set. A metadataFilter must never be created with this value.
NotSet = 163646646,
}
impl FilterMatchCriteria {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
FilterMatchCriteria::UndefinedFilterMatchCriteria => {
"UNDEFINED_FILTER_MATCH_CRITERIA"
}
FilterMatchCriteria::MatchAll => "MATCH_ALL",
FilterMatchCriteria::MatchAny => "MATCH_ANY",
FilterMatchCriteria::NotSet => "NOT_SET",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_FILTER_MATCH_CRITERIA" => {
Some(Self::UndefinedFilterMatchCriteria)
}
"MATCH_ALL" => Some(Self::MatchAll),
"MATCH_ANY" => Some(Self::MatchAny),
"NOT_SET" => Some(Self::NotSet),
_ => None,
}
}
}
}
/// MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the load balancer.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetadataFilterLabelMatch {
/// Name of metadata label. The name can have a maximum length of 1024 characters and must be at least 1 character long.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The value of the label must match the specified value. value can have a maximum length of 1024 characters.
#[prost(string, optional, tag = "111972721")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Addresses.Move. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MoveAddressRequest {
/// Name of the address resource to move.
#[prost(string, tag = "462920692")]
pub address: ::prost::alloc::string::String,
/// Source project ID which the Address is moved from.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "409081924")]
pub region_addresses_move_request_resource: ::core::option::Option<
RegionAddressesMoveRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Projects.MoveDisk. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MoveDiskProjectRequest {
/// The body resource for this request
#[prost(message, optional, tag = "313008458")]
pub disk_move_request_resource: ::core::option::Option<DiskMoveRequest>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for FirewallPolicies.Move. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MoveFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The new parent of the firewall policy. The ID can be either be "folders/\[FOLDER_ID\]" if the parent is a folder or "organizations/\[ORGANIZATION_ID\]" if the parent is an organization.
#[prost(string, tag = "459714768")]
pub parent_id: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for GlobalAddresses.Move. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MoveGlobalAddressRequest {
/// Name of the address resource to move.
#[prost(string, tag = "462920692")]
pub address: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "302807283")]
pub global_addresses_move_request_resource: ::core::option::Option<
GlobalAddressesMoveRequest,
>,
/// Source project ID which the Address is moved from.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Projects.MoveInstance. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MoveInstanceProjectRequest {
/// The body resource for this request
#[prost(message, optional, tag = "311664194")]
pub instance_move_request_resource: ::core::option::Option<InstanceMoveRequest>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// The named port. For example: <"http", 80>.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NamedPort {
/// The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The port number, which can be a value between 1 and 65535.
#[prost(int32, optional, tag = "3446913")]
pub port: ::core::option::Option<i32>,
}
/// Contains NAT IP information of a NAT config (i.e. usage status, mode).
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NatIpInfo {
/// A list of all NAT IPs assigned to this NAT config.
#[prost(message, repeated, tag = "241401884")]
pub nat_ip_info_mappings: ::prost::alloc::vec::Vec<NatIpInfoNatIpInfoMapping>,
/// Name of the NAT config which the NAT IP belongs to.
#[prost(string, optional, tag = "425596649")]
pub nat_name: ::core::option::Option<::prost::alloc::string::String>,
}
/// Contains information of a NAT IP.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NatIpInfoNatIpInfoMapping {
/// Specifies whether NAT IP is auto or manual.
/// Check the Mode enum for the list of possible values.
#[prost(string, optional, tag = "3357091")]
pub mode: ::core::option::Option<::prost::alloc::string::String>,
/// NAT IP address. For example: 203.0.113.11.
#[prost(string, optional, tag = "21113093")]
pub nat_ip: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies whether NAT IP is currently serving at least one endpoint or not.
/// Check the Usage enum for the list of possible values.
#[prost(string, optional, tag = "111574433")]
pub usage: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `NatIpInfoNatIpInfoMapping`.
pub mod nat_ip_info_nat_ip_info_mapping {
/// Specifies whether NAT IP is auto or manual.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Mode {
/// A value indicating that the enum field is not set.
UndefinedMode = 0,
Auto = 2020783,
Manual = 119397318,
}
impl Mode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Mode::UndefinedMode => "UNDEFINED_MODE",
Mode::Auto => "AUTO",
Mode::Manual => "MANUAL",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_MODE" => Some(Self::UndefinedMode),
"AUTO" => Some(Self::Auto),
"MANUAL" => Some(Self::Manual),
_ => None,
}
}
}
/// Specifies whether NAT IP is currently serving at least one endpoint or not.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Usage {
/// A value indicating that the enum field is not set.
UndefinedUsage = 0,
InUse = 17393485,
Unused = 360643030,
}
impl Usage {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Usage::UndefinedUsage => "UNDEFINED_USAGE",
Usage::InUse => "IN_USE",
Usage::Unused => "UNUSED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_USAGE" => Some(Self::UndefinedUsage),
"IN_USE" => Some(Self::InUse),
"UNUSED" => Some(Self::Unused),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NatIpInfoResponse {
/// \[Output Only\] A list of NAT IP information.
#[prost(message, repeated, tag = "139315229")]
pub result: ::prost::alloc::vec::Vec<NatIpInfo>,
}
/// Represents a VPC Network resource. Networks connect resources to each other and to the internet. For more information, read Virtual Private Cloud (VPC) Network.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Network {
/// Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
#[prost(string, optional, tag = "59234358")]
pub i_pv4_range: ::core::option::Option<::prost::alloc::string::String>,
/// Must be set to create a VPC network. If not set, a legacy network is created. When set to true, the VPC network is created in auto mode. When set to false, the VPC network is created in custom mode. An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges. For custom mode VPC networks, you can add subnets using the subnetworks insert method.
#[prost(bool, optional, tag = "256156690")]
pub auto_create_subnetworks: ::core::option::Option<bool>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this field when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google defined ULA prefix fd20::/20. .
#[prost(bool, optional, tag = "423757720")]
pub enable_ula_internal_ipv6: ::core::option::Option<bool>,
/// \[Output Only\] URL of the firewall policy the network is associated with.
#[prost(string, optional, tag = "498173265")]
pub firewall_policy: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The gateway address for default routing out of the network, selected by Google Cloud.
#[prost(string, optional, tag = "178678877")]
pub gateway_i_pv4: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be within the fd20::/20. Operation will fail if the speficied /48 is already in used by another resource. If the field is not speficied, then a /48 range will be randomly allocated from fd20::/20 and returned via this field. .
#[prost(string, optional, tag = "277456807")]
pub internal_ipv6_range: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Type of the resource. Always compute#network for networks.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Maximum Transmission Unit in bytes. The minimum value for this field is 1300 and the maximum value is 8896. The suggested value is 1500, which is the default MTU used on the Internet, or 8896 if you want to use Jumbo frames. If unspecified, the value defaults to 1460.
#[prost(int32, optional, tag = "108462")]
pub mtu: ::core::option::Option<i32>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified.
/// Check the NetworkFirewallPolicyEnforcementOrder enum for the list of possible values.
#[prost(string, optional, tag = "6504784")]
pub network_firewall_policy_enforcement_order: ::core::option::Option<
::prost::alloc::string::String,
>,
/// \[Output Only\] A list of network peerings for the resource.
#[prost(message, repeated, tag = "69883187")]
pub peerings: ::prost::alloc::vec::Vec<NetworkPeering>,
/// The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce.
#[prost(message, optional, tag = "523556059")]
pub routing_config: ::core::option::Option<NetworkRoutingConfig>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource with the resource id.
#[prost(string, optional, tag = "44520962")]
pub self_link_with_id: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
#[prost(string, repeated, tag = "415853125")]
pub subnetworks: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Network`.
pub mod network {
/// The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum NetworkFirewallPolicyEnforcementOrder {
/// A value indicating that the enum field is not set.
UndefinedNetworkFirewallPolicyEnforcementOrder = 0,
AfterClassicFirewall = 154582608,
BeforeClassicFirewall = 338458349,
}
impl NetworkFirewallPolicyEnforcementOrder {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
NetworkFirewallPolicyEnforcementOrder::UndefinedNetworkFirewallPolicyEnforcementOrder => {
"UNDEFINED_NETWORK_FIREWALL_POLICY_ENFORCEMENT_ORDER"
}
NetworkFirewallPolicyEnforcementOrder::AfterClassicFirewall => {
"AFTER_CLASSIC_FIREWALL"
}
NetworkFirewallPolicyEnforcementOrder::BeforeClassicFirewall => {
"BEFORE_CLASSIC_FIREWALL"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_NETWORK_FIREWALL_POLICY_ENFORCEMENT_ORDER" => {
Some(Self::UndefinedNetworkFirewallPolicyEnforcementOrder)
}
"AFTER_CLASSIC_FIREWALL" => Some(Self::AfterClassicFirewall),
"BEFORE_CLASSIC_FIREWALL" => Some(Self::BeforeClassicFirewall),
_ => None,
}
}
}
}
/// NetworkAttachments A network attachment resource ...
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkAttachment {
/// \[Output Only\] An array of connections for all the producers connected to this network attachment.
#[prost(message, repeated, tag = "326078813")]
pub connection_endpoints: ::prost::alloc::vec::Vec<
NetworkAttachmentConnectedEndpoint,
>,
///
/// Check the ConnectionPreference enum for the list of possible values.
#[prost(string, optional, tag = "285818076")]
pub connection_preference: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource type. The server generates this identifier.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks.
#[prost(string, optional, tag = "232872494")]
pub network: ::core::option::Option<::prost::alloc::string::String>,
/// Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
#[prost(string, repeated, tag = "202804523")]
pub producer_accept_lists: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
#[prost(string, repeated, tag = "4112002")]
pub producer_reject_lists: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource's resource id.
#[prost(string, optional, tag = "44520962")]
pub self_link_with_id: ::core::option::Option<::prost::alloc::string::String>,
/// An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
#[prost(string, repeated, tag = "415853125")]
pub subnetworks: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `NetworkAttachment`.
pub mod network_attachment {
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ConnectionPreference {
/// A value indicating that the enum field is not set.
UndefinedConnectionPreference = 0,
AcceptAutomatic = 75250580,
AcceptManual = 373061341,
Invalid = 530283991,
}
impl ConnectionPreference {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ConnectionPreference::UndefinedConnectionPreference => {
"UNDEFINED_CONNECTION_PREFERENCE"
}
ConnectionPreference::AcceptAutomatic => "ACCEPT_AUTOMATIC",
ConnectionPreference::AcceptManual => "ACCEPT_MANUAL",
ConnectionPreference::Invalid => "INVALID",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_CONNECTION_PREFERENCE" => {
Some(Self::UndefinedConnectionPreference)
}
"ACCEPT_AUTOMATIC" => Some(Self::AcceptAutomatic),
"ACCEPT_MANUAL" => Some(Self::AcceptManual),
"INVALID" => Some(Self::Invalid),
_ => None,
}
}
}
}
/// Contains a list of NetworkAttachmentsScopedList.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkAttachmentAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of NetworkAttachmentsScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
NetworkAttachmentsScopedList,
>,
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// \[Output Only\] A connection connected to this network attachment.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkAttachmentConnectedEndpoint {
/// The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
#[prost(string, optional, tag = "406272220")]
pub ip_address: ::core::option::Option<::prost::alloc::string::String>,
/// The IPv6 address assigned to the producer instance network interface. This is only assigned when the stack types of both the instance network interface and the consumer subnet are IPv4_IPv6.
#[prost(string, optional, tag = "341563804")]
pub ipv6_address: ::core::option::Option<::prost::alloc::string::String>,
/// The project id or number of the interface to which the IP was assigned.
#[prost(string, optional, tag = "349783336")]
pub project_id_or_num: ::core::option::Option<::prost::alloc::string::String>,
/// Alias IP ranges from the same subnetwork.
#[prost(string, repeated, tag = "117184788")]
pub secondary_ip_cidr_ranges: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// The status of a connected endpoint to this network attachment.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// The subnetwork used to assign the IP to the producer instance network interface.
#[prost(string, optional, tag = "307827694")]
pub subnetwork: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The CIDR range of the subnet from which the IPv4 internal IP was allocated from.
#[prost(string, optional, tag = "383249827")]
pub subnetwork_cidr_range: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `NetworkAttachmentConnectedEndpoint`.
pub mod network_attachment_connected_endpoint {
/// The status of a connected endpoint to this network attachment.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// The consumer allows traffic from the producer to reach its VPC.
Accepted = 246714279,
/// The consumer network attachment no longer exists.
Closed = 380163436,
/// The consumer needs to take further action before traffic can be served.
NeedsAttention = 344491452,
/// The consumer neither allows nor prohibits traffic from the producer to reach its VPC.
Pending = 35394935,
/// The consumer prohibits traffic from the producer to reach its VPC.
Rejected = 174130302,
Unspecified = 42133066,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Accepted => "ACCEPTED",
Status::Closed => "CLOSED",
Status::NeedsAttention => "NEEDS_ATTENTION",
Status::Pending => "PENDING",
Status::Rejected => "REJECTED",
Status::Unspecified => "STATUS_UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"ACCEPTED" => Some(Self::Accepted),
"CLOSED" => Some(Self::Closed),
"NEEDS_ATTENTION" => Some(Self::NeedsAttention),
"PENDING" => Some(Self::Pending),
"REJECTED" => Some(Self::Rejected),
"STATUS_UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkAttachmentList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of NetworkAttachment resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<NetworkAttachment>,
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkAttachmentsScopedList {
/// A list of NetworkAttachments contained in this scope.
#[prost(message, repeated, tag = "521514783")]
pub network_attachments: ::prost::alloc::vec::Vec<NetworkAttachment>,
/// Informational warning which replaces the list of network attachments when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represents a Google Cloud Armor network edge security service resource.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkEdgeSecurityService {
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a NetworkEdgeSecurityService. An up-to-date fingerprint must be provided in order to update the NetworkEdgeSecurityService, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a NetworkEdgeSecurityService.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output only\] Type of the resource. Always compute#networkEdgeSecurityService for NetworkEdgeSecurityServices
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the region where the resource resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// The resource URL for the network edge security service associated with this network edge security service.
#[prost(string, optional, tag = "171082513")]
pub security_policy: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource with the resource id.
#[prost(string, optional, tag = "44520962")]
pub self_link_with_id: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkEdgeSecurityServiceAggregatedList {
#[prost(string, optional, tag = "3123477")]
pub etag: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of NetworkEdgeSecurityServicesScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
NetworkEdgeSecurityServicesScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#networkEdgeSecurityServiceAggregatedList for lists of Network Edge Security Services.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkEdgeSecurityServicesScopedList {
/// A list of NetworkEdgeSecurityServices contained in this scope.
#[prost(message, repeated, tag = "35530156")]
pub network_edge_security_services: ::prost::alloc::vec::Vec<
NetworkEdgeSecurityService,
>,
/// Informational warning which replaces the list of security policies when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// The network endpoint.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkEndpoint {
/// Metadata defined as annotations on the network endpoint.
#[prost(btree_map = "string, string", tag = "112032548")]
pub annotations: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT.
#[prost(string, optional, tag = "3150485")]
pub fqdn: ::core::option::Option<::prost::alloc::string::String>,
/// The name or a URL of VM instance of this network endpoint. This field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
#[prost(string, optional, tag = "18257045")]
pub instance: ::core::option::Option<::prost::alloc::string::String>,
/// Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used. This field is redundant and need not be set for network endpoints of type GCE_VM_IP. If set, it must be set to the primary internal IP address of the attached VM instance that matches the subnetwork of the NEG. The primary internal IP address from any NIC of a multi-NIC VM instance can be added to a NEG as long as it matches the NEG subnetwork.
#[prost(string, optional, tag = "406272220")]
pub ip_address: ::core::option::Option<::prost::alloc::string::String>,
/// Optional port number of network endpoint. If not specified, the defaultPort for the network endpoint group will be used. This field can not be set for network endpoints of type GCE_VM_IP.
#[prost(int32, optional, tag = "3446913")]
pub port: ::core::option::Option<i32>,
}
/// Represents a collection of network endpoints. A network endpoint group (NEG) defines how a set of endpoints should be reached, whether they are reachable, and where they are located. For more information about using NEGs for different use cases, see Network endpoint groups overview.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkEndpointGroup {
/// Metadata defined as annotations on the network endpoint group.
#[prost(btree_map = "string, string", tag = "112032548")]
pub annotations: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
#[prost(message, optional, tag = "340788768")]
pub app_engine: ::core::option::Option<NetworkEndpointGroupAppEngine>,
/// Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
#[prost(message, optional, tag = "519893666")]
pub cloud_function: ::core::option::Option<NetworkEndpointGroupCloudFunction>,
/// Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
#[prost(message, optional, tag = "111060353")]
pub cloud_run: ::core::option::Option<NetworkEndpointGroupCloudRun>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// The default port used if the port number is not specified in the network endpoint. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
#[prost(int32, optional, tag = "423377855")]
pub default_port: ::core::option::Option<i32>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#networkEndpointGroup for network endpoint group.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the network to which all network endpoints in the NEG belong. Uses default project network if unspecified.
#[prost(string, optional, tag = "232872494")]
pub network: ::core::option::Option<::prost::alloc::string::String>,
/// Type of network endpoints in this network endpoint group. Can be one of GCE_VM_IP, GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, SERVERLESS, PRIVATE_SERVICE_CONNECT.
/// Check the NetworkEndpointType enum for the list of possible values.
#[prost(string, optional, tag = "118301523")]
pub network_endpoint_type: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "71937481")]
pub psc_data: ::core::option::Option<NetworkEndpointGroupPscData>,
/// The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com
#[prost(string, optional, tag = "269132134")]
pub psc_target_service: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The URL of the region where the network endpoint group is located.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output only\] Number of network endpoints in the network endpoint group.
#[prost(int32, optional, tag = "3530753")]
pub size: ::core::option::Option<i32>,
/// Optional URL of the subnetwork to which all network endpoints in the NEG belong.
#[prost(string, optional, tag = "307827694")]
pub subnetwork: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The URL of the zone where the network endpoint group is located.
#[prost(string, optional, tag = "3744684")]
pub zone: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `NetworkEndpointGroup`.
pub mod network_endpoint_group {
/// Type of network endpoints in this network endpoint group. Can be one of GCE_VM_IP, GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, SERVERLESS, PRIVATE_SERVICE_CONNECT.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum NetworkEndpointType {
/// A value indicating that the enum field is not set.
UndefinedNetworkEndpointType = 0,
/// The network endpoint is represented by an IP address.
GceVmIp = 401880793,
/// The network endpoint is represented by IP address and port pair.
GceVmIpPort = 501838375,
/// The network endpoint is represented by fully qualified domain name and port.
InternetFqdnPort = 404154477,
/// The network endpoint is represented by an internet IP address and port.
InternetIpPort = 477719963,
/// The network endpoint is represented by an IP address and port. The endpoint belongs to a VM or pod running in a customer's on-premises.
NonGcpPrivateIpPort = 336447968,
/// The network endpoint is either public Google APIs or services exposed by other GCP Project with a Service Attachment. The connection is set up by private service connect
PrivateServiceConnect = 48134724,
/// The network endpoint is handled by specified serverless infrastructure.
Serverless = 270492508,
}
impl NetworkEndpointType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
NetworkEndpointType::UndefinedNetworkEndpointType => {
"UNDEFINED_NETWORK_ENDPOINT_TYPE"
}
NetworkEndpointType::GceVmIp => "GCE_VM_IP",
NetworkEndpointType::GceVmIpPort => "GCE_VM_IP_PORT",
NetworkEndpointType::InternetFqdnPort => "INTERNET_FQDN_PORT",
NetworkEndpointType::InternetIpPort => "INTERNET_IP_PORT",
NetworkEndpointType::NonGcpPrivateIpPort => "NON_GCP_PRIVATE_IP_PORT",
NetworkEndpointType::PrivateServiceConnect => "PRIVATE_SERVICE_CONNECT",
NetworkEndpointType::Serverless => "SERVERLESS",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_NETWORK_ENDPOINT_TYPE" => {
Some(Self::UndefinedNetworkEndpointType)
}
"GCE_VM_IP" => Some(Self::GceVmIp),
"GCE_VM_IP_PORT" => Some(Self::GceVmIpPort),
"INTERNET_FQDN_PORT" => Some(Self::InternetFqdnPort),
"INTERNET_IP_PORT" => Some(Self::InternetIpPort),
"NON_GCP_PRIVATE_IP_PORT" => Some(Self::NonGcpPrivateIpPort),
"PRIVATE_SERVICE_CONNECT" => Some(Self::PrivateServiceConnect),
"SERVERLESS" => Some(Self::Serverless),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkEndpointGroupAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of NetworkEndpointGroupsScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
NetworkEndpointGroupsScopedList,
>,
/// \[Output Only\] The resource type, which is always compute#networkEndpointGroupAggregatedList for aggregated lists of network endpoint groups.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Configuration for an App Engine network endpoint group (NEG). The service is optional, may be provided explicitly or in the URL mask. The version is optional and can only be provided explicitly or in the URL mask when service is present. Note: App Engine service must be in the same project and located in the same region as the Serverless NEG.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkEndpointGroupAppEngine {
/// Optional serving service. The service name is case-sensitive and must be 1-63 characters long. Example value: default, my-service.
#[prost(string, optional, tag = "373540533")]
pub service: ::core::option::Option<::prost::alloc::string::String>,
/// An URL mask is one of the main components of the Cloud Function. A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs foo1-dot-appname.appspot.com/v1 and foo1-dot-appname.appspot.com/v2 can be backed by the same Serverless NEG with URL mask <service>-dot-appname.appspot.com/<version>. The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively.
#[prost(string, optional, tag = "103352252")]
pub url_mask: ::core::option::Option<::prost::alloc::string::String>,
/// Optional serving version. The version name is case-sensitive and must be 1-100 characters long. Example value: v1, v2.
#[prost(string, optional, tag = "351608024")]
pub version: ::core::option::Option<::prost::alloc::string::String>,
}
/// Configuration for a Cloud Function network endpoint group (NEG). The function must be provided explicitly or in the URL mask. Note: Cloud Function must be in the same project and located in the same region as the Serverless NEG.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkEndpointGroupCloudFunction {
/// A user-defined name of the Cloud Function. The function name is case-sensitive and must be 1-63 characters long. Example value: func1.
#[prost(string, optional, tag = "307196888")]
pub function: ::core::option::Option<::prost::alloc::string::String>,
/// An URL mask is one of the main components of the Cloud Function. A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs mydomain.com/function1 and mydomain.com/function2 can be backed by the same Serverless NEG with URL mask /<function>. The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively.
#[prost(string, optional, tag = "103352252")]
pub url_mask: ::core::option::Option<::prost::alloc::string::String>,
}
/// Configuration for a Cloud Run network endpoint group (NEG). The service must be provided explicitly or in the URL mask. The tag is optional, may be provided explicitly or in the URL mask. Note: Cloud Run service must be in the same project and located in the same region as the Serverless NEG.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkEndpointGroupCloudRun {
/// Cloud Run service is the main resource of Cloud Run. The service must be 1-63 characters long, and comply with RFC1035. Example value: "run-service".
#[prost(string, optional, tag = "373540533")]
pub service: ::core::option::Option<::prost::alloc::string::String>,
/// Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information. The tag must be 1-63 characters long, and comply with RFC1035. Example value: "revision-0010".
#[prost(string, optional, tag = "114586")]
pub tag: ::core::option::Option<::prost::alloc::string::String>,
/// An URL mask is one of the main components of the Cloud Function. A template to parse <service> and <tag> fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services. For example, request URLs foo1.domain.com/bar1 and foo1.domain.com/bar2 can be backed by the same Serverless Network Endpoint Group (NEG) with URL mask <tag>.domain.com/<service>. The URL mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively.
#[prost(string, optional, tag = "103352252")]
pub url_mask: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkEndpointGroupList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of NetworkEndpointGroup resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<NetworkEndpointGroup>,
/// \[Output Only\] The resource type, which is always compute#networkEndpointGroupList for network endpoint group lists.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// All data that is specifically relevant to only network endpoint groups of type PRIVATE_SERVICE_CONNECT.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkEndpointGroupPscData {
/// \[Output Only\] Address allocated from given subnetwork for PSC. This IP address acts as a VIP for a PSC NEG, allowing it to act as an endpoint in L7 PSC-XLB.
#[prost(string, optional, tag = "452646572")]
pub consumer_psc_address: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The PSC connection id of the PSC Network Endpoint Group Consumer.
#[prost(uint64, optional, tag = "292082397")]
pub psc_connection_id: ::core::option::Option<u64>,
/// \[Output Only\] The connection status of the PSC Forwarding Rule.
/// Check the PscConnectionStatus enum for the list of possible values.
#[prost(string, optional, tag = "184149172")]
pub psc_connection_status: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `NetworkEndpointGroupPscData`.
pub mod network_endpoint_group_psc_data {
/// \[Output Only\] The connection status of the PSC Forwarding Rule.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum PscConnectionStatus {
/// A value indicating that the enum field is not set.
UndefinedPscConnectionStatus = 0,
/// The connection has been accepted by the producer.
Accepted = 246714279,
/// The connection has been closed by the producer and will not serve traffic going forward.
Closed = 380163436,
/// The connection has been accepted by the producer, but the producer needs to take further action before the forwarding rule can serve traffic.
NeedsAttention = 344491452,
/// The connection is pending acceptance by the producer.
Pending = 35394935,
/// The connection has been rejected by the producer.
Rejected = 174130302,
StatusUnspecified = 42133066,
}
impl PscConnectionStatus {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
PscConnectionStatus::UndefinedPscConnectionStatus => {
"UNDEFINED_PSC_CONNECTION_STATUS"
}
PscConnectionStatus::Accepted => "ACCEPTED",
PscConnectionStatus::Closed => "CLOSED",
PscConnectionStatus::NeedsAttention => "NEEDS_ATTENTION",
PscConnectionStatus::Pending => "PENDING",
PscConnectionStatus::Rejected => "REJECTED",
PscConnectionStatus::StatusUnspecified => "STATUS_UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PSC_CONNECTION_STATUS" => {
Some(Self::UndefinedPscConnectionStatus)
}
"ACCEPTED" => Some(Self::Accepted),
"CLOSED" => Some(Self::Closed),
"NEEDS_ATTENTION" => Some(Self::NeedsAttention),
"PENDING" => Some(Self::Pending),
"REJECTED" => Some(Self::Rejected),
"STATUS_UNSPECIFIED" => Some(Self::StatusUnspecified),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkEndpointGroupsAttachEndpointsRequest {
/// The list of network endpoints to be attached.
#[prost(message, repeated, tag = "149850285")]
pub network_endpoints: ::prost::alloc::vec::Vec<NetworkEndpoint>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkEndpointGroupsDetachEndpointsRequest {
/// The list of network endpoints to be detached.
#[prost(message, repeated, tag = "149850285")]
pub network_endpoints: ::prost::alloc::vec::Vec<NetworkEndpoint>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkEndpointGroupsListEndpointsRequest {
/// Optional query parameter for showing the health status of each network endpoint. Valid options are SKIP or SHOW. If you don't specify this parameter, the health status of network endpoints will not be provided.
/// Check the HealthStatus enum for the list of possible values.
#[prost(string, optional, tag = "380545845")]
pub health_status: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `NetworkEndpointGroupsListEndpointsRequest`.
pub mod network_endpoint_groups_list_endpoints_request {
/// Optional query parameter for showing the health status of each network endpoint. Valid options are SKIP or SHOW. If you don't specify this parameter, the health status of network endpoints will not be provided.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum HealthStatus {
/// A value indicating that the enum field is not set.
UndefinedHealthStatus = 0,
/// Show the health status for each network endpoint. Impacts latency of the call.
Show = 2544381,
/// Health status for network endpoints will not be provided.
Skip = 2547071,
}
impl HealthStatus {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
HealthStatus::UndefinedHealthStatus => "UNDEFINED_HEALTH_STATUS",
HealthStatus::Show => "SHOW",
HealthStatus::Skip => "SKIP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_HEALTH_STATUS" => Some(Self::UndefinedHealthStatus),
"SHOW" => Some(Self::Show),
"SKIP" => Some(Self::Skip),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkEndpointGroupsListNetworkEndpoints {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of NetworkEndpointWithHealthStatus resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<NetworkEndpointWithHealthStatus>,
/// \[Output Only\] The resource type, which is always compute#networkEndpointGroupsListNetworkEndpoints for the list of network endpoints in the specified network endpoint group.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkEndpointGroupsScopedList {
/// \[Output Only\] The list of network endpoint groups that are contained in this scope.
#[prost(message, repeated, tag = "29346733")]
pub network_endpoint_groups: ::prost::alloc::vec::Vec<NetworkEndpointGroup>,
/// \[Output Only\] An informational warning that replaces the list of network endpoint groups when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkEndpointWithHealthStatus {
/// \[Output only\] The health status of network endpoint;
#[prost(message, repeated, tag = "258689431")]
pub healths: ::prost::alloc::vec::Vec<HealthStatusForNetworkEndpoint>,
/// \[Output only\] The network endpoint;
#[prost(message, optional, tag = "56789126")]
pub network_endpoint: ::core::option::Option<NetworkEndpoint>,
}
/// A network interface resource attached to an instance.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkInterface {
/// An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.
#[prost(message, repeated, tag = "111058326")]
pub access_configs: ::prost::alloc::vec::Vec<AccessConfig>,
/// An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
#[prost(message, repeated, tag = "165085631")]
pub alias_ip_ranges: ::prost::alloc::vec::Vec<AliasIpRange>,
/// Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface. The request will fail with error 400 Bad Request if the fingerprint is not provided, or 412 Precondition Failed if the fingerprint is out of date.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// The prefix length of the primary internal IPv6 range.
#[prost(int32, optional, tag = "203833757")]
pub internal_ipv6_prefix_length: ::core::option::Option<i32>,
/// An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
#[prost(message, repeated, tag = "483472110")]
pub ipv6_access_configs: ::prost::alloc::vec::Vec<AccessConfig>,
/// \[Output Only\] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6.
/// Check the Ipv6AccessType enum for the list of possible values.
#[prost(string, optional, tag = "504658653")]
pub ipv6_access_type: ::core::option::Option<::prost::alloc::string::String>,
/// An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
#[prost(string, optional, tag = "341563804")]
pub ipv6_address: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Type of the resource. Always compute#networkInterface for network interfaces.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The name of the network interface, which is generated by the server. For a VM, the network interface uses the nicN naming format. Where N is a value between 0 and 7. The default interface value is nic0.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - <https://www.googleapis.com/compute/v1/projects/project/global/networks/> network - projects/project/global/networks/network - global/networks/default
#[prost(string, optional, tag = "232872494")]
pub network: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.
#[prost(string, optional, tag = "224644052")]
pub network_attachment: ::core::option::Option<::prost::alloc::string::String>,
/// An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
#[prost(string, optional, tag = "207181961")]
pub network_i_p: ::core::option::Option<::prost::alloc::string::String>,
/// The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
/// Check the NicType enum for the list of possible values.
#[prost(string, optional, tag = "59810577")]
pub nic_type: ::core::option::Option<::prost::alloc::string::String>,
/// The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It'll be empty if not specified by the users.
#[prost(int32, optional, tag = "503708769")]
pub queue_count: ::core::option::Option<i32>,
/// The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations.
/// Check the StackType enum for the list of possible values.
#[prost(string, optional, tag = "425908881")]
pub stack_type: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - <https://www.googleapis.com/compute/v1/projects/project/regions/region> /subnetworks/subnetwork - regions/region/subnetworks/subnetwork
#[prost(string, optional, tag = "307827694")]
pub subnetwork: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `NetworkInterface`.
pub mod network_interface {
/// \[Output Only\] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Ipv6AccessType {
/// A value indicating that the enum field is not set.
UndefinedIpv6AccessType = 0,
/// This network interface can have external IPv6.
External = 35607499,
/// This network interface can have internal IPv6.
Internal = 279295677,
UnspecifiedIpv6AccessType = 313080613,
}
impl Ipv6AccessType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Ipv6AccessType::UndefinedIpv6AccessType => "UNDEFINED_IPV6_ACCESS_TYPE",
Ipv6AccessType::External => "EXTERNAL",
Ipv6AccessType::Internal => "INTERNAL",
Ipv6AccessType::UnspecifiedIpv6AccessType => {
"UNSPECIFIED_IPV6_ACCESS_TYPE"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_IPV6_ACCESS_TYPE" => Some(Self::UndefinedIpv6AccessType),
"EXTERNAL" => Some(Self::External),
"INTERNAL" => Some(Self::Internal),
"UNSPECIFIED_IPV6_ACCESS_TYPE" => Some(Self::UnspecifiedIpv6AccessType),
_ => None,
}
}
}
/// The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum NicType {
/// A value indicating that the enum field is not set.
UndefinedNicType = 0,
/// GVNIC
Gvnic = 68209305,
/// No type specified.
UnspecifiedNicType = 67411801,
/// VIRTIO
VirtioNet = 452123481,
}
impl NicType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
NicType::UndefinedNicType => "UNDEFINED_NIC_TYPE",
NicType::Gvnic => "GVNIC",
NicType::UnspecifiedNicType => "UNSPECIFIED_NIC_TYPE",
NicType::VirtioNet => "VIRTIO_NET",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_NIC_TYPE" => Some(Self::UndefinedNicType),
"GVNIC" => Some(Self::Gvnic),
"UNSPECIFIED_NIC_TYPE" => Some(Self::UnspecifiedNicType),
"VIRTIO_NET" => Some(Self::VirtioNet),
_ => None,
}
}
}
/// The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum StackType {
/// A value indicating that the enum field is not set.
UndefinedStackType = 0,
/// The network interface can have both IPv4 and IPv6 addresses.
Ipv4Ipv6 = 22197249,
/// The network interface will be assigned IPv4 address.
Ipv4Only = 22373798,
UnspecifiedStackType = 298084569,
}
impl StackType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
StackType::UndefinedStackType => "UNDEFINED_STACK_TYPE",
StackType::Ipv4Ipv6 => "IPV4_IPV6",
StackType::Ipv4Only => "IPV4_ONLY",
StackType::UnspecifiedStackType => "UNSPECIFIED_STACK_TYPE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STACK_TYPE" => Some(Self::UndefinedStackType),
"IPV4_IPV6" => Some(Self::Ipv4Ipv6),
"IPV4_ONLY" => Some(Self::Ipv4Only),
"UNSPECIFIED_STACK_TYPE" => Some(Self::UnspecifiedStackType),
_ => None,
}
}
}
}
/// Contains a list of networks.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Network resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Network>,
/// \[Output Only\] Type of resource. Always compute#networkList for lists of networks.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// A network peering attached to a network resource. The message includes the peering name, peer network, peering state, and a flag indicating whether Google Compute Engine should automatically create routes for the peering.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkPeering {
/// This field will be deprecated soon. Use the exchange_subnet_routes field instead. Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.
#[prost(bool, optional, tag = "57454941")]
pub auto_create_routes: ::core::option::Option<bool>,
/// Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.
#[prost(bool, optional, tag = "26322256")]
pub exchange_subnet_routes: ::core::option::Option<bool>,
/// Whether to export the custom routes to peer network. The default value is false.
#[prost(bool, optional, tag = "60281485")]
pub export_custom_routes: ::core::option::Option<bool>,
/// Whether subnet routes with public IP range are exported. The default value is true, all subnet routes are exported. IPv4 special-use ranges are always exported to peers and are not controlled by this field.
#[prost(bool, optional, tag = "97940834")]
pub export_subnet_routes_with_public_ip: ::core::option::Option<bool>,
/// Whether to import the custom routes from peer network. The default value is false.
#[prost(bool, optional, tag = "197982398")]
pub import_custom_routes: ::core::option::Option<bool>,
/// Whether subnet routes with public IP range are imported. The default value is false. IPv4 special-use ranges are always imported from peers and are not controlled by this field.
#[prost(bool, optional, tag = "14419729")]
pub import_subnet_routes_with_public_ip: ::core::option::Option<bool>,
/// Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?`. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.
#[prost(string, optional, tag = "232872494")]
pub network: ::core::option::Option<::prost::alloc::string::String>,
/// Maximum Transmission Unit in bytes.
#[prost(int32, optional, tag = "69584721")]
pub peer_mtu: ::core::option::Option<i32>,
/// Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY.
/// Check the StackType enum for the list of possible values.
#[prost(string, optional, tag = "425908881")]
pub stack_type: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network.
/// Check the State enum for the list of possible values.
#[prost(string, optional, tag = "109757585")]
pub state: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Details about the current state of the peering.
#[prost(string, optional, tag = "95566996")]
pub state_details: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `NetworkPeering`.
pub mod network_peering {
/// Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum StackType {
/// A value indicating that the enum field is not set.
UndefinedStackType = 0,
/// This Peering will allow IPv4 traffic and routes to be exchanged. Additionally if the matching peering is IPV4_IPV6, IPv6 traffic and routes will be exchanged as well.
Ipv4Ipv6 = 22197249,
/// This Peering will only allow IPv4 traffic and routes to be exchanged, even if the matching peering is IPV4_IPV6.
Ipv4Only = 22373798,
}
impl StackType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
StackType::UndefinedStackType => "UNDEFINED_STACK_TYPE",
StackType::Ipv4Ipv6 => "IPV4_IPV6",
StackType::Ipv4Only => "IPV4_ONLY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STACK_TYPE" => Some(Self::UndefinedStackType),
"IPV4_IPV6" => Some(Self::Ipv4Ipv6),
"IPV4_ONLY" => Some(Self::Ipv4Only),
_ => None,
}
}
}
/// \[Output Only\] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// A value indicating that the enum field is not set.
UndefinedState = 0,
/// Matching configuration exists on the peer.
Active = 314733318,
/// There is no matching configuration on the peer, including the case when peer does not exist.
Inactive = 270421099,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::UndefinedState => "UNDEFINED_STATE",
State::Active => "ACTIVE",
State::Inactive => "INACTIVE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATE" => Some(Self::UndefinedState),
"ACTIVE" => Some(Self::Active),
"INACTIVE" => Some(Self::Inactive),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkPerformanceConfig {
///
/// Check the TotalEgressBandwidthTier enum for the list of possible values.
#[prost(string, optional, tag = "130109439")]
pub total_egress_bandwidth_tier: ::core::option::Option<
::prost::alloc::string::String,
>,
}
/// Nested message and enum types in `NetworkPerformanceConfig`.
pub mod network_performance_config {
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum TotalEgressBandwidthTier {
/// A value indicating that the enum field is not set.
UndefinedTotalEgressBandwidthTier = 0,
Default = 115302945,
Tier1 = 326919444,
}
impl TotalEgressBandwidthTier {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
TotalEgressBandwidthTier::UndefinedTotalEgressBandwidthTier => {
"UNDEFINED_TOTAL_EGRESS_BANDWIDTH_TIER"
}
TotalEgressBandwidthTier::Default => "DEFAULT",
TotalEgressBandwidthTier::Tier1 => "TIER_1",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TOTAL_EGRESS_BANDWIDTH_TIER" => {
Some(Self::UndefinedTotalEgressBandwidthTier)
}
"DEFAULT" => Some(Self::Default),
"TIER_1" => Some(Self::Tier1),
_ => None,
}
}
}
}
/// A routing configuration attached to a network resource. The message includes the list of routers associated with the network, and a flag indicating the type of routing behavior to enforce network-wide.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkRoutingConfig {
/// The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
/// Check the RoutingMode enum for the list of possible values.
#[prost(string, optional, tag = "475143548")]
pub routing_mode: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `NetworkRoutingConfig`.
pub mod network_routing_config {
/// The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum RoutingMode {
/// A value indicating that the enum field is not set.
UndefinedRoutingMode = 0,
Global = 494663587,
Regional = 92288543,
}
impl RoutingMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
RoutingMode::UndefinedRoutingMode => "UNDEFINED_ROUTING_MODE",
RoutingMode::Global => "GLOBAL",
RoutingMode::Regional => "REGIONAL",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ROUTING_MODE" => Some(Self::UndefinedRoutingMode),
"GLOBAL" => Some(Self::Global),
"REGIONAL" => Some(Self::Regional),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworksAddPeeringRequest {
/// This field will be deprecated soon. Use exchange_subnet_routes in network_peering instead. Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.
#[prost(bool, optional, tag = "57454941")]
pub auto_create_routes: ::core::option::Option<bool>,
/// Name of the peering, which should conform to RFC1035.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.
#[prost(message, optional, tag = "328926767")]
pub network_peering: ::core::option::Option<NetworkPeering>,
/// URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.
#[prost(string, optional, tag = "500625489")]
pub peer_network: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworksGetEffectiveFirewallsResponse {
/// Effective firewalls from firewall policy.
#[prost(message, repeated, tag = "410985794")]
pub firewall_policys: ::prost::alloc::vec::Vec<
NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy,
>,
/// Effective firewalls on the network.
#[prost(message, repeated, tag = "272245619")]
pub firewalls: ::prost::alloc::vec::Vec<Firewall>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy {
/// \[Output Only\] Deprecated, please use short name instead. The display name of the firewall policy.
#[prost(string, optional, tag = "4473832")]
pub display_name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The name of the firewall policy.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The rules that apply to the network.
#[prost(message, repeated, tag = "108873975")]
pub rules: ::prost::alloc::vec::Vec<FirewallPolicyRule>,
/// \[Output Only\] The short name of the firewall policy.
#[prost(string, optional, tag = "492051566")]
pub short_name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The type of the firewall policy.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy`.
pub mod networks_get_effective_firewalls_response_effective_firewall_policy {
/// \[Output Only\] The type of the firewall policy.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
Hierarchy = 69902869,
Network = 413984270,
Unspecified = 526786327,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::Hierarchy => "HIERARCHY",
Type::Network => "NETWORK",
Type::Unspecified => "UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"HIERARCHY" => Some(Self::Hierarchy),
"NETWORK" => Some(Self::Network),
"UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworksRemovePeeringRequest {
/// Name of the peering, which should conform to RFC1035.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworksUpdatePeeringRequest {
#[prost(message, optional, tag = "328926767")]
pub network_peering: ::core::option::Option<NetworkPeering>,
}
/// Represents a sole-tenant Node Group resource. A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your specific project. Use sole-tenant nodes to keep your instances physically separated from instances in other projects, or to group your instances together on the same host hardware. For more information, read Sole-tenant nodes.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeGroup {
/// Specifies how autoscaling should behave.
#[prost(message, optional, tag = "221950041")]
pub autoscaling_policy: ::core::option::Option<NodeGroupAutoscalingPolicy>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] The type of the resource. Always compute#nodeGroup for node group.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate.
#[prost(string, optional, tag = "350519505")]
pub location_hint: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies.
/// Check the MaintenancePolicy enum for the list of possible values.
#[prost(string, optional, tag = "528327646")]
pub maintenance_policy: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "186374812")]
pub maintenance_window: ::core::option::Option<NodeGroupMaintenanceWindow>,
/// The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the node template to create the node group from.
#[prost(string, optional, tag = "323154455")]
pub node_template: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// Share-settings for the node group
#[prost(message, optional, tag = "266668163")]
pub share_settings: ::core::option::Option<ShareSettings>,
/// \[Output Only\] The total number of nodes in the node group.
#[prost(int32, optional, tag = "3530753")]
pub size: ::core::option::Option<i32>,
///
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The name of the zone where the node group resides, such as us-central1-a.
#[prost(string, optional, tag = "3744684")]
pub zone: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `NodeGroup`.
pub mod node_group {
/// Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum MaintenancePolicy {
/// A value indicating that the enum field is not set.
UndefinedMaintenancePolicy = 0,
/// Allow the node and corresponding instances to retain default maintenance behavior.
Default = 115302945,
Unspecified = 72964182,
/// When maintenance must be done on a node, the instances on that node will be moved to other nodes in the group. Instances with onHostMaintenance = MIGRATE will live migrate to their destinations while instances with onHostMaintenance = TERMINATE will terminate and then restart on their destination nodes if automaticRestart = true.
MigrateWithinNodeGroup = 153483394,
/// Instances in this group will restart on the same node when maintenance has completed. Instances must have onHostMaintenance = TERMINATE, and they will only restart if automaticRestart = true.
RestartInPlace = 228647325,
}
impl MaintenancePolicy {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
MaintenancePolicy::UndefinedMaintenancePolicy => {
"UNDEFINED_MAINTENANCE_POLICY"
}
MaintenancePolicy::Default => "DEFAULT",
MaintenancePolicy::Unspecified => "MAINTENANCE_POLICY_UNSPECIFIED",
MaintenancePolicy::MigrateWithinNodeGroup => "MIGRATE_WITHIN_NODE_GROUP",
MaintenancePolicy::RestartInPlace => "RESTART_IN_PLACE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_MAINTENANCE_POLICY" => Some(Self::UndefinedMaintenancePolicy),
"DEFAULT" => Some(Self::Default),
"MAINTENANCE_POLICY_UNSPECIFIED" => Some(Self::Unspecified),
"MIGRATE_WITHIN_NODE_GROUP" => Some(Self::MigrateWithinNodeGroup),
"RESTART_IN_PLACE" => Some(Self::RestartInPlace),
_ => None,
}
}
}
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
Creating = 455564985,
Deleting = 528602024,
Invalid = 530283991,
Ready = 77848963,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Creating => "CREATING",
Status::Deleting => "DELETING",
Status::Invalid => "INVALID",
Status::Ready => "READY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"CREATING" => Some(Self::Creating),
"DELETING" => Some(Self::Deleting),
"INVALID" => Some(Self::Invalid),
"READY" => Some(Self::Ready),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeGroupAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of NodeGroupsScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
NodeGroupsScopedList,
>,
/// \[Output Only\] Type of resource.Always compute#nodeGroupAggregatedList for aggregated lists of node groups.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeGroupAutoscalingPolicy {
/// The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100.
#[prost(int32, optional, tag = "297762838")]
pub max_nodes: ::core::option::Option<i32>,
/// The minimum number of nodes that the group should have.
#[prost(int32, optional, tag = "533370500")]
pub min_nodes: ::core::option::Option<i32>,
/// The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes.
/// Check the Mode enum for the list of possible values.
#[prost(string, optional, tag = "3357091")]
pub mode: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `NodeGroupAutoscalingPolicy`.
pub mod node_group_autoscaling_policy {
/// The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Mode {
/// A value indicating that the enum field is not set.
UndefinedMode = 0,
Unspecified = 371348091,
/// Autoscaling is disabled.
Off = 78159,
/// Autocaling is fully enabled.
On = 2527,
/// Autoscaling will only scale out and will not remove nodes.
OnlyScaleOut = 152713670,
}
impl Mode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Mode::UndefinedMode => "UNDEFINED_MODE",
Mode::Unspecified => "MODE_UNSPECIFIED",
Mode::Off => "OFF",
Mode::On => "ON",
Mode::OnlyScaleOut => "ONLY_SCALE_OUT",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_MODE" => Some(Self::UndefinedMode),
"MODE_UNSPECIFIED" => Some(Self::Unspecified),
"OFF" => Some(Self::Off),
"ON" => Some(Self::On),
"ONLY_SCALE_OUT" => Some(Self::OnlyScaleOut),
_ => None,
}
}
}
}
/// Contains a list of nodeGroups.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeGroupList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of NodeGroup resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<NodeGroup>,
/// \[Output Only\] Type of resource.Always compute#nodeGroupList for lists of node groups.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Time window specified for daily maintenance operations. GCE's internal maintenance will be performed within this window.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeGroupMaintenanceWindow {
/// \[Output only\] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.
#[prost(message, optional, tag = "525291840")]
pub maintenance_duration: ::core::option::Option<Duration>,
/// Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
#[prost(string, optional, tag = "37467274")]
pub start_time: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeGroupNode {
/// Accelerators for this node.
#[prost(message, repeated, tag = "269577064")]
pub accelerators: ::prost::alloc::vec::Vec<AcceleratorConfig>,
/// Node resources that are reserved by all instances.
#[prost(message, optional, tag = "334527118")]
pub consumed_resources: ::core::option::Option<InstanceConsumptionInfo>,
/// CPU overcommit.
/// Check the CpuOvercommitType enum for the list of possible values.
#[prost(string, optional, tag = "247727959")]
pub cpu_overcommit_type: ::core::option::Option<::prost::alloc::string::String>,
/// Local disk configurations.
#[prost(message, repeated, tag = "95594102")]
pub disks: ::prost::alloc::vec::Vec<LocalDisk>,
/// Instance data that shows consumed resources on the node.
#[prost(message, repeated, tag = "84715576")]
pub instance_consumption_data: ::prost::alloc::vec::Vec<InstanceConsumptionData>,
/// Instances scheduled on this node.
#[prost(string, repeated, tag = "29097598")]
pub instances: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The name of the node.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The type of this node.
#[prost(string, optional, tag = "465832791")]
pub node_type: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Reserved for future use.
#[prost(bool, optional, tag = "480964267")]
pub satisfies_pzs: ::core::option::Option<bool>,
/// Binding properties for the physical server.
#[prost(message, optional, tag = "208179593")]
pub server_binding: ::core::option::Option<ServerBinding>,
/// Server ID associated with this node.
#[prost(string, optional, tag = "339433367")]
pub server_id: ::core::option::Option<::prost::alloc::string::String>,
///
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// Total amount of available resources on the node.
#[prost(message, optional, tag = "97406698")]
pub total_resources: ::core::option::Option<InstanceConsumptionInfo>,
}
/// Nested message and enum types in `NodeGroupNode`.
pub mod node_group_node {
/// CPU overcommit.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum CpuOvercommitType {
/// A value indicating that the enum field is not set.
UndefinedCpuOvercommitType = 0,
Unspecified = 520665615,
Enabled = 182130465,
None = 2402104,
}
impl CpuOvercommitType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
CpuOvercommitType::UndefinedCpuOvercommitType => {
"UNDEFINED_CPU_OVERCOMMIT_TYPE"
}
CpuOvercommitType::Unspecified => "CPU_OVERCOMMIT_TYPE_UNSPECIFIED",
CpuOvercommitType::Enabled => "ENABLED",
CpuOvercommitType::None => "NONE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_CPU_OVERCOMMIT_TYPE" => Some(Self::UndefinedCpuOvercommitType),
"CPU_OVERCOMMIT_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"ENABLED" => Some(Self::Enabled),
"NONE" => Some(Self::None),
_ => None,
}
}
}
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
Creating = 455564985,
Deleting = 528602024,
Invalid = 530283991,
Ready = 77848963,
Repairing = 413483285,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Creating => "CREATING",
Status::Deleting => "DELETING",
Status::Invalid => "INVALID",
Status::Ready => "READY",
Status::Repairing => "REPAIRING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"CREATING" => Some(Self::Creating),
"DELETING" => Some(Self::Deleting),
"INVALID" => Some(Self::Invalid),
"READY" => Some(Self::Ready),
"REPAIRING" => Some(Self::Repairing),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeGroupsAddNodesRequest {
/// Count of additional nodes to be added to the node group.
#[prost(int32, optional, tag = "134997930")]
pub additional_node_count: ::core::option::Option<i32>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeGroupsDeleteNodesRequest {
/// Names of the nodes to delete.
#[prost(string, repeated, tag = "104993457")]
pub nodes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeGroupsListNodes {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Node resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<NodeGroupNode>,
/// \[Output Only\] The resource type, which is always compute.nodeGroupsListNodes for the list of nodes in the specified node group.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeGroupsScopedList {
/// \[Output Only\] A list of node groups contained in this scope.
#[prost(message, repeated, tag = "73188017")]
pub node_groups: ::prost::alloc::vec::Vec<NodeGroup>,
/// \[Output Only\] An informational warning that appears when the nodeGroup list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeGroupsSetNodeTemplateRequest {
/// Full or partial URL of the node template resource to be updated for this node group.
#[prost(string, optional, tag = "323154455")]
pub node_template: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeGroupsSimulateMaintenanceEventRequest {
/// Names of the nodes to go under maintenance simulation.
#[prost(string, repeated, tag = "104993457")]
pub nodes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Represent a sole-tenant Node Template resource. You can use a template to define properties for nodes in a node group. For more information, read Creating node groups and instances.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeTemplate {
#[prost(message, repeated, tag = "269577064")]
pub accelerators: ::prost::alloc::vec::Vec<AcceleratorConfig>,
/// CPU overcommit.
/// Check the CpuOvercommitType enum for the list of possible values.
#[prost(string, optional, tag = "247727959")]
pub cpu_overcommit_type: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, repeated, tag = "95594102")]
pub disks: ::prost::alloc::vec::Vec<LocalDisk>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] The type of the resource. Always compute#nodeTemplate for node templates.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Labels to use for node affinity, which will be used in instance scheduling.
#[prost(btree_map = "string, string", tag = "339007161")]
pub node_affinity_labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// The node type to use for nodes group that are created from this template.
#[prost(string, optional, tag = "465832791")]
pub node_type: ::core::option::Option<::prost::alloc::string::String>,
/// Do not use. Instead, use the node_type property.
#[prost(message, optional, tag = "315257905")]
pub node_type_flexibility: ::core::option::Option<NodeTemplateNodeTypeFlexibility>,
/// \[Output Only\] The name of the region where the node template resides, such as us-central1.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// Sets the binding properties for the physical server. Valid values include: - *\[Default\]* RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.
#[prost(message, optional, tag = "208179593")]
pub server_binding: ::core::option::Option<ServerBinding>,
/// \[Output Only\] The status of the node template. One of the following values: CREATING, READY, and DELETING.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] An optional, human-readable explanation of the status.
#[prost(string, optional, tag = "297428154")]
pub status_message: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `NodeTemplate`.
pub mod node_template {
/// CPU overcommit.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum CpuOvercommitType {
/// A value indicating that the enum field is not set.
UndefinedCpuOvercommitType = 0,
Unspecified = 520665615,
Enabled = 182130465,
None = 2402104,
}
impl CpuOvercommitType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
CpuOvercommitType::UndefinedCpuOvercommitType => {
"UNDEFINED_CPU_OVERCOMMIT_TYPE"
}
CpuOvercommitType::Unspecified => "CPU_OVERCOMMIT_TYPE_UNSPECIFIED",
CpuOvercommitType::Enabled => "ENABLED",
CpuOvercommitType::None => "NONE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_CPU_OVERCOMMIT_TYPE" => Some(Self::UndefinedCpuOvercommitType),
"CPU_OVERCOMMIT_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"ENABLED" => Some(Self::Enabled),
"NONE" => Some(Self::None),
_ => None,
}
}
}
/// \[Output Only\] The status of the node template. One of the following values: CREATING, READY, and DELETING.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// Resources are being allocated.
Creating = 455564985,
/// The node template is currently being deleted.
Deleting = 528602024,
/// Invalid status.
Invalid = 530283991,
/// The node template is ready.
Ready = 77848963,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Creating => "CREATING",
Status::Deleting => "DELETING",
Status::Invalid => "INVALID",
Status::Ready => "READY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"CREATING" => Some(Self::Creating),
"DELETING" => Some(Self::Deleting),
"INVALID" => Some(Self::Invalid),
"READY" => Some(Self::Ready),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeTemplateAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of NodeTemplatesScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
NodeTemplatesScopedList,
>,
/// \[Output Only\] Type of resource.Always compute#nodeTemplateAggregatedList for aggregated lists of node templates.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of node templates.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeTemplateList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of NodeTemplate resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<NodeTemplate>,
/// \[Output Only\] Type of resource.Always compute#nodeTemplateList for lists of node templates.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeTemplateNodeTypeFlexibility {
#[prost(string, optional, tag = "3060683")]
pub cpus: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "405741360")]
pub local_ssd: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "532856065")]
pub memory: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeTemplatesScopedList {
/// \[Output Only\] A list of node templates contained in this scope.
#[prost(message, repeated, tag = "354111804")]
pub node_templates: ::prost::alloc::vec::Vec<NodeTemplate>,
/// \[Output Only\] An informational warning that appears when the node templates list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represent a sole-tenant Node Type resource. Each node within a node group must have a node type. A node type specifies the total amount of cores and memory for that node. Currently, the only available node type is n1-node-96-624 node type that has 96 vCPUs and 624 GB of memory, available in multiple zones. For more information read Node types.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeType {
/// \[Output Only\] The CPU platform used by this node type.
#[prost(string, optional, tag = "410285354")]
pub cpu_platform: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The deprecation status associated with this node type.
#[prost(message, optional, tag = "515138995")]
pub deprecated: ::core::option::Option<DeprecationStatus>,
/// \[Output Only\] An optional textual description of the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The number of virtual CPUs that are available to the node type.
#[prost(int32, optional, tag = "393356754")]
pub guest_cpus: ::core::option::Option<i32>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] The type of the resource. Always compute#nodeType for node types.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Local SSD available to the node type, defined in GB.
#[prost(int32, optional, tag = "329237578")]
pub local_ssd_gb: ::core::option::Option<i32>,
/// \[Output Only\] The amount of physical memory available to the node type, defined in MB.
#[prost(int32, optional, tag = "116001171")]
pub memory_mb: ::core::option::Option<i32>,
/// \[Output Only\] Name of the resource.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The name of the zone where the node type resides, such as us-central1-a.
#[prost(string, optional, tag = "3744684")]
pub zone: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeTypeAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of NodeTypesScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
NodeTypesScopedList,
>,
/// \[Output Only\] Type of resource.Always compute#nodeTypeAggregatedList for aggregated lists of node types.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of node types.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeTypeList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of NodeType resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<NodeType>,
/// \[Output Only\] Type of resource.Always compute#nodeTypeList for lists of node types.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeTypesScopedList {
/// \[Output Only\] A list of node types contained in this scope.
#[prost(message, repeated, tag = "482172924")]
pub node_types: ::prost::alloc::vec::Vec<NodeType>,
/// \[Output Only\] An informational warning that appears when the node types list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represents a notification endpoint. A notification endpoint resource defines an endpoint to receive notifications when there are status changes detected by the associated health check service. For more information, see Health checks overview.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NotificationEndpoint {
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Settings of the gRPC notification endpoint including the endpoint URL and the retry duration.
#[prost(message, optional, tag = "456139556")]
pub grpc_settings: ::core::option::Option<NotificationEndpointGrpcSettings>,
/// \[Output Only\] A unique identifier for this resource type. The server generates this identifier.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#notificationEndpoint for notification endpoints.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the region where the notification endpoint resides. This field applies only to the regional resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a gRPC setting that describes one gRPC notification endpoint and the retry duration attempting to send notification to this endpoint.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NotificationEndpointGrpcSettings {
/// Optional. If specified, this field is used to set the authority header by the sender of notifications. See <https://tools.ietf.org/html/rfc7540#section-8.1.2.3>
#[prost(string, optional, tag = "401868611")]
pub authority: ::core::option::Option<::prost::alloc::string::String>,
/// Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name.
#[prost(string, optional, tag = "130489749")]
pub endpoint: ::core::option::Option<::prost::alloc::string::String>,
/// Optional. If specified, this field is used to populate the "name" field in gRPC requests.
#[prost(string, optional, tag = "300358300")]
pub payload_name: ::core::option::Option<::prost::alloc::string::String>,
/// Optional. This field is used to configure how often to send a full update of all non-healthy backends. If unspecified, full updates are not sent. If specified, must be in the range between 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification endpoints.
#[prost(message, optional, tag = "478288969")]
pub resend_interval: ::core::option::Option<Duration>,
/// How much time (in seconds) is spent attempting notification retries until a successful response is received. Default is 30s. Limit is 20m (1200s). Must be a positive number.
#[prost(uint32, optional, tag = "115681117")]
pub retry_duration_sec: ::core::option::Option<u32>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NotificationEndpointList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of NotificationEndpoint resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<NotificationEndpoint>,
/// \[Output Only\] Type of the resource. Always compute#notificationEndpoint for notification endpoints.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/v1/globalOperations) * [Regional](/compute/docs/reference/rest/v1/regionOperations) * [Zonal](/compute/docs/reference/rest/v1/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zoneOperations` resource. For more information, read Global, Regional, and Zonal Resources. Note that completed Operation resources have a limited retention period.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Operation {
/// \[Output Only\] The value of `requestId` if you provided it in the request. Not present otherwise.
#[prost(string, optional, tag = "297240295")]
pub client_operation_id: ::core::option::Option<::prost::alloc::string::String>,
/// \[Deprecated\] This field is deprecated.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A textual description of the operation, which is set when the operation is created.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The time that this operation was completed. This value is in RFC3339 text format.
#[prost(string, optional, tag = "114938801")]
pub end_time: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] If errors are generated during processing of the operation, this field will be populated.
#[prost(message, optional, tag = "96784904")]
pub error: ::core::option::Option<Error>,
/// \[Output Only\] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.
#[prost(string, optional, tag = "202521945")]
pub http_error_message: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] If the operation fails, this field contains the HTTP error status code that was returned. For example, a `404` means the resource was not found.
#[prost(int32, optional, tag = "312345196")]
pub http_error_status_code: ::core::option::Option<i32>,
/// \[Output Only\] The unique identifier for the operation. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] The time that this operation was requested. This value is in RFC3339 text format.
#[prost(string, optional, tag = "433722515")]
pub insert_time: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "89146177")]
pub instances_bulk_insert_operation_metadata: ::core::option::Option<
InstancesBulkInsertOperationMetadata,
>,
/// \[Output Only\] Type of the resource. Always `compute#operation` for Operation resources.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Name of the operation.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request.
#[prost(string, optional, tag = "40171187")]
pub operation_group_id: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The type of operation, such as `insert`, `update`, or `delete`, and so on.
#[prost(string, optional, tag = "177650450")]
pub operation_type: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
#[prost(int32, optional, tag = "72663597")]
pub progress: ::core::option::Option<i32>,
/// \[Output Only\] The URL of the region where the operation resides. Only applicable when performing regional operations.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] If the operation is for projects.setCommonInstanceMetadata, this field will contain information on all underlying zonal actions and their state.
#[prost(message, optional, tag = "490378980")]
pub set_common_instance_metadata_operation_metadata: ::core::option::Option<
SetCommonInstanceMetadataOperationMetadata,
>,
/// \[Output Only\] The time that this operation was started by the server. This value is in RFC3339 text format.
#[prost(string, optional, tag = "37467274")]
pub start_time: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
#[prost(enumeration = "operation::Status", optional, tag = "181260274")]
pub status: ::core::option::Option<i32>,
/// \[Output Only\] An optional textual description of the current status of the operation.
#[prost(string, optional, tag = "297428154")]
pub status_message: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique target ID, which identifies a specific incarnation of the target resource.
#[prost(uint64, optional, tag = "258165385")]
pub target_id: ::core::option::Option<u64>,
/// \[Output Only\] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
#[prost(string, optional, tag = "62671336")]
pub target_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] User who requested the operation, for example: `user@example.com` or `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
#[prost(string, optional, tag = "3599307")]
pub user: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] If warning messages are generated during processing of the operation, this field will be populated.
#[prost(message, repeated, tag = "498091095")]
pub warnings: ::prost::alloc::vec::Vec<Warnings>,
/// \[Output Only\] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
#[prost(string, optional, tag = "3744684")]
pub zone: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Operation`.
pub mod operation {
/// \[Output Only\] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
Done = 2104194,
Pending = 35394935,
Running = 121282975,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Done => "DONE",
Status::Pending => "PENDING",
Status::Running => "RUNNING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"DONE" => Some(Self::Done),
"PENDING" => Some(Self::Pending),
"RUNNING" => Some(Self::Running),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OperationAggregatedList {
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A map of scoped operation lists.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
OperationsScopedList,
>,
/// \[Output Only\] Type of resource. Always `compute#operationAggregatedList` for aggregated lists of operations.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than `maxResults`, use the `nextPageToken` as a value for the query parameter `pageToken` in the next list request. Subsequent list requests will have their own `nextPageToken` to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of Operation resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OperationList {
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A list of Operation resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Operation>,
/// \[Output Only\] Type of resource. Always `compute#operations` for Operations resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than `maxResults`, use the `nextPageToken` as a value for the query parameter `pageToken` in the next list request. Subsequent list requests will have their own `nextPageToken` to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OperationsScopedList {
/// \[Output Only\] A list of operations contained in this scope.
#[prost(message, repeated, tag = "4184044")]
pub operations: ::prost::alloc::vec::Vec<Operation>,
/// \[Output Only\] Informational warning which replaces the list of operations when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Settings controlling the eviction of unhealthy hosts from the load balancing pool for the backend service.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OutlierDetection {
/// The base time that a backend endpoint is ejected for. Defaults to 30000ms or 30s. After a backend endpoint is returned back to the load balancing pool, it can be ejected again in another ejection analysis. Thus, the total ejection time is equal to the base ejection time multiplied by the number of times the backend endpoint has been ejected. Defaults to 30000ms or 30s.
#[prost(message, optional, tag = "80997255")]
pub base_ejection_time: ::core::option::Option<Duration>,
/// Number of consecutive errors before a backend endpoint is ejected from the load balancing pool. When the backend endpoint is accessed over HTTP, a 5xx return code qualifies as an error. Defaults to 5.
#[prost(int32, optional, tag = "387193248")]
pub consecutive_errors: ::core::option::Option<i32>,
/// The number of consecutive gateway failures (502, 503, 504 status or connection errors that are mapped to one of those status codes) before a consecutive gateway failure ejection occurs. Defaults to 3.
#[prost(int32, optional, tag = "417504250")]
pub consecutive_gateway_failure: ::core::option::Option<i32>,
/// The percentage chance that a backend endpoint will be ejected when an outlier status is detected through consecutive 5xx. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 0.
#[prost(int32, optional, tag = "213133760")]
pub enforcing_consecutive_errors: ::core::option::Option<i32>,
/// The percentage chance that a backend endpoint will be ejected when an outlier status is detected through consecutive gateway failures. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100.
#[prost(int32, optional, tag = "394440666")]
pub enforcing_consecutive_gateway_failure: ::core::option::Option<i32>,
/// The percentage chance that a backend endpoint will be ejected when an outlier status is detected through success rate statistics. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100. Not supported when the backend service uses Serverless NEG.
#[prost(int32, optional, tag = "194508732")]
pub enforcing_success_rate: ::core::option::Option<i32>,
/// Time interval between ejection analysis sweeps. This can result in both new ejections and backend endpoints being returned to service. The interval is equal to the number of seconds as defined in outlierDetection.interval.seconds plus the number of nanoseconds as defined in outlierDetection.interval.nanos. Defaults to 1 second.
#[prost(message, optional, tag = "33547461")]
pub interval: ::core::option::Option<Duration>,
/// Maximum percentage of backend endpoints in the load balancing pool for the backend service that can be ejected if the ejection conditions are met. Defaults to 50%.
#[prost(int32, optional, tag = "18436888")]
pub max_ejection_percent: ::core::option::Option<i32>,
/// The number of backend endpoints in the load balancing pool that must have enough request volume to detect success rate outliers. If the number of backend endpoints is fewer than this setting, outlier detection via success rate statistics is not performed for any backend endpoint in the load balancing pool. Defaults to 5. Not supported when the backend service uses Serverless NEG.
#[prost(int32, optional, tag = "525766903")]
pub success_rate_minimum_hosts: ::core::option::Option<i32>,
/// The minimum number of total requests that must be collected in one interval (as defined by the interval duration above) to include this backend endpoint in success rate based outlier detection. If the volume is lower than this setting, outlier detection via success rate statistics is not performed for that backend endpoint. Defaults to 100. Not supported when the backend service uses Serverless NEG.
#[prost(int32, optional, tag = "281425357")]
pub success_rate_request_volume: ::core::option::Option<i32>,
/// This factor is used to determine the ejection threshold for success rate outlier ejection. The ejection threshold is the difference between the mean success rate, and the product of this factor and the standard deviation of the mean success rate: mean - (stdev * successRateStdevFactor). This factor is divided by a thousand to get a double. That is, if the desired factor is 1.9, the runtime value should be 1900. Defaults to 1900. Not supported when the backend service uses Serverless NEG.
#[prost(int32, optional, tag = "174735773")]
pub success_rate_stdev_factor: ::core::option::Option<i32>,
}
/// Next free: 7
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PacketIntervals {
/// Average observed inter-packet interval in milliseconds.
#[prost(int64, optional, tag = "204811827")]
pub avg_ms: ::core::option::Option<i64>,
/// From how long ago in the past these intervals were observed.
/// Check the Duration enum for the list of possible values.
#[prost(string, optional, tag = "155471252")]
pub duration: ::core::option::Option<::prost::alloc::string::String>,
/// Maximum observed inter-packet interval in milliseconds.
#[prost(int64, optional, tag = "529474145")]
pub max_ms: ::core::option::Option<i64>,
/// Minimum observed inter-packet interval in milliseconds.
#[prost(int64, optional, tag = "536564403")]
pub min_ms: ::core::option::Option<i64>,
/// Number of inter-packet intervals from which these statistics were derived.
#[prost(int64, optional, tag = "186329813")]
pub num_intervals: ::core::option::Option<i64>,
/// The type of packets for which inter-packet intervals were computed.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `PacketIntervals`.
pub mod packet_intervals {
/// From how long ago in the past these intervals were observed.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Duration {
/// A value indicating that the enum field is not set.
UndefinedDuration = 0,
Unspecified = 529071340,
Hour = 2223588,
/// From BfdSession object creation time.
Max = 76100,
Minute = 126786068,
}
impl Duration {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Duration::UndefinedDuration => "UNDEFINED_DURATION",
Duration::Unspecified => "DURATION_UNSPECIFIED",
Duration::Hour => "HOUR",
Duration::Max => "MAX",
Duration::Minute => "MINUTE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_DURATION" => Some(Self::UndefinedDuration),
"DURATION_UNSPECIFIED" => Some(Self::Unspecified),
"HOUR" => Some(Self::Hour),
"MAX" => Some(Self::Max),
"MINUTE" => Some(Self::Minute),
_ => None,
}
}
}
/// The type of packets for which inter-packet intervals were computed.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
/// Only applies to Echo packets. This shows the intervals between sending and receiving the same packet.
Loopback = 356174219,
/// Intervals between received packets.
Receive = 189660867,
/// Intervals between transmitted packets.
Transmit = 452903600,
Unspecified = 437714322,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::Loopback => "LOOPBACK",
Type::Receive => "RECEIVE",
Type::Transmit => "TRANSMIT",
Type::Unspecified => "TYPE_UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"LOOPBACK" => Some(Self::Loopback),
"RECEIVE" => Some(Self::Receive),
"TRANSMIT" => Some(Self::Transmit),
"TYPE_UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
/// Represents a Packet Mirroring resource. Packet Mirroring clones the traffic of specified instances in your Virtual Private Cloud (VPC) network and forwards it to a collector destination, such as an instance group of an internal TCP/UDP load balancer, for analysis or examination. For more information about setting up Packet Mirroring, see Using Packet Mirroring.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PacketMirroring {
/// The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true.
#[prost(message, optional, tag = "426607853")]
pub collector_ilb: ::core::option::Option<PacketMirroringForwardingRuleInfo>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on the network. The default is TRUE.
/// Check the Enable enum for the list of possible values.
#[prost(string, optional, tag = "311764355")]
pub enable: ::core::option::Option<::prost::alloc::string::String>,
/// Filter for mirrored traffic. If unspecified, all traffic is mirrored.
#[prost(message, optional, tag = "336120696")]
pub filter: ::core::option::Option<PacketMirroringFilter>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#packetMirroring for packet mirrorings.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// PacketMirroring mirroredResourceInfos. MirroredResourceInfo specifies a set of mirrored VM instances, subnetworks and/or tags for which traffic from/to all VM instances will be mirrored.
#[prost(message, optional, tag = "124817348")]
pub mirrored_resources: ::core::option::Option<PacketMirroringMirroredResourceInfo>,
/// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given network.
#[prost(message, optional, tag = "232872494")]
pub network: ::core::option::Option<PacketMirroringNetworkInfo>,
/// The priority of applying this configuration. Priority is used to break ties in cases where there is more than one matching rule. In the case of two rules that apply for a given Instance, the one with the lowest-numbered priority value wins. Default value is 1000. Valid range is 0 through 65535.
#[prost(uint32, optional, tag = "445151652")]
pub priority: ::core::option::Option<u32>,
/// \[Output Only\] URI of the region where the packetMirroring resides.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `PacketMirroring`.
pub mod packet_mirroring {
/// Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on the network. The default is TRUE.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Enable {
/// A value indicating that the enum field is not set.
UndefinedEnable = 0,
False = 66658563,
True = 2583950,
}
impl Enable {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Enable::UndefinedEnable => "UNDEFINED_ENABLE",
Enable::False => "FALSE",
Enable::True => "TRUE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ENABLE" => Some(Self::UndefinedEnable),
"FALSE" => Some(Self::False),
"TRUE" => Some(Self::True),
_ => None,
}
}
}
}
/// Contains a list of packetMirrorings.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PacketMirroringAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of PacketMirroring resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
PacketMirroringsScopedList,
>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PacketMirroringFilter {
/// Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored.
#[prost(string, repeated, tag = "98544854")]
pub i_p_protocols: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// One or more IPv4 or IPv6 CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use "0.0.0.0/0,::/0". Note: Support for IPv6 traffic is in preview.
#[prost(string, repeated, tag = "487901697")]
pub cidr_ranges: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH.
/// Check the Direction enum for the list of possible values.
#[prost(string, optional, tag = "111150975")]
pub direction: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `PacketMirroringFilter`.
pub mod packet_mirroring_filter {
/// Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Direction {
/// A value indicating that the enum field is not set.
UndefinedDirection = 0,
/// Default, both directions are mirrored.
Both = 2044801,
/// Only egress traffic is mirrored.
Egress = 432880501,
/// Only ingress traffic is mirrored.
Ingress = 516931221,
}
impl Direction {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Direction::UndefinedDirection => "UNDEFINED_DIRECTION",
Direction::Both => "BOTH",
Direction::Egress => "EGRESS",
Direction::Ingress => "INGRESS",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_DIRECTION" => Some(Self::UndefinedDirection),
"BOTH" => Some(Self::Both),
"EGRESS" => Some(Self::Egress),
"INGRESS" => Some(Self::Ingress),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PacketMirroringForwardingRuleInfo {
/// \[Output Only\] Unique identifier for the forwarding rule; defined by the server.
#[prost(string, optional, tag = "512294820")]
pub canonical_url: ::core::option::Option<::prost::alloc::string::String>,
/// Resource URL to the forwarding rule representing the ILB configured as destination of the mirrored traffic.
#[prost(string, optional, tag = "116079")]
pub url: ::core::option::Option<::prost::alloc::string::String>,
}
/// Contains a list of PacketMirroring resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PacketMirroringList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of PacketMirroring resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<PacketMirroring>,
/// \[Output Only\] Type of resource. Always compute#packetMirroring for packetMirrorings.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PacketMirroringMirroredResourceInfo {
/// A set of virtual machine instances that are being mirrored. They must live in zones contained in the same region as this packetMirroring. Note that this config will apply only to those network interfaces of the Instances that belong to the network specified in this packetMirroring. You may specify a maximum of 50 Instances.
#[prost(message, repeated, tag = "29097598")]
pub instances: ::prost::alloc::vec::Vec<
PacketMirroringMirroredResourceInfoInstanceInfo,
>,
/// A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must live in the same region as this packetMirroring. You may specify a maximum of 5 subnetworks.
#[prost(message, repeated, tag = "415853125")]
pub subnetworks: ::prost::alloc::vec::Vec<
PacketMirroringMirroredResourceInfoSubnetInfo,
>,
/// A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags will be mirrored.
#[prost(string, repeated, tag = "3552281")]
pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PacketMirroringMirroredResourceInfoInstanceInfo {
/// \[Output Only\] Unique identifier for the instance; defined by the server.
#[prost(string, optional, tag = "512294820")]
pub canonical_url: ::core::option::Option<::prost::alloc::string::String>,
/// Resource URL to the virtual machine instance which is being mirrored.
#[prost(string, optional, tag = "116079")]
pub url: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PacketMirroringMirroredResourceInfoSubnetInfo {
/// \[Output Only\] Unique identifier for the subnetwork; defined by the server.
#[prost(string, optional, tag = "512294820")]
pub canonical_url: ::core::option::Option<::prost::alloc::string::String>,
/// Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored.
#[prost(string, optional, tag = "116079")]
pub url: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PacketMirroringNetworkInfo {
/// \[Output Only\] Unique identifier for the network; defined by the server.
#[prost(string, optional, tag = "512294820")]
pub canonical_url: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the network resource.
#[prost(string, optional, tag = "116079")]
pub url: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PacketMirroringsScopedList {
/// A list of packetMirrorings contained in this scope.
#[prost(message, repeated, tag = "154615079")]
pub packet_mirrorings: ::prost::alloc::vec::Vec<PacketMirroring>,
/// Informational warning which replaces the list of packetMirrorings when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// A request message for Autoscalers.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchAutoscalerRequest {
/// Name of the autoscaler to patch.
#[prost(string, optional, tag = "517258967")]
pub autoscaler: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "207616118")]
pub autoscaler_resource: ::core::option::Option<Autoscaler>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for BackendBuckets.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchBackendBucketRequest {
/// Name of the BackendBucket resource to patch.
#[prost(string, tag = "91714037")]
pub backend_bucket: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "380757784")]
pub backend_bucket_resource: ::core::option::Option<BackendBucket>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for BackendServices.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchBackendServiceRequest {
/// Name of the BackendService resource to patch.
#[prost(string, tag = "306946058")]
pub backend_service: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "347586723")]
pub backend_service_resource: ::core::option::Option<BackendService>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for FirewallPolicies.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "495049532")]
pub firewall_policy_resource: ::core::option::Option<FirewallPolicy>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Firewalls.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchFirewallRequest {
/// Name of the firewall rule to patch.
#[prost(string, tag = "511016192")]
pub firewall: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "41425005")]
pub firewall_resource: ::core::option::Option<Firewall>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for ForwardingRules.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchForwardingRuleRequest {
/// Name of the ForwardingRule resource to patch.
#[prost(string, tag = "269964030")]
pub forwarding_rule: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "301211695")]
pub forwarding_rule_resource: ::core::option::Option<ForwardingRule>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for GlobalForwardingRules.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchGlobalForwardingRuleRequest {
/// Name of the ForwardingRule resource to patch.
#[prost(string, tag = "269964030")]
pub forwarding_rule: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "301211695")]
pub forwarding_rule_resource: ::core::option::Option<ForwardingRule>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for GlobalPublicDelegatedPrefixes.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchGlobalPublicDelegatedPrefixeRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the PublicDelegatedPrefix resource to patch.
#[prost(string, tag = "204238440")]
pub public_delegated_prefix: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "47594501")]
pub public_delegated_prefix_resource: ::core::option::Option<PublicDelegatedPrefix>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for HealthChecks.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchHealthCheckRequest {
/// Name of the HealthCheck resource to patch.
#[prost(string, tag = "308876645")]
pub health_check: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "201925032")]
pub health_check_resource: ::core::option::Option<HealthCheck>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Images.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchImageRequest {
/// Name of the image resource to patch.
#[prost(string, tag = "100313435")]
pub image: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "371171954")]
pub image_resource: ::core::option::Option<Image>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for InstanceGroupManagers.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchInstanceGroupManagerRequest {
/// The name of the instance group manager.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "261063946")]
pub instance_group_manager_resource: ::core::option::Option<InstanceGroupManager>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where you want to create the managed instance group.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InterconnectAttachments.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchInterconnectAttachmentRequest {
/// Name of the interconnect attachment to patch.
#[prost(string, tag = "308135284")]
pub interconnect_attachment: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "212341369")]
pub interconnect_attachment_resource: ::core::option::Option<InterconnectAttachment>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Interconnects.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchInterconnectRequest {
/// Name of the interconnect to update.
#[prost(string, tag = "224601230")]
pub interconnect: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "397611167")]
pub interconnect_resource: ::core::option::Option<Interconnect>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NetworkAttachments.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchNetworkAttachmentRequest {
/// Name of the NetworkAttachment resource to patch.
#[prost(string, tag = "224644052")]
pub network_attachment: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "210974745")]
pub network_attachment_resource: ::core::option::Option<NetworkAttachment>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NetworkEdgeSecurityServices.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchNetworkEdgeSecurityServiceRequest {
/// Name of the network edge security service to update.
#[prost(string, tag = "157011879")]
pub network_edge_security_service: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "477548966")]
pub network_edge_security_service_resource: ::core::option::Option<
NetworkEdgeSecurityService,
>,
#[prost(string, optional, tag = "106438894")]
pub paths: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates fields to be updated as part of this request.
#[prost(string, optional, tag = "500079778")]
pub update_mask: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NetworkFirewallPolicies.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchNetworkFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "495049532")]
pub firewall_policy_resource: ::core::option::Option<FirewallPolicy>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Networks.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchNetworkRequest {
/// Name of the network to update.
#[prost(string, tag = "232872494")]
pub network: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "122105599")]
pub network_resource: ::core::option::Option<Network>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NodeGroups.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchNodeGroupRequest {
/// Name of the NodeGroup resource to update.
#[prost(string, tag = "469958146")]
pub node_group: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "505321899")]
pub node_group_resource: ::core::option::Option<NodeGroup>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for PacketMirrorings.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchPacketMirroringRequest {
/// Name of the PacketMirroring resource to patch.
#[prost(string, tag = "22305996")]
pub packet_mirroring: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "493501985")]
pub packet_mirroring_resource: ::core::option::Option<PacketMirroring>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for InstanceGroupManagers.PatchPerInstanceConfigs. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchPerInstanceConfigsInstanceGroupManagerRequest {
/// The name of the managed instance group. It should conform to RFC1035.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "356650495")]
pub instance_group_managers_patch_per_instance_configs_req_resource: ::core::option::Option<
InstanceGroupManagersPatchPerInstanceConfigsReq,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where the managed instance group is located. It should conform to RFC1035.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionInstanceGroupManagers.PatchPerInstanceConfigs. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchPerInstanceConfigsRegionInstanceGroupManagerRequest {
/// The name of the managed instance group. It should conform to RFC1035.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request, should conform to RFC1035.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "197682890")]
pub region_instance_group_manager_patch_instance_config_req_resource: ::core::option::Option<
RegionInstanceGroupManagerPatchInstanceConfigReq,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for PublicAdvertisedPrefixes.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchPublicAdvertisedPrefixeRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the PublicAdvertisedPrefix resource to patch.
#[prost(string, tag = "101874590")]
pub public_advertised_prefix: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "233614223")]
pub public_advertised_prefix_resource: ::core::option::Option<
PublicAdvertisedPrefix,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for PublicDelegatedPrefixes.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchPublicDelegatedPrefixeRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the PublicDelegatedPrefix resource to patch.
#[prost(string, tag = "204238440")]
pub public_delegated_prefix: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "47594501")]
pub public_delegated_prefix_resource: ::core::option::Option<PublicDelegatedPrefix>,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionAutoscalers.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchRegionAutoscalerRequest {
/// Name of the autoscaler to patch.
#[prost(string, optional, tag = "517258967")]
pub autoscaler: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "207616118")]
pub autoscaler_resource: ::core::option::Option<Autoscaler>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionBackendServices.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchRegionBackendServiceRequest {
/// Name of the BackendService resource to patch.
#[prost(string, tag = "306946058")]
pub backend_service: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "347586723")]
pub backend_service_resource: ::core::option::Option<BackendService>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionHealthChecks.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchRegionHealthCheckRequest {
/// Name of the HealthCheck resource to patch.
#[prost(string, tag = "308876645")]
pub health_check: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "201925032")]
pub health_check_resource: ::core::option::Option<HealthCheck>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionHealthCheckServices.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchRegionHealthCheckServiceRequest {
/// Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with RFC1035.
#[prost(string, tag = "408374747")]
pub health_check_service: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "477367794")]
pub health_check_service_resource: ::core::option::Option<HealthCheckService>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionInstanceGroupManagers.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchRegionInstanceGroupManagerRequest {
/// The name of the instance group manager.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "261063946")]
pub instance_group_manager_resource: ::core::option::Option<InstanceGroupManager>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionNetworkFirewallPolicies.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchRegionNetworkFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "495049532")]
pub firewall_policy_resource: ::core::option::Option<FirewallPolicy>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionSecurityPolicies.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchRegionSecurityPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the security policy to update.
#[prost(string, tag = "171082513")]
pub security_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "216159612")]
pub security_policy_resource: ::core::option::Option<SecurityPolicy>,
/// Indicates fields to be cleared as part of this request.
#[prost(string, optional, tag = "500079778")]
pub update_mask: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionSslPolicies.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchRegionSslPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035.
#[prost(string, tag = "295190213")]
pub ssl_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "274891848")]
pub ssl_policy_resource: ::core::option::Option<SslPolicy>,
}
/// A request message for RegionTargetHttpsProxies.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchRegionTargetHttpsProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetHttpsProxy resource to patch.
#[prost(string, tag = "52336748")]
pub target_https_proxy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "433657473")]
pub target_https_proxy_resource: ::core::option::Option<TargetHttpsProxy>,
}
/// A request message for RegionUrlMaps.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchRegionUrlMapRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the UrlMap resource to patch.
#[prost(string, tag = "367020684")]
pub url_map: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "168675425")]
pub url_map_resource: ::core::option::Option<UrlMap>,
}
/// A request message for ResourcePolicies.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchResourcePolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Id of the resource policy to patch.
#[prost(string, tag = "159240835")]
pub resource_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "76826186")]
pub resource_policy_resource: ::core::option::Option<ResourcePolicy>,
/// update_mask indicates fields to be updated as part of this request.
#[prost(string, optional, tag = "500079778")]
pub update_mask: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Routers.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchRouterRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the Router resource to patch.
#[prost(string, tag = "148608841")]
pub router: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "155222084")]
pub router_resource: ::core::option::Option<Router>,
}
/// A request message for FirewallPolicies.PatchRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchRuleFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "250523523")]
pub firewall_policy_rule_resource: ::core::option::Option<FirewallPolicyRule>,
/// The priority of the rule to patch.
#[prost(int32, optional, tag = "445151652")]
pub priority: ::core::option::Option<i32>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NetworkFirewallPolicies.PatchRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchRuleNetworkFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "250523523")]
pub firewall_policy_rule_resource: ::core::option::Option<FirewallPolicyRule>,
/// The priority of the rule to patch.
#[prost(int32, optional, tag = "445151652")]
pub priority: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionNetworkFirewallPolicies.PatchRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchRuleRegionNetworkFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "250523523")]
pub firewall_policy_rule_resource: ::core::option::Option<FirewallPolicyRule>,
/// The priority of the rule to patch.
#[prost(int32, optional, tag = "445151652")]
pub priority: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionSecurityPolicies.PatchRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchRuleRegionSecurityPolicyRequest {
/// The priority of the rule to patch.
#[prost(int32, optional, tag = "445151652")]
pub priority: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the security policy to update.
#[prost(string, tag = "171082513")]
pub security_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "402693443")]
pub security_policy_rule_resource: ::core::option::Option<SecurityPolicyRule>,
/// Indicates fields to be cleared as part of this request.
#[prost(string, optional, tag = "500079778")]
pub update_mask: ::core::option::Option<::prost::alloc::string::String>,
/// If true, the request will not be committed.
#[prost(bool, optional, tag = "242744629")]
pub validate_only: ::core::option::Option<bool>,
}
/// A request message for SecurityPolicies.PatchRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchRuleSecurityPolicyRequest {
/// The priority of the rule to patch.
#[prost(int32, optional, tag = "445151652")]
pub priority: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the security policy to update.
#[prost(string, tag = "171082513")]
pub security_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "402693443")]
pub security_policy_rule_resource: ::core::option::Option<SecurityPolicyRule>,
/// Indicates fields to be cleared as part of this request.
#[prost(string, optional, tag = "500079778")]
pub update_mask: ::core::option::Option<::prost::alloc::string::String>,
/// If true, the request will not be committed.
#[prost(bool, optional, tag = "242744629")]
pub validate_only: ::core::option::Option<bool>,
}
/// A request message for SecurityPolicies.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchSecurityPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the security policy to update.
#[prost(string, tag = "171082513")]
pub security_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "216159612")]
pub security_policy_resource: ::core::option::Option<SecurityPolicy>,
/// Indicates fields to be cleared as part of this request.
#[prost(string, optional, tag = "500079778")]
pub update_mask: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for ServiceAttachments.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchServiceAttachmentRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The region scoping this request and should conform to RFC1035.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The resource id of the ServiceAttachment to patch. It should conform to RFC1035 resource name or be a string form on an unsigned long number.
#[prost(string, tag = "338957549")]
pub service_attachment: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "472980256")]
pub service_attachment_resource: ::core::option::Option<ServiceAttachment>,
}
/// A request message for SnapshotSettingsService.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchSnapshotSettingRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "357664495")]
pub snapshot_settings_resource: ::core::option::Option<SnapshotSettings>,
/// update_mask indicates fields to be updated as part of this request.
#[prost(string, optional, tag = "500079778")]
pub update_mask: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for SslPolicies.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchSslPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035.
#[prost(string, tag = "295190213")]
pub ssl_policy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "274891848")]
pub ssl_policy_resource: ::core::option::Option<SslPolicy>,
}
/// A request message for Subnetworks.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchSubnetworkRequest {
/// The drain timeout specifies the upper bound in seconds on the amount of time allowed to drain connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The drain timeout is only applicable when the following conditions are true: - the subnetwork being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has role = BACKUP - the patch request is setting the role to ACTIVE. Note that after this patch operation the roles of the ACTIVE and BACKUP subnetworks will be swapped.
#[prost(int32, optional, tag = "357707098")]
pub drain_timeout_seconds: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the Subnetwork resource to patch.
#[prost(string, tag = "307827694")]
pub subnetwork: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "42233151")]
pub subnetwork_resource: ::core::option::Option<Subnetwork>,
}
/// A request message for TargetGrpcProxies.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchTargetGrpcProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetGrpcProxy resource to patch.
#[prost(string, tag = "5020283")]
pub target_grpc_proxy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "328922450")]
pub target_grpc_proxy_resource: ::core::option::Option<TargetGrpcProxy>,
}
/// A request message for TargetHttpProxies.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchTargetHttpProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetHttpProxy resource to patch.
#[prost(string, tag = "206872421")]
pub target_http_proxy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "24696744")]
pub target_http_proxy_resource: ::core::option::Option<TargetHttpProxy>,
}
/// A request message for TargetHttpsProxies.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchTargetHttpsProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetHttpsProxy resource to patch.
#[prost(string, tag = "52336748")]
pub target_https_proxy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "433657473")]
pub target_https_proxy_resource: ::core::option::Option<TargetHttpsProxy>,
}
/// A request message for UrlMaps.Patch. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchUrlMapRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the UrlMap resource to patch.
#[prost(string, tag = "367020684")]
pub url_map: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "168675425")]
pub url_map_resource: ::core::option::Option<UrlMap>,
}
/// A matcher for the path portion of the URL. The BackendService from the longest-matched rule will serve the URL. If no rule was matched, the default service is used.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PathMatcher {
/// defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
#[prost(message, optional, tag = "378919466")]
pub default_route_action: ::core::option::Option<HttpRouteAction>,
/// The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - <https://www.googleapis.com/compute/v1/projects/project> /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if defaultRouteAction specifies any weightedBackendServices, defaultService must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
#[prost(string, optional, tag = "370242231")]
pub default_service: ::core::option::Option<::prost::alloc::string::String>,
/// When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
#[prost(message, optional, tag = "359503338")]
pub default_url_redirect: ::core::option::Option<HttpRedirectAction>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies changes to request and response headers that need to take effect for the selected backend service. HeaderAction specified here are applied after the matching HttpRouteRule HeaderAction and before the HeaderAction in the UrlMap HeaderAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
#[prost(message, optional, tag = "328077352")]
pub header_action: ::core::option::Option<HttpHeaderAction>,
/// The name to which this PathMatcher is referred by the HostRule.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The list of path rules. Use this list instead of routeRules when routing based on simple path matching is all that's required. The order by which path rules are specified does not matter. Matches are always done on the longest-path-first basis. For example: a pathRule with a path /a/b/c/* will match before /a/b/* irrespective of the order in which those paths appear in this list. Within a given pathMatcher, only one of pathRules or routeRules must be set.
#[prost(message, repeated, tag = "104439901")]
pub path_rules: ::prost::alloc::vec::Vec<PathRule>,
/// The list of HTTP route rules. Use this list instead of pathRules when advanced route matching and routing actions are desired. routeRules are evaluated in order of priority, from the lowest to highest number. Within a given pathMatcher, you can set only one of pathRules or routeRules.
#[prost(message, repeated, tag = "376292225")]
pub route_rules: ::prost::alloc::vec::Vec<HttpRouteRule>,
}
/// A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PathRule {
/// The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here.
#[prost(string, repeated, tag = "106438894")]
pub paths: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
#[prost(message, optional, tag = "424563948")]
pub route_action: ::core::option::Option<HttpRouteAction>,
/// The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
#[prost(string, optional, tag = "373540533")]
pub service: ::core::option::Option<::prost::alloc::string::String>,
/// When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
#[prost(message, optional, tag = "405147820")]
pub url_redirect: ::core::option::Option<HttpRedirectAction>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PerInstanceConfig {
/// Fingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.
#[prost(message, optional, tag = "2634026")]
pub preserved_state: ::core::option::Option<PreservedState>,
/// The status of applying this per-instance configuration on the corresponding managed instance.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `PerInstanceConfig`.
pub mod per_instance_config {
/// The status of applying this per-instance configuration on the corresponding managed instance.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// The per-instance configuration is being applied to the instance, but is not yet effective, possibly waiting for the instance to, for example, REFRESH.
Applying = 352003508,
/// The per-instance configuration deletion is being applied on the instance, possibly waiting for the instance to, for example, REFRESH.
Deleting = 528602024,
/// The per-instance configuration is effective on the instance, meaning that all disks, ips and metadata specified in this configuration are attached or set on the instance.
Effective = 244201863,
/// *\[Default\]* The default status, when no per-instance configuration exists.
None = 2402104,
/// The per-instance configuration is set on an instance but not been applied yet.
Unapplied = 483935140,
/// The per-instance configuration has been deleted, but the deletion is not yet applied.
UnappliedDeletion = 313956873,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Applying => "APPLYING",
Status::Deleting => "DELETING",
Status::Effective => "EFFECTIVE",
Status::None => "NONE",
Status::Unapplied => "UNAPPLIED",
Status::UnappliedDeletion => "UNAPPLIED_DELETION",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"APPLYING" => Some(Self::Applying),
"DELETING" => Some(Self::Deleting),
"EFFECTIVE" => Some(Self::Effective),
"NONE" => Some(Self::None),
"UNAPPLIED" => Some(Self::Unapplied),
"UNAPPLIED_DELETION" => Some(Self::UnappliedDeletion),
_ => None,
}
}
}
}
/// A request message for Instances.PerformMaintenance. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PerformMaintenanceInstanceRequest {
/// Name of the instance scoping this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](<https://cloud.google.com/iam/help/conditions/resource-policies>). **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')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } ``` **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') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](<https://cloud.google.com/iam/docs/>).
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Policy {
/// Specifies cloud audit logging configuration for this policy.
#[prost(message, repeated, tag = "328080653")]
pub audit_configs: ::prost::alloc::vec::Vec<AuditConfig>,
/// Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
#[prost(message, repeated, tag = "403251854")]
pub bindings: ::prost::alloc::vec::Vec<Binding>,
/// `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
#[prost(string, optional, tag = "3123477")]
pub etag: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, optional, tag = "450566203")]
pub iam_owned: ::core::option::Option<bool>,
/// This is deprecated and has no effect. Do not use.
#[prost(message, repeated, tag = "108873975")]
pub rules: ::prost::alloc::vec::Vec<Rule>,
/// Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](<https://cloud.google.com/iam/help/conditions/resource-policies>).
#[prost(int32, optional, tag = "351608024")]
pub version: ::core::option::Option<i32>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PreconfiguredWafSet {
/// List of entities that are currently supported for WAF rules.
#[prost(message, repeated, tag = "474011032")]
pub expression_sets: ::prost::alloc::vec::Vec<WafExpressionSet>,
}
/// Preserved state for a given instance.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PreservedState {
/// Preserved disks defined for this instance. This map is keyed with the device names of the disks.
#[prost(btree_map = "string, message", tag = "95594102")]
pub disks: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
PreservedStatePreservedDisk,
>,
/// Preserved external IPs defined for this instance. This map is keyed with the name of the network interface.
#[prost(btree_map = "string, message", tag = "532687245")]
pub external_i_ps: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
PreservedStatePreservedNetworkIp,
>,
/// Preserved internal IPs defined for this instance. This map is keyed with the name of the network interface.
#[prost(btree_map = "string, message", tag = "215731675")]
pub internal_i_ps: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
PreservedStatePreservedNetworkIp,
>,
/// Preserved metadata defined for this instance.
#[prost(btree_map = "string, string", tag = "86866735")]
pub metadata: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PreservedStatePreservedDisk {
/// These stateful disks will never be deleted during autohealing, update, instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted.
/// Check the AutoDelete enum for the list of possible values.
#[prost(string, optional, tag = "464761403")]
pub auto_delete: ::core::option::Option<::prost::alloc::string::String>,
/// The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
/// Check the Mode enum for the list of possible values.
#[prost(string, optional, tag = "3357091")]
pub mode: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the disk resource that is stateful and should be attached to the VM instance.
#[prost(string, optional, tag = "177235995")]
pub source: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `PreservedStatePreservedDisk`.
pub mod preserved_state_preserved_disk {
/// These stateful disks will never be deleted during autohealing, update, instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum AutoDelete {
/// A value indicating that the enum field is not set.
UndefinedAutoDelete = 0,
Never = 74175084,
OnPermanentInstanceDeletion = 95727719,
}
impl AutoDelete {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
AutoDelete::UndefinedAutoDelete => "UNDEFINED_AUTO_DELETE",
AutoDelete::Never => "NEVER",
AutoDelete::OnPermanentInstanceDeletion => {
"ON_PERMANENT_INSTANCE_DELETION"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_AUTO_DELETE" => Some(Self::UndefinedAutoDelete),
"NEVER" => Some(Self::Never),
"ON_PERMANENT_INSTANCE_DELETION" => {
Some(Self::OnPermanentInstanceDeletion)
}
_ => None,
}
}
}
/// The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Mode {
/// A value indicating that the enum field is not set.
UndefinedMode = 0,
/// Attaches this disk in read-only mode. Multiple VM instances can use a disk in READ_ONLY mode at a time.
ReadOnly = 91950261,
/// *\[Default\]* Attaches this disk in READ_WRITE mode. Only one VM instance at a time can be attached to a disk in READ_WRITE mode.
ReadWrite = 173607894,
}
impl Mode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Mode::UndefinedMode => "UNDEFINED_MODE",
Mode::ReadOnly => "READ_ONLY",
Mode::ReadWrite => "READ_WRITE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_MODE" => Some(Self::UndefinedMode),
"READ_ONLY" => Some(Self::ReadOnly),
"READ_WRITE" => Some(Self::ReadWrite),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PreservedStatePreservedNetworkIp {
/// These stateful IPs will never be released during autohealing, update or VM instance recreate operations. This flag is used to configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted.
/// Check the AutoDelete enum for the list of possible values.
#[prost(string, optional, tag = "464761403")]
pub auto_delete: ::core::option::Option<::prost::alloc::string::String>,
/// Ip address representation
#[prost(message, optional, tag = "406272220")]
pub ip_address: ::core::option::Option<PreservedStatePreservedNetworkIpIpAddress>,
}
/// Nested message and enum types in `PreservedStatePreservedNetworkIp`.
pub mod preserved_state_preserved_network_ip {
/// These stateful IPs will never be released during autohealing, update or VM instance recreate operations. This flag is used to configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum AutoDelete {
/// A value indicating that the enum field is not set.
UndefinedAutoDelete = 0,
Never = 74175084,
OnPermanentInstanceDeletion = 95727719,
}
impl AutoDelete {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
AutoDelete::UndefinedAutoDelete => "UNDEFINED_AUTO_DELETE",
AutoDelete::Never => "NEVER",
AutoDelete::OnPermanentInstanceDeletion => {
"ON_PERMANENT_INSTANCE_DELETION"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_AUTO_DELETE" => Some(Self::UndefinedAutoDelete),
"NEVER" => Some(Self::Never),
"ON_PERMANENT_INSTANCE_DELETION" => {
Some(Self::OnPermanentInstanceDeletion)
}
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PreservedStatePreservedNetworkIpIpAddress {
/// The URL of the reservation for this IP address.
#[prost(string, optional, tag = "462920692")]
pub address: ::core::option::Option<::prost::alloc::string::String>,
/// An IPv4 internal network address to assign to the instance for this network interface.
#[prost(string, optional, tag = "182460591")]
pub literal: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Routers.Preview. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PreviewRouterRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the Router resource to query.
#[prost(string, tag = "148608841")]
pub router: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "155222084")]
pub router_resource: ::core::option::Option<Router>,
}
/// Represents a Project resource. A project is used to organize resources in a Google Cloud Platform environment. For more information, read about the Resource Hierarchy.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Project {
/// \[Output Only\] The Cloud Armor tier for this project. It can be one of the following values: CA_STANDARD, CA_ENTERPRISE_PAYGO. If this field is not specified, it is assumed to be CA_STANDARD.
/// Check the CloudArmorTier enum for the list of possible values.
#[prost(string, optional, tag = "4427052")]
pub cloud_armor_tier: ::core::option::Option<::prost::alloc::string::String>,
/// Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information.
#[prost(message, optional, tag = "185794117")]
pub common_instance_metadata: ::core::option::Option<Metadata>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM.
/// Check the DefaultNetworkTier enum for the list of possible values.
#[prost(string, optional, tag = "471753361")]
pub default_network_tier: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Default service account used by VMs running in this project.
#[prost(string, optional, tag = "298712229")]
pub default_service_account: ::core::option::Option<::prost::alloc::string::String>,
/// An optional textual description of the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Restricted features enabled for use on this project.
#[prost(string, repeated, tag = "469017467")]
pub enabled_features: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server. This is *not* the project ID, and is just a unique ID used by Compute Engine to identify resources.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#project for projects.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Quotas assigned to this project.
#[prost(message, repeated, tag = "125341947")]
pub quotas: ::prost::alloc::vec::Vec<Quota>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
#[prost(message, optional, tag = "347543874")]
pub usage_export_location: ::core::option::Option<UsageExportLocation>,
/// \[Output Only\] Default internal DNS setting used by VMs running in this project.
/// Check the VmDnsSetting enum for the list of possible values.
#[prost(string, optional, tag = "58856370")]
pub vm_dns_setting: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated.
/// Check the XpnProjectStatus enum for the list of possible values.
#[prost(string, optional, tag = "228419265")]
pub xpn_project_status: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Project`.
pub mod project {
/// \[Output Only\] The Cloud Armor tier for this project. It can be one of the following values: CA_STANDARD, CA_ENTERPRISE_PAYGO. If this field is not specified, it is assumed to be CA_STANDARD.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum CloudArmorTier {
/// A value indicating that the enum field is not set.
UndefinedCloudArmorTier = 0,
/// Enterprise tier protection billed annually.
CaEnterpriseAnnual = 219921116,
/// Enterprise tier protection billed monthly.
CaEnterprisePaygo = 453530323,
/// Standard protection.
CaStandard = 13156734,
}
impl CloudArmorTier {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
CloudArmorTier::UndefinedCloudArmorTier => "UNDEFINED_CLOUD_ARMOR_TIER",
CloudArmorTier::CaEnterpriseAnnual => "CA_ENTERPRISE_ANNUAL",
CloudArmorTier::CaEnterprisePaygo => "CA_ENTERPRISE_PAYGO",
CloudArmorTier::CaStandard => "CA_STANDARD",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_CLOUD_ARMOR_TIER" => Some(Self::UndefinedCloudArmorTier),
"CA_ENTERPRISE_ANNUAL" => Some(Self::CaEnterpriseAnnual),
"CA_ENTERPRISE_PAYGO" => Some(Self::CaEnterprisePaygo),
"CA_STANDARD" => Some(Self::CaStandard),
_ => None,
}
}
}
/// This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum DefaultNetworkTier {
/// A value indicating that the enum field is not set.
UndefinedDefaultNetworkTier = 0,
/// Public internet quality with fixed bandwidth.
FixedStandard = 310464328,
/// High quality, Google-grade network tier, support for all networking products.
Premium = 399530551,
/// Public internet quality, only limited support for other networking products.
Standard = 484642493,
/// (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier is expired or not configured.
StandardOverridesFixedStandard = 465847234,
}
impl DefaultNetworkTier {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
DefaultNetworkTier::UndefinedDefaultNetworkTier => {
"UNDEFINED_DEFAULT_NETWORK_TIER"
}
DefaultNetworkTier::FixedStandard => "FIXED_STANDARD",
DefaultNetworkTier::Premium => "PREMIUM",
DefaultNetworkTier::Standard => "STANDARD",
DefaultNetworkTier::StandardOverridesFixedStandard => {
"STANDARD_OVERRIDES_FIXED_STANDARD"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_DEFAULT_NETWORK_TIER" => {
Some(Self::UndefinedDefaultNetworkTier)
}
"FIXED_STANDARD" => Some(Self::FixedStandard),
"PREMIUM" => Some(Self::Premium),
"STANDARD" => Some(Self::Standard),
"STANDARD_OVERRIDES_FIXED_STANDARD" => {
Some(Self::StandardOverridesFixedStandard)
}
_ => None,
}
}
}
/// \[Output Only\] Default internal DNS setting used by VMs running in this project.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum VmDnsSetting {
/// A value indicating that the enum field is not set.
UndefinedVmDnsSetting = 0,
GlobalDefault = 345419141,
UnspecifiedVmDnsSetting = 35691930,
ZonalDefault = 368475782,
ZonalOnly = 521198951,
}
impl VmDnsSetting {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
VmDnsSetting::UndefinedVmDnsSetting => "UNDEFINED_VM_DNS_SETTING",
VmDnsSetting::GlobalDefault => "GLOBAL_DEFAULT",
VmDnsSetting::UnspecifiedVmDnsSetting => "UNSPECIFIED_VM_DNS_SETTING",
VmDnsSetting::ZonalDefault => "ZONAL_DEFAULT",
VmDnsSetting::ZonalOnly => "ZONAL_ONLY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_VM_DNS_SETTING" => Some(Self::UndefinedVmDnsSetting),
"GLOBAL_DEFAULT" => Some(Self::GlobalDefault),
"UNSPECIFIED_VM_DNS_SETTING" => Some(Self::UnspecifiedVmDnsSetting),
"ZONAL_DEFAULT" => Some(Self::ZonalDefault),
"ZONAL_ONLY" => Some(Self::ZonalOnly),
_ => None,
}
}
}
/// \[Output Only\] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum XpnProjectStatus {
/// A value indicating that the enum field is not set.
UndefinedXpnProjectStatus = 0,
Host = 2223528,
UnspecifiedXpnProjectStatus = 340393257,
}
impl XpnProjectStatus {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
XpnProjectStatus::UndefinedXpnProjectStatus => {
"UNDEFINED_XPN_PROJECT_STATUS"
}
XpnProjectStatus::Host => "HOST",
XpnProjectStatus::UnspecifiedXpnProjectStatus => {
"UNSPECIFIED_XPN_PROJECT_STATUS"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_XPN_PROJECT_STATUS" => Some(Self::UndefinedXpnProjectStatus),
"HOST" => Some(Self::Host),
"UNSPECIFIED_XPN_PROJECT_STATUS" => {
Some(Self::UnspecifiedXpnProjectStatus)
}
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProjectsDisableXpnResourceRequest {
/// Service resource (a.k.a service project) ID.
#[prost(message, optional, tag = "133384631")]
pub xpn_resource: ::core::option::Option<XpnResourceId>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProjectsEnableXpnResourceRequest {
/// Service resource (a.k.a service project) ID.
#[prost(message, optional, tag = "133384631")]
pub xpn_resource: ::core::option::Option<XpnResourceId>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProjectsGetXpnResources {
/// \[Output Only\] Type of resource. Always compute#projectsGetXpnResources for lists of service resources (a.k.a service projects)
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// Service resources (a.k.a service projects) attached to this project as their shared VPC host.
#[prost(message, repeated, tag = "164412965")]
pub resources: ::prost::alloc::vec::Vec<XpnResourceId>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProjectsListXpnHostsRequest {
/// Optional organization ID managed by Cloud Resource Manager, for which to list shared VPC host projects. If not specified, the organization will be inferred from the project.
#[prost(string, optional, tag = "105180467")]
pub organization: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProjectsSetCloudArmorTierRequest {
/// Managed protection tier to be set.
/// Check the CloudArmorTier enum for the list of possible values.
#[prost(string, optional, tag = "4427052")]
pub cloud_armor_tier: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `ProjectsSetCloudArmorTierRequest`.
pub mod projects_set_cloud_armor_tier_request {
/// Managed protection tier to be set.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum CloudArmorTier {
/// A value indicating that the enum field is not set.
UndefinedCloudArmorTier = 0,
/// Enterprise tier protection billed annually.
CaEnterpriseAnnual = 219921116,
/// Enterprise tier protection billed monthly.
CaEnterprisePaygo = 453530323,
/// Standard protection.
CaStandard = 13156734,
}
impl CloudArmorTier {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
CloudArmorTier::UndefinedCloudArmorTier => "UNDEFINED_CLOUD_ARMOR_TIER",
CloudArmorTier::CaEnterpriseAnnual => "CA_ENTERPRISE_ANNUAL",
CloudArmorTier::CaEnterprisePaygo => "CA_ENTERPRISE_PAYGO",
CloudArmorTier::CaStandard => "CA_STANDARD",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_CLOUD_ARMOR_TIER" => Some(Self::UndefinedCloudArmorTier),
"CA_ENTERPRISE_ANNUAL" => Some(Self::CaEnterpriseAnnual),
"CA_ENTERPRISE_PAYGO" => Some(Self::CaEnterprisePaygo),
"CA_STANDARD" => Some(Self::CaStandard),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProjectsSetDefaultNetworkTierRequest {
/// Default network tier to be set.
/// Check the NetworkTier enum for the list of possible values.
#[prost(string, optional, tag = "517397843")]
pub network_tier: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `ProjectsSetDefaultNetworkTierRequest`.
pub mod projects_set_default_network_tier_request {
/// Default network tier to be set.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum NetworkTier {
/// A value indicating that the enum field is not set.
UndefinedNetworkTier = 0,
/// Public internet quality with fixed bandwidth.
FixedStandard = 310464328,
/// High quality, Google-grade network tier, support for all networking products.
Premium = 399530551,
/// Public internet quality, only limited support for other networking products.
Standard = 484642493,
/// (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier is expired or not configured.
StandardOverridesFixedStandard = 465847234,
}
impl NetworkTier {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
NetworkTier::UndefinedNetworkTier => "UNDEFINED_NETWORK_TIER",
NetworkTier::FixedStandard => "FIXED_STANDARD",
NetworkTier::Premium => "PREMIUM",
NetworkTier::Standard => "STANDARD",
NetworkTier::StandardOverridesFixedStandard => {
"STANDARD_OVERRIDES_FIXED_STANDARD"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_NETWORK_TIER" => Some(Self::UndefinedNetworkTier),
"FIXED_STANDARD" => Some(Self::FixedStandard),
"PREMIUM" => Some(Self::Premium),
"STANDARD" => Some(Self::Standard),
"STANDARD_OVERRIDES_FIXED_STANDARD" => {
Some(Self::StandardOverridesFixedStandard)
}
_ => None,
}
}
}
}
/// A public advertised prefix represents an aggregated IP prefix or netblock which customers bring to cloud. The IP prefix is a single unit of route advertisement and is announced globally to the internet.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PublicAdvertisedPrefix {
/// \[Output Only\] The version of BYOIP API.
/// Check the ByoipApiVersion enum for the list of possible values.
#[prost(string, optional, tag = "162683283")]
pub byoip_api_version: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// The address to be used for reverse DNS verification.
#[prost(string, optional, tag = "241011381")]
pub dns_verification_ip: ::core::option::Option<::prost::alloc::string::String>,
/// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. An up-to-date fingerprint must be provided in order to update the PublicAdvertisedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource type. The server generates this identifier.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// The address range, in CIDR format, represented by this public advertised prefix.
#[prost(string, optional, tag = "98117322")]
pub ip_cidr_range: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised prefixes.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies how child public delegated prefix will be scoped. It could be one of following values: - `REGIONAL`: The public delegated prefix is regional only. The provisioning will take a few minutes. - `GLOBAL`: The public delegated prefix is global only. The provisioning will take ~4 weeks. - `GLOBAL_AND_REGIONAL` \[output only\]: The public delegated prefixes is BYOIP V1 legacy prefix. This is output only value and no longer supported in BYOIP V2.
/// Check the PdpScope enum for the list of possible values.
#[prost(string, optional, tag = "524264785")]
pub pdp_scope: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The list of public delegated prefixes that exist for this public advertised prefix.
#[prost(message, repeated, tag = "425811723")]
pub public_delegated_prefixs: ::prost::alloc::vec::Vec<
PublicAdvertisedPrefixPublicDelegatedPrefix,
>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The shared secret to be used for reverse DNS verification.
#[prost(string, optional, tag = "381932490")]
pub shared_secret: ::core::option::Option<::prost::alloc::string::String>,
/// The status of the public advertised prefix. Possible values include: - `INITIAL`: RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `PublicAdvertisedPrefix`.
pub mod public_advertised_prefix {
/// \[Output Only\] The version of BYOIP API.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ByoipApiVersion {
/// A value indicating that the enum field is not set.
UndefinedByoipApiVersion = 0,
/// This public advertised prefix can be used to create both regional and global public delegated prefixes. It usually takes 4 weeks to create or delete a public delegated prefix. The BGP status cannot be changed.
V1 = 2715,
/// This public advertised prefix can only be used to create regional public delegated prefixes. Public delegated prefix creation and deletion takes minutes and the BGP status can be modified.
V2 = 2716,
}
impl ByoipApiVersion {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ByoipApiVersion::UndefinedByoipApiVersion => {
"UNDEFINED_BYOIP_API_VERSION"
}
ByoipApiVersion::V1 => "V1",
ByoipApiVersion::V2 => "V2",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_BYOIP_API_VERSION" => Some(Self::UndefinedByoipApiVersion),
"V1" => Some(Self::V1),
"V2" => Some(Self::V2),
_ => None,
}
}
}
/// Specifies how child public delegated prefix will be scoped. It could be one of following values: - `REGIONAL`: The public delegated prefix is regional only. The provisioning will take a few minutes. - `GLOBAL`: The public delegated prefix is global only. The provisioning will take ~4 weeks. - `GLOBAL_AND_REGIONAL` \[output only\]: The public delegated prefixes is BYOIP V1 legacy prefix. This is output only value and no longer supported in BYOIP V2.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum PdpScope {
/// A value indicating that the enum field is not set.
UndefinedPdpScope = 0,
/// The public delegated prefix is global only. The provisioning will take ~4 weeks.
Global = 494663587,
/// The public delegated prefixes is BYOIP V1 legacy prefix. This is output only value and no longer supported in BYOIP V2.
GlobalAndRegional = 318053059,
/// The public delegated prefix is regional only. The provisioning will take a few minutes.
Regional = 92288543,
}
impl PdpScope {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
PdpScope::UndefinedPdpScope => "UNDEFINED_PDP_SCOPE",
PdpScope::Global => "GLOBAL",
PdpScope::GlobalAndRegional => "GLOBAL_AND_REGIONAL",
PdpScope::Regional => "REGIONAL",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PDP_SCOPE" => Some(Self::UndefinedPdpScope),
"GLOBAL" => Some(Self::Global),
"GLOBAL_AND_REGIONAL" => Some(Self::GlobalAndRegional),
"REGIONAL" => Some(Self::Regional),
_ => None,
}
}
}
/// The status of the public advertised prefix. Possible values include: - `INITIAL`: RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// The prefix is announced to Internet.
AnnouncedToInternet = 177880897,
/// RPKI validation is complete.
Initial = 518841124,
/// The prefix is fully configured.
PrefixConfigurationComplete = 480889551,
/// The prefix is being configured.
PrefixConfigurationInProgress = 378550961,
/// The prefix is being removed.
PrefixRemovalInProgress = 284375783,
/// User has configured the PTR.
PtrConfigured = 513497167,
/// The prefix is currently withdrawn but ready to be announced.
ReadyToAnnounce = 64641265,
/// Reverse DNS lookup failed.
ReverseDnsLookupFailed = 295755183,
/// Reverse DNS lookup is successful.
Validated = 66197998,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::AnnouncedToInternet => "ANNOUNCED_TO_INTERNET",
Status::Initial => "INITIAL",
Status::PrefixConfigurationComplete => "PREFIX_CONFIGURATION_COMPLETE",
Status::PrefixConfigurationInProgress => {
"PREFIX_CONFIGURATION_IN_PROGRESS"
}
Status::PrefixRemovalInProgress => "PREFIX_REMOVAL_IN_PROGRESS",
Status::PtrConfigured => "PTR_CONFIGURED",
Status::ReadyToAnnounce => "READY_TO_ANNOUNCE",
Status::ReverseDnsLookupFailed => "REVERSE_DNS_LOOKUP_FAILED",
Status::Validated => "VALIDATED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"ANNOUNCED_TO_INTERNET" => Some(Self::AnnouncedToInternet),
"INITIAL" => Some(Self::Initial),
"PREFIX_CONFIGURATION_COMPLETE" => {
Some(Self::PrefixConfigurationComplete)
}
"PREFIX_CONFIGURATION_IN_PROGRESS" => {
Some(Self::PrefixConfigurationInProgress)
}
"PREFIX_REMOVAL_IN_PROGRESS" => Some(Self::PrefixRemovalInProgress),
"PTR_CONFIGURED" => Some(Self::PtrConfigured),
"READY_TO_ANNOUNCE" => Some(Self::ReadyToAnnounce),
"REVERSE_DNS_LOOKUP_FAILED" => Some(Self::ReverseDnsLookupFailed),
"VALIDATED" => Some(Self::Validated),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PublicAdvertisedPrefixList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of PublicAdvertisedPrefix resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<PublicAdvertisedPrefix>,
/// \[Output Only\] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised prefixes.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represents a CIDR range which can be used to assign addresses.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PublicAdvertisedPrefixPublicDelegatedPrefix {
/// The IP address range of the public delegated prefix
#[prost(string, optional, tag = "145092645")]
pub ip_range: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the public delegated prefix
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The project number of the public delegated prefix
#[prost(string, optional, tag = "227560217")]
pub project: ::core::option::Option<::prost::alloc::string::String>,
/// The region of the public delegated prefix if it is regional. If absent, the prefix is global.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// The status of the public delegated prefix. Possible values are: INITIALIZING: The public delegated prefix is being initialized and addresses cannot be created yet. ANNOUNCED: The public delegated prefix is active.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
}
/// A PublicDelegatedPrefix resource represents an IP block within a PublicAdvertisedPrefix that is configured within a single cloud scope (global or region). IPs in the block can be allocated to resources within that scope. Public delegated prefixes may be further broken up into smaller IP blocks in the same scope as the parent block.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PublicDelegatedPrefix {
/// \[Output Only\] The version of BYOIP API.
/// Check the ByoipApiVersion enum for the list of possible values.
#[prost(string, optional, tag = "162683283")]
pub byoip_api_version: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. An up-to-date fingerprint must be provided in order to update the PublicDelegatedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource type. The server generates this identifier.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// The IP address range, in CIDR format, represented by this public delegated prefix.
#[prost(string, optional, tag = "98117322")]
pub ip_cidr_range: ::core::option::Option<::prost::alloc::string::String>,
/// If true, the prefix will be live migrated.
#[prost(bool, optional, tag = "511823856")]
pub is_live_migration: ::core::option::Option<bool>,
/// \[Output Only\] Type of the resource. Always compute#publicDelegatedPrefix for public delegated prefixes.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.
#[prost(string, optional, tag = "15233991")]
pub parent_prefix: ::core::option::Option<::prost::alloc::string::String>,
/// The list of sub public delegated prefixes that exist for this public delegated prefix.
#[prost(message, repeated, tag = "188940044")]
pub public_delegated_sub_prefixs: ::prost::alloc::vec::Vec<
PublicDelegatedPrefixPublicDelegatedSubPrefix,
>,
/// \[Output Only\] URL of the region where the public delegated prefix resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The status of the public delegated prefix, which can be one of following values: - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration prefix and is active. - `ANNOUNCED` The public delegated prefix is active. - `DELETING` The public delegated prefix is being deprovsioned.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `PublicDelegatedPrefix`.
pub mod public_delegated_prefix {
/// \[Output Only\] The version of BYOIP API.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ByoipApiVersion {
/// A value indicating that the enum field is not set.
UndefinedByoipApiVersion = 0,
/// This public delegated prefix usually takes 4 weeks to delete, and the BGP status cannot be changed. Announce and Withdraw APIs can not be used on this prefix.
V1 = 2715,
/// This public delegated prefix takes minutes to delete. Announce and Withdraw APIs can be used on this prefix to change the BGP status.
V2 = 2716,
}
impl ByoipApiVersion {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ByoipApiVersion::UndefinedByoipApiVersion => {
"UNDEFINED_BYOIP_API_VERSION"
}
ByoipApiVersion::V1 => "V1",
ByoipApiVersion::V2 => "V2",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_BYOIP_API_VERSION" => Some(Self::UndefinedByoipApiVersion),
"V1" => Some(Self::V1),
"V2" => Some(Self::V2),
_ => None,
}
}
}
/// \[Output Only\] The status of the public delegated prefix, which can be one of following values: - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration prefix and is active. - `ANNOUNCED` The public delegated prefix is active. - `DELETING` The public delegated prefix is being deprovsioned.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// The public delegated prefix is active.
Announced = 365103355,
/// The prefix is announced within Google network.
AnnouncedToGoogle = 454875705,
/// The prefix is announced to Internet and within Google.
AnnouncedToInternet = 177880897,
/// The public delegated prefix is being deprovsioned.
Deleting = 528602024,
/// The public delegated prefix is being initialized and addresses cannot be created yet.
Initializing = 306588749,
/// The public delegated prefix is currently withdrawn but ready to be announced.
ReadyToAnnounce = 64641265,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Announced => "ANNOUNCED",
Status::AnnouncedToGoogle => "ANNOUNCED_TO_GOOGLE",
Status::AnnouncedToInternet => "ANNOUNCED_TO_INTERNET",
Status::Deleting => "DELETING",
Status::Initializing => "INITIALIZING",
Status::ReadyToAnnounce => "READY_TO_ANNOUNCE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"ANNOUNCED" => Some(Self::Announced),
"ANNOUNCED_TO_GOOGLE" => Some(Self::AnnouncedToGoogle),
"ANNOUNCED_TO_INTERNET" => Some(Self::AnnouncedToInternet),
"DELETING" => Some(Self::Deleting),
"INITIALIZING" => Some(Self::Initializing),
"READY_TO_ANNOUNCE" => Some(Self::ReadyToAnnounce),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PublicDelegatedPrefixAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of PublicDelegatedPrefixesScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
PublicDelegatedPrefixesScopedList,
>,
/// \[Output Only\] Type of the resource. Always compute#publicDelegatedPrefixAggregatedList for aggregated lists of public delegated prefixes.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PublicDelegatedPrefixList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of PublicDelegatedPrefix resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<PublicDelegatedPrefix>,
/// \[Output Only\] Type of the resource. Always compute#publicDelegatedPrefixList for public delegated prefixes.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represents a sub PublicDelegatedPrefix.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PublicDelegatedPrefixPublicDelegatedSubPrefix {
/// Name of the project scoping this PublicDelegatedSubPrefix.
#[prost(string, optional, tag = "414860634")]
pub delegatee_project: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// The IP address range, in CIDR format, represented by this sub public delegated prefix.
#[prost(string, optional, tag = "98117322")]
pub ip_cidr_range: ::core::option::Option<::prost::alloc::string::String>,
/// Whether the sub prefix is delegated to create Address resources in the delegatee project.
#[prost(bool, optional, tag = "352617951")]
pub is_address: ::core::option::Option<bool>,
/// The name of the sub public delegated prefix.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The region of the sub public delegated prefix if it is regional. If absent, the sub prefix is global.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The status of the sub public delegated prefix.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `PublicDelegatedPrefixPublicDelegatedSubPrefix`.
pub mod public_delegated_prefix_public_delegated_sub_prefix {
/// \[Output Only\] The status of the sub public delegated prefix.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
Active = 314733318,
Inactive = 270421099,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Active => "ACTIVE",
Status::Inactive => "INACTIVE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"ACTIVE" => Some(Self::Active),
"INACTIVE" => Some(Self::Inactive),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PublicDelegatedPrefixesScopedList {
/// \[Output Only\] A list of PublicDelegatedPrefixes contained in this scope.
#[prost(message, repeated, tag = "315261206")]
pub public_delegated_prefixes: ::prost::alloc::vec::Vec<PublicDelegatedPrefix>,
/// \[Output Only\] Informational warning which replaces the list of public delegated prefixes when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// A quotas entry.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Quota {
/// \[Output Only\] Quota limit for this metric.
#[prost(double, optional, tag = "102976443")]
pub limit: ::core::option::Option<f64>,
/// \[Output Only\] Name of the quota metric.
/// Check the Metric enum for the list of possible values.
#[prost(string, optional, tag = "533067184")]
pub metric: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Owning resource. This is the resource on which this quota is applied.
#[prost(string, optional, tag = "106164915")]
pub owner: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Current usage of this metric.
#[prost(double, optional, tag = "111574433")]
pub usage: ::core::option::Option<f64>,
}
/// Nested message and enum types in `Quota`.
pub mod quota {
/// \[Output Only\] Name of the quota metric.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Metric {
/// A value indicating that the enum field is not set.
UndefinedMetric = 0,
A2Cpus = 153206585,
AffinityGroups = 108303563,
Autoscalers = 471248988,
BackendBuckets = 137626846,
BackendServices = 269623753,
C2dCpus = 508182517,
C2Cpus = 317601211,
C3Cpus = 346230362,
Commitments = 456141790,
CommittedA2Cpus = 59330902,
CommittedC2dCpus = 282390904,
CommittedC2Cpus = 223725528,
CommittedC3Cpus = 252354679,
CommittedCpus = 292394702,
CommittedE2Cpus = 388120154,
CommittedLicenses = 357606869,
CommittedLocalSsdTotalGb = 308393480,
CommittedM3Cpus = 585985,
CommittedMemoryOptimizedCpus = 489057886,
CommittedN2aCpus = 40064304,
CommittedN2dCpus = 125951757,
CommittedN2Cpus = 322589603,
CommittedNvidiaA10080gbGpus = 464326565,
CommittedNvidiaA100Gpus = 375799445,
CommittedNvidiaH100Gpus = 71649180,
CommittedNvidiaK80Gpus = 3857188,
CommittedNvidiaL4Gpus = 19163645,
CommittedNvidiaP100Gpus = 107528100,
CommittedNvidiaP4Gpus = 347952897,
CommittedNvidiaT4Gpus = 139871237,
CommittedNvidiaV100Gpus = 219562,
CommittedT2aCpus = 296378986,
CommittedT2dCpus = 382266439,
CommittedZ3Cpus = 263844686,
/// Guest CPUs
Cpus = 2075595,
CpusAllRegions = 470911149,
DisksTotalGb = 353520543,
E2Cpus = 481995837,
ExternalManagedForwardingRules = 150790089,
ExternalNetworkLbForwardingRules = 374298265,
ExternalProtocolForwardingRules = 63478888,
ExternalVpnGateways = 272457134,
Firewalls = 374485843,
ForwardingRules = 432668949,
GlobalExternalManagedBackendServices = 164566753,
GlobalExternalManagedForwardingRules = 327611949,
GlobalExternalProxyLbBackendServices = 400256169,
GlobalInternalAddresses = 42738332,
GlobalInternalManagedBackendServices = 256608303,
GlobalInternalTrafficDirectorBackendServices = 323514196,
GpusAllRegions = 39387177,
HealthChecks = 289347502,
Images = 15562360,
Instances = 131337822,
InstanceGroups = 355919038,
InstanceGroupManagers = 101798192,
InstanceTemplates = 226188271,
Interconnects = 415204741,
InterconnectAttachmentsPerRegion = 159968086,
InterconnectAttachmentsTotalMbps = 425090419,
InterconnectTotalGbps = 285341866,
InternalAddresses = 197899392,
InternalTrafficDirectorForwardingRules = 266433668,
InPlaceSnapshots = 151359133,
InUseAddresses = 402125072,
InUseBackupSchedules = 32786705,
InUseSnapshotSchedules = 462104083,
LocalSsdTotalGb = 330878021,
M1Cpus = 37203366,
M2Cpus = 65832517,
M3Cpus = 94461668,
MachineImages = 446986640,
N2aCpus = 265855917,
N2dCpus = 351743370,
N2Cpus = 416465286,
Networks = 485481477,
NetworkAttachments = 149028575,
NetworkEndpointGroups = 102144909,
NetworkFirewallPolicies = 101117374,
NetLbSecurityPoliciesPerRegion = 157892269,
NetLbSecurityPolicyRulesPerRegion = 356090931,
NetLbSecurityPolicyRuleAttributesPerRegion = 311243888,
NodeGroups = 24624817,
NodeTemplates = 474896668,
NvidiaA10080gbGpus = 286389320,
NvidiaA100Gpus = 504872978,
NvidiaK80Gpus = 163886599,
NvidiaL4Gpus = 491923130,
NvidiaP100Gpus = 236601633,
NvidiaP100VwsGpus = 213970574,
NvidiaP4Gpus = 283841470,
NvidiaP4VwsGpus = 528296619,
NvidiaT4Gpus = 75759810,
NvidiaT4VwsGpus = 319813039,
NvidiaV100Gpus = 129293095,
PacketMirrorings = 15578407,
PdExtremeTotalProvisionedIops = 69593965,
PreemptibleCpus = 251184841,
PreemptibleLocalSsdGb = 260819336,
PreemptibleNvidiaA10080gbGpus = 151942410,
PreemptibleNvidiaA100Gpus = 68832784,
PreemptibleNvidiaH100Gpus = 301553431,
PreemptibleNvidiaK80Gpus = 374960201,
PreemptibleNvidiaL4Gpus = 100408376,
PreemptibleNvidiaP100Gpus = 337432351,
PreemptibleNvidiaP100VwsGpus = 313544076,
PreemptibleNvidiaP4Gpus = 429197628,
PreemptibleNvidiaP4VwsGpus = 252981545,
PreemptibleNvidiaT4Gpus = 221115968,
PreemptibleNvidiaT4VwsGpus = 44497965,
PreemptibleNvidiaV100Gpus = 230123813,
PreemptibleTpuLiteDeviceV5 = 174262523,
PreemptibleTpuLitePodsliceV5 = 112281796,
PreemptibleTpuPodsliceV4 = 425541132,
PscIlbConsumerForwardingRulesPerProducerNetwork = 231164291,
PscInternalLbForwardingRules = 169005435,
PublicAdvertisedPrefixes = 471371980,
PublicDelegatedPrefixes = 532465974,
RegionalAutoscalers = 29363772,
RegionalExternalManagedBackendServices = 4240989,
RegionalExternalNetworkLbBackendServices = 409564525,
RegionalInstanceGroupManagers = 37543696,
RegionalInternalLbBackendServices = 137983760,
RegionalInternalManagedBackendServices = 96282539,
Reservations = 32644647,
ResourcePolicies = 83955297,
Routers = 493018666,
Routes = 275680074,
SecurityPolicies = 189518703,
SecurityPoliciesPerRegion = 249041734,
SecurityPolicyAdvancedRulesPerRegion = 371815341,
SecurityPolicyCevalRules = 470815689,
SecurityPolicyRules = 203549225,
SecurityPolicyRulesPerRegion = 126510156,
ServiceAttachments = 471521510,
/// The total number of snapshots allowed for a single project.
Snapshots = 343405327,
SsdTotalGb = 161732561,
SslCertificates = 378372399,
StaticAddresses = 93624049,
StaticByoipAddresses = 275809649,
StaticExternalIpv6AddressRanges = 472346774,
Subnetworks = 421330469,
T2aCpus = 522170599,
T2dCpus = 71187140,
TargetHttpsProxies = 219522506,
TargetHttpProxies = 164117155,
TargetInstances = 284519728,
TargetPools = 348261257,
TargetSslProxies = 159216235,
TargetTcpProxies = 182243136,
TargetVpnGateways = 75029928,
TpuLiteDeviceV5 = 449577597,
TpuLitePodsliceV5 = 12708294,
TpuPodsliceV4 = 214467530,
UrlMaps = 378660743,
VpnGateways = 35620282,
VpnTunnels = 104327296,
XpnServiceProjects = 95191981,
}
impl Metric {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Metric::UndefinedMetric => "UNDEFINED_METRIC",
Metric::A2Cpus => "A2_CPUS",
Metric::AffinityGroups => "AFFINITY_GROUPS",
Metric::Autoscalers => "AUTOSCALERS",
Metric::BackendBuckets => "BACKEND_BUCKETS",
Metric::BackendServices => "BACKEND_SERVICES",
Metric::C2dCpus => "C2D_CPUS",
Metric::C2Cpus => "C2_CPUS",
Metric::C3Cpus => "C3_CPUS",
Metric::Commitments => "COMMITMENTS",
Metric::CommittedA2Cpus => "COMMITTED_A2_CPUS",
Metric::CommittedC2dCpus => "COMMITTED_C2D_CPUS",
Metric::CommittedC2Cpus => "COMMITTED_C2_CPUS",
Metric::CommittedC3Cpus => "COMMITTED_C3_CPUS",
Metric::CommittedCpus => "COMMITTED_CPUS",
Metric::CommittedE2Cpus => "COMMITTED_E2_CPUS",
Metric::CommittedLicenses => "COMMITTED_LICENSES",
Metric::CommittedLocalSsdTotalGb => "COMMITTED_LOCAL_SSD_TOTAL_GB",
Metric::CommittedM3Cpus => "COMMITTED_M3_CPUS",
Metric::CommittedMemoryOptimizedCpus => "COMMITTED_MEMORY_OPTIMIZED_CPUS",
Metric::CommittedN2aCpus => "COMMITTED_N2A_CPUS",
Metric::CommittedN2dCpus => "COMMITTED_N2D_CPUS",
Metric::CommittedN2Cpus => "COMMITTED_N2_CPUS",
Metric::CommittedNvidiaA10080gbGpus => "COMMITTED_NVIDIA_A100_80GB_GPUS",
Metric::CommittedNvidiaA100Gpus => "COMMITTED_NVIDIA_A100_GPUS",
Metric::CommittedNvidiaH100Gpus => "COMMITTED_NVIDIA_H100_GPUS",
Metric::CommittedNvidiaK80Gpus => "COMMITTED_NVIDIA_K80_GPUS",
Metric::CommittedNvidiaL4Gpus => "COMMITTED_NVIDIA_L4_GPUS",
Metric::CommittedNvidiaP100Gpus => "COMMITTED_NVIDIA_P100_GPUS",
Metric::CommittedNvidiaP4Gpus => "COMMITTED_NVIDIA_P4_GPUS",
Metric::CommittedNvidiaT4Gpus => "COMMITTED_NVIDIA_T4_GPUS",
Metric::CommittedNvidiaV100Gpus => "COMMITTED_NVIDIA_V100_GPUS",
Metric::CommittedT2aCpus => "COMMITTED_T2A_CPUS",
Metric::CommittedT2dCpus => "COMMITTED_T2D_CPUS",
Metric::CommittedZ3Cpus => "COMMITTED_Z3_CPUS",
Metric::Cpus => "CPUS",
Metric::CpusAllRegions => "CPUS_ALL_REGIONS",
Metric::DisksTotalGb => "DISKS_TOTAL_GB",
Metric::E2Cpus => "E2_CPUS",
Metric::ExternalManagedForwardingRules => {
"EXTERNAL_MANAGED_FORWARDING_RULES"
}
Metric::ExternalNetworkLbForwardingRules => {
"EXTERNAL_NETWORK_LB_FORWARDING_RULES"
}
Metric::ExternalProtocolForwardingRules => {
"EXTERNAL_PROTOCOL_FORWARDING_RULES"
}
Metric::ExternalVpnGateways => "EXTERNAL_VPN_GATEWAYS",
Metric::Firewalls => "FIREWALLS",
Metric::ForwardingRules => "FORWARDING_RULES",
Metric::GlobalExternalManagedBackendServices => {
"GLOBAL_EXTERNAL_MANAGED_BACKEND_SERVICES"
}
Metric::GlobalExternalManagedForwardingRules => {
"GLOBAL_EXTERNAL_MANAGED_FORWARDING_RULES"
}
Metric::GlobalExternalProxyLbBackendServices => {
"GLOBAL_EXTERNAL_PROXY_LB_BACKEND_SERVICES"
}
Metric::GlobalInternalAddresses => "GLOBAL_INTERNAL_ADDRESSES",
Metric::GlobalInternalManagedBackendServices => {
"GLOBAL_INTERNAL_MANAGED_BACKEND_SERVICES"
}
Metric::GlobalInternalTrafficDirectorBackendServices => {
"GLOBAL_INTERNAL_TRAFFIC_DIRECTOR_BACKEND_SERVICES"
}
Metric::GpusAllRegions => "GPUS_ALL_REGIONS",
Metric::HealthChecks => "HEALTH_CHECKS",
Metric::Images => "IMAGES",
Metric::Instances => "INSTANCES",
Metric::InstanceGroups => "INSTANCE_GROUPS",
Metric::InstanceGroupManagers => "INSTANCE_GROUP_MANAGERS",
Metric::InstanceTemplates => "INSTANCE_TEMPLATES",
Metric::Interconnects => "INTERCONNECTS",
Metric::InterconnectAttachmentsPerRegion => {
"INTERCONNECT_ATTACHMENTS_PER_REGION"
}
Metric::InterconnectAttachmentsTotalMbps => {
"INTERCONNECT_ATTACHMENTS_TOTAL_MBPS"
}
Metric::InterconnectTotalGbps => "INTERCONNECT_TOTAL_GBPS",
Metric::InternalAddresses => "INTERNAL_ADDRESSES",
Metric::InternalTrafficDirectorForwardingRules => {
"INTERNAL_TRAFFIC_DIRECTOR_FORWARDING_RULES"
}
Metric::InPlaceSnapshots => "IN_PLACE_SNAPSHOTS",
Metric::InUseAddresses => "IN_USE_ADDRESSES",
Metric::InUseBackupSchedules => "IN_USE_BACKUP_SCHEDULES",
Metric::InUseSnapshotSchedules => "IN_USE_SNAPSHOT_SCHEDULES",
Metric::LocalSsdTotalGb => "LOCAL_SSD_TOTAL_GB",
Metric::M1Cpus => "M1_CPUS",
Metric::M2Cpus => "M2_CPUS",
Metric::M3Cpus => "M3_CPUS",
Metric::MachineImages => "MACHINE_IMAGES",
Metric::N2aCpus => "N2A_CPUS",
Metric::N2dCpus => "N2D_CPUS",
Metric::N2Cpus => "N2_CPUS",
Metric::Networks => "NETWORKS",
Metric::NetworkAttachments => "NETWORK_ATTACHMENTS",
Metric::NetworkEndpointGroups => "NETWORK_ENDPOINT_GROUPS",
Metric::NetworkFirewallPolicies => "NETWORK_FIREWALL_POLICIES",
Metric::NetLbSecurityPoliciesPerRegion => {
"NET_LB_SECURITY_POLICIES_PER_REGION"
}
Metric::NetLbSecurityPolicyRulesPerRegion => {
"NET_LB_SECURITY_POLICY_RULES_PER_REGION"
}
Metric::NetLbSecurityPolicyRuleAttributesPerRegion => {
"NET_LB_SECURITY_POLICY_RULE_ATTRIBUTES_PER_REGION"
}
Metric::NodeGroups => "NODE_GROUPS",
Metric::NodeTemplates => "NODE_TEMPLATES",
Metric::NvidiaA10080gbGpus => "NVIDIA_A100_80GB_GPUS",
Metric::NvidiaA100Gpus => "NVIDIA_A100_GPUS",
Metric::NvidiaK80Gpus => "NVIDIA_K80_GPUS",
Metric::NvidiaL4Gpus => "NVIDIA_L4_GPUS",
Metric::NvidiaP100Gpus => "NVIDIA_P100_GPUS",
Metric::NvidiaP100VwsGpus => "NVIDIA_P100_VWS_GPUS",
Metric::NvidiaP4Gpus => "NVIDIA_P4_GPUS",
Metric::NvidiaP4VwsGpus => "NVIDIA_P4_VWS_GPUS",
Metric::NvidiaT4Gpus => "NVIDIA_T4_GPUS",
Metric::NvidiaT4VwsGpus => "NVIDIA_T4_VWS_GPUS",
Metric::NvidiaV100Gpus => "NVIDIA_V100_GPUS",
Metric::PacketMirrorings => "PACKET_MIRRORINGS",
Metric::PdExtremeTotalProvisionedIops => {
"PD_EXTREME_TOTAL_PROVISIONED_IOPS"
}
Metric::PreemptibleCpus => "PREEMPTIBLE_CPUS",
Metric::PreemptibleLocalSsdGb => "PREEMPTIBLE_LOCAL_SSD_GB",
Metric::PreemptibleNvidiaA10080gbGpus => {
"PREEMPTIBLE_NVIDIA_A100_80GB_GPUS"
}
Metric::PreemptibleNvidiaA100Gpus => "PREEMPTIBLE_NVIDIA_A100_GPUS",
Metric::PreemptibleNvidiaH100Gpus => "PREEMPTIBLE_NVIDIA_H100_GPUS",
Metric::PreemptibleNvidiaK80Gpus => "PREEMPTIBLE_NVIDIA_K80_GPUS",
Metric::PreemptibleNvidiaL4Gpus => "PREEMPTIBLE_NVIDIA_L4_GPUS",
Metric::PreemptibleNvidiaP100Gpus => "PREEMPTIBLE_NVIDIA_P100_GPUS",
Metric::PreemptibleNvidiaP100VwsGpus => {
"PREEMPTIBLE_NVIDIA_P100_VWS_GPUS"
}
Metric::PreemptibleNvidiaP4Gpus => "PREEMPTIBLE_NVIDIA_P4_GPUS",
Metric::PreemptibleNvidiaP4VwsGpus => "PREEMPTIBLE_NVIDIA_P4_VWS_GPUS",
Metric::PreemptibleNvidiaT4Gpus => "PREEMPTIBLE_NVIDIA_T4_GPUS",
Metric::PreemptibleNvidiaT4VwsGpus => "PREEMPTIBLE_NVIDIA_T4_VWS_GPUS",
Metric::PreemptibleNvidiaV100Gpus => "PREEMPTIBLE_NVIDIA_V100_GPUS",
Metric::PreemptibleTpuLiteDeviceV5 => "PREEMPTIBLE_TPU_LITE_DEVICE_V5",
Metric::PreemptibleTpuLitePodsliceV5 => {
"PREEMPTIBLE_TPU_LITE_PODSLICE_V5"
}
Metric::PreemptibleTpuPodsliceV4 => "PREEMPTIBLE_TPU_PODSLICE_V4",
Metric::PscIlbConsumerForwardingRulesPerProducerNetwork => {
"PSC_ILB_CONSUMER_FORWARDING_RULES_PER_PRODUCER_NETWORK"
}
Metric::PscInternalLbForwardingRules => {
"PSC_INTERNAL_LB_FORWARDING_RULES"
}
Metric::PublicAdvertisedPrefixes => "PUBLIC_ADVERTISED_PREFIXES",
Metric::PublicDelegatedPrefixes => "PUBLIC_DELEGATED_PREFIXES",
Metric::RegionalAutoscalers => "REGIONAL_AUTOSCALERS",
Metric::RegionalExternalManagedBackendServices => {
"REGIONAL_EXTERNAL_MANAGED_BACKEND_SERVICES"
}
Metric::RegionalExternalNetworkLbBackendServices => {
"REGIONAL_EXTERNAL_NETWORK_LB_BACKEND_SERVICES"
}
Metric::RegionalInstanceGroupManagers => {
"REGIONAL_INSTANCE_GROUP_MANAGERS"
}
Metric::RegionalInternalLbBackendServices => {
"REGIONAL_INTERNAL_LB_BACKEND_SERVICES"
}
Metric::RegionalInternalManagedBackendServices => {
"REGIONAL_INTERNAL_MANAGED_BACKEND_SERVICES"
}
Metric::Reservations => "RESERVATIONS",
Metric::ResourcePolicies => "RESOURCE_POLICIES",
Metric::Routers => "ROUTERS",
Metric::Routes => "ROUTES",
Metric::SecurityPolicies => "SECURITY_POLICIES",
Metric::SecurityPoliciesPerRegion => "SECURITY_POLICIES_PER_REGION",
Metric::SecurityPolicyAdvancedRulesPerRegion => {
"SECURITY_POLICY_ADVANCED_RULES_PER_REGION"
}
Metric::SecurityPolicyCevalRules => "SECURITY_POLICY_CEVAL_RULES",
Metric::SecurityPolicyRules => "SECURITY_POLICY_RULES",
Metric::SecurityPolicyRulesPerRegion => {
"SECURITY_POLICY_RULES_PER_REGION"
}
Metric::ServiceAttachments => "SERVICE_ATTACHMENTS",
Metric::Snapshots => "SNAPSHOTS",
Metric::SsdTotalGb => "SSD_TOTAL_GB",
Metric::SslCertificates => "SSL_CERTIFICATES",
Metric::StaticAddresses => "STATIC_ADDRESSES",
Metric::StaticByoipAddresses => "STATIC_BYOIP_ADDRESSES",
Metric::StaticExternalIpv6AddressRanges => {
"STATIC_EXTERNAL_IPV6_ADDRESS_RANGES"
}
Metric::Subnetworks => "SUBNETWORKS",
Metric::T2aCpus => "T2A_CPUS",
Metric::T2dCpus => "T2D_CPUS",
Metric::TargetHttpsProxies => "TARGET_HTTPS_PROXIES",
Metric::TargetHttpProxies => "TARGET_HTTP_PROXIES",
Metric::TargetInstances => "TARGET_INSTANCES",
Metric::TargetPools => "TARGET_POOLS",
Metric::TargetSslProxies => "TARGET_SSL_PROXIES",
Metric::TargetTcpProxies => "TARGET_TCP_PROXIES",
Metric::TargetVpnGateways => "TARGET_VPN_GATEWAYS",
Metric::TpuLiteDeviceV5 => "TPU_LITE_DEVICE_V5",
Metric::TpuLitePodsliceV5 => "TPU_LITE_PODSLICE_V5",
Metric::TpuPodsliceV4 => "TPU_PODSLICE_V4",
Metric::UrlMaps => "URL_MAPS",
Metric::VpnGateways => "VPN_GATEWAYS",
Metric::VpnTunnels => "VPN_TUNNELS",
Metric::XpnServiceProjects => "XPN_SERVICE_PROJECTS",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_METRIC" => Some(Self::UndefinedMetric),
"A2_CPUS" => Some(Self::A2Cpus),
"AFFINITY_GROUPS" => Some(Self::AffinityGroups),
"AUTOSCALERS" => Some(Self::Autoscalers),
"BACKEND_BUCKETS" => Some(Self::BackendBuckets),
"BACKEND_SERVICES" => Some(Self::BackendServices),
"C2D_CPUS" => Some(Self::C2dCpus),
"C2_CPUS" => Some(Self::C2Cpus),
"C3_CPUS" => Some(Self::C3Cpus),
"COMMITMENTS" => Some(Self::Commitments),
"COMMITTED_A2_CPUS" => Some(Self::CommittedA2Cpus),
"COMMITTED_C2D_CPUS" => Some(Self::CommittedC2dCpus),
"COMMITTED_C2_CPUS" => Some(Self::CommittedC2Cpus),
"COMMITTED_C3_CPUS" => Some(Self::CommittedC3Cpus),
"COMMITTED_CPUS" => Some(Self::CommittedCpus),
"COMMITTED_E2_CPUS" => Some(Self::CommittedE2Cpus),
"COMMITTED_LICENSES" => Some(Self::CommittedLicenses),
"COMMITTED_LOCAL_SSD_TOTAL_GB" => Some(Self::CommittedLocalSsdTotalGb),
"COMMITTED_M3_CPUS" => Some(Self::CommittedM3Cpus),
"COMMITTED_MEMORY_OPTIMIZED_CPUS" => {
Some(Self::CommittedMemoryOptimizedCpus)
}
"COMMITTED_N2A_CPUS" => Some(Self::CommittedN2aCpus),
"COMMITTED_N2D_CPUS" => Some(Self::CommittedN2dCpus),
"COMMITTED_N2_CPUS" => Some(Self::CommittedN2Cpus),
"COMMITTED_NVIDIA_A100_80GB_GPUS" => {
Some(Self::CommittedNvidiaA10080gbGpus)
}
"COMMITTED_NVIDIA_A100_GPUS" => Some(Self::CommittedNvidiaA100Gpus),
"COMMITTED_NVIDIA_H100_GPUS" => Some(Self::CommittedNvidiaH100Gpus),
"COMMITTED_NVIDIA_K80_GPUS" => Some(Self::CommittedNvidiaK80Gpus),
"COMMITTED_NVIDIA_L4_GPUS" => Some(Self::CommittedNvidiaL4Gpus),
"COMMITTED_NVIDIA_P100_GPUS" => Some(Self::CommittedNvidiaP100Gpus),
"COMMITTED_NVIDIA_P4_GPUS" => Some(Self::CommittedNvidiaP4Gpus),
"COMMITTED_NVIDIA_T4_GPUS" => Some(Self::CommittedNvidiaT4Gpus),
"COMMITTED_NVIDIA_V100_GPUS" => Some(Self::CommittedNvidiaV100Gpus),
"COMMITTED_T2A_CPUS" => Some(Self::CommittedT2aCpus),
"COMMITTED_T2D_CPUS" => Some(Self::CommittedT2dCpus),
"COMMITTED_Z3_CPUS" => Some(Self::CommittedZ3Cpus),
"CPUS" => Some(Self::Cpus),
"CPUS_ALL_REGIONS" => Some(Self::CpusAllRegions),
"DISKS_TOTAL_GB" => Some(Self::DisksTotalGb),
"E2_CPUS" => Some(Self::E2Cpus),
"EXTERNAL_MANAGED_FORWARDING_RULES" => {
Some(Self::ExternalManagedForwardingRules)
}
"EXTERNAL_NETWORK_LB_FORWARDING_RULES" => {
Some(Self::ExternalNetworkLbForwardingRules)
}
"EXTERNAL_PROTOCOL_FORWARDING_RULES" => {
Some(Self::ExternalProtocolForwardingRules)
}
"EXTERNAL_VPN_GATEWAYS" => Some(Self::ExternalVpnGateways),
"FIREWALLS" => Some(Self::Firewalls),
"FORWARDING_RULES" => Some(Self::ForwardingRules),
"GLOBAL_EXTERNAL_MANAGED_BACKEND_SERVICES" => {
Some(Self::GlobalExternalManagedBackendServices)
}
"GLOBAL_EXTERNAL_MANAGED_FORWARDING_RULES" => {
Some(Self::GlobalExternalManagedForwardingRules)
}
"GLOBAL_EXTERNAL_PROXY_LB_BACKEND_SERVICES" => {
Some(Self::GlobalExternalProxyLbBackendServices)
}
"GLOBAL_INTERNAL_ADDRESSES" => Some(Self::GlobalInternalAddresses),
"GLOBAL_INTERNAL_MANAGED_BACKEND_SERVICES" => {
Some(Self::GlobalInternalManagedBackendServices)
}
"GLOBAL_INTERNAL_TRAFFIC_DIRECTOR_BACKEND_SERVICES" => {
Some(Self::GlobalInternalTrafficDirectorBackendServices)
}
"GPUS_ALL_REGIONS" => Some(Self::GpusAllRegions),
"HEALTH_CHECKS" => Some(Self::HealthChecks),
"IMAGES" => Some(Self::Images),
"INSTANCES" => Some(Self::Instances),
"INSTANCE_GROUPS" => Some(Self::InstanceGroups),
"INSTANCE_GROUP_MANAGERS" => Some(Self::InstanceGroupManagers),
"INSTANCE_TEMPLATES" => Some(Self::InstanceTemplates),
"INTERCONNECTS" => Some(Self::Interconnects),
"INTERCONNECT_ATTACHMENTS_PER_REGION" => {
Some(Self::InterconnectAttachmentsPerRegion)
}
"INTERCONNECT_ATTACHMENTS_TOTAL_MBPS" => {
Some(Self::InterconnectAttachmentsTotalMbps)
}
"INTERCONNECT_TOTAL_GBPS" => Some(Self::InterconnectTotalGbps),
"INTERNAL_ADDRESSES" => Some(Self::InternalAddresses),
"INTERNAL_TRAFFIC_DIRECTOR_FORWARDING_RULES" => {
Some(Self::InternalTrafficDirectorForwardingRules)
}
"IN_PLACE_SNAPSHOTS" => Some(Self::InPlaceSnapshots),
"IN_USE_ADDRESSES" => Some(Self::InUseAddresses),
"IN_USE_BACKUP_SCHEDULES" => Some(Self::InUseBackupSchedules),
"IN_USE_SNAPSHOT_SCHEDULES" => Some(Self::InUseSnapshotSchedules),
"LOCAL_SSD_TOTAL_GB" => Some(Self::LocalSsdTotalGb),
"M1_CPUS" => Some(Self::M1Cpus),
"M2_CPUS" => Some(Self::M2Cpus),
"M3_CPUS" => Some(Self::M3Cpus),
"MACHINE_IMAGES" => Some(Self::MachineImages),
"N2A_CPUS" => Some(Self::N2aCpus),
"N2D_CPUS" => Some(Self::N2dCpus),
"N2_CPUS" => Some(Self::N2Cpus),
"NETWORKS" => Some(Self::Networks),
"NETWORK_ATTACHMENTS" => Some(Self::NetworkAttachments),
"NETWORK_ENDPOINT_GROUPS" => Some(Self::NetworkEndpointGroups),
"NETWORK_FIREWALL_POLICIES" => Some(Self::NetworkFirewallPolicies),
"NET_LB_SECURITY_POLICIES_PER_REGION" => {
Some(Self::NetLbSecurityPoliciesPerRegion)
}
"NET_LB_SECURITY_POLICY_RULES_PER_REGION" => {
Some(Self::NetLbSecurityPolicyRulesPerRegion)
}
"NET_LB_SECURITY_POLICY_RULE_ATTRIBUTES_PER_REGION" => {
Some(Self::NetLbSecurityPolicyRuleAttributesPerRegion)
}
"NODE_GROUPS" => Some(Self::NodeGroups),
"NODE_TEMPLATES" => Some(Self::NodeTemplates),
"NVIDIA_A100_80GB_GPUS" => Some(Self::NvidiaA10080gbGpus),
"NVIDIA_A100_GPUS" => Some(Self::NvidiaA100Gpus),
"NVIDIA_K80_GPUS" => Some(Self::NvidiaK80Gpus),
"NVIDIA_L4_GPUS" => Some(Self::NvidiaL4Gpus),
"NVIDIA_P100_GPUS" => Some(Self::NvidiaP100Gpus),
"NVIDIA_P100_VWS_GPUS" => Some(Self::NvidiaP100VwsGpus),
"NVIDIA_P4_GPUS" => Some(Self::NvidiaP4Gpus),
"NVIDIA_P4_VWS_GPUS" => Some(Self::NvidiaP4VwsGpus),
"NVIDIA_T4_GPUS" => Some(Self::NvidiaT4Gpus),
"NVIDIA_T4_VWS_GPUS" => Some(Self::NvidiaT4VwsGpus),
"NVIDIA_V100_GPUS" => Some(Self::NvidiaV100Gpus),
"PACKET_MIRRORINGS" => Some(Self::PacketMirrorings),
"PD_EXTREME_TOTAL_PROVISIONED_IOPS" => {
Some(Self::PdExtremeTotalProvisionedIops)
}
"PREEMPTIBLE_CPUS" => Some(Self::PreemptibleCpus),
"PREEMPTIBLE_LOCAL_SSD_GB" => Some(Self::PreemptibleLocalSsdGb),
"PREEMPTIBLE_NVIDIA_A100_80GB_GPUS" => {
Some(Self::PreemptibleNvidiaA10080gbGpus)
}
"PREEMPTIBLE_NVIDIA_A100_GPUS" => Some(Self::PreemptibleNvidiaA100Gpus),
"PREEMPTIBLE_NVIDIA_H100_GPUS" => Some(Self::PreemptibleNvidiaH100Gpus),
"PREEMPTIBLE_NVIDIA_K80_GPUS" => Some(Self::PreemptibleNvidiaK80Gpus),
"PREEMPTIBLE_NVIDIA_L4_GPUS" => Some(Self::PreemptibleNvidiaL4Gpus),
"PREEMPTIBLE_NVIDIA_P100_GPUS" => Some(Self::PreemptibleNvidiaP100Gpus),
"PREEMPTIBLE_NVIDIA_P100_VWS_GPUS" => {
Some(Self::PreemptibleNvidiaP100VwsGpus)
}
"PREEMPTIBLE_NVIDIA_P4_GPUS" => Some(Self::PreemptibleNvidiaP4Gpus),
"PREEMPTIBLE_NVIDIA_P4_VWS_GPUS" => {
Some(Self::PreemptibleNvidiaP4VwsGpus)
}
"PREEMPTIBLE_NVIDIA_T4_GPUS" => Some(Self::PreemptibleNvidiaT4Gpus),
"PREEMPTIBLE_NVIDIA_T4_VWS_GPUS" => {
Some(Self::PreemptibleNvidiaT4VwsGpus)
}
"PREEMPTIBLE_NVIDIA_V100_GPUS" => Some(Self::PreemptibleNvidiaV100Gpus),
"PREEMPTIBLE_TPU_LITE_DEVICE_V5" => {
Some(Self::PreemptibleTpuLiteDeviceV5)
}
"PREEMPTIBLE_TPU_LITE_PODSLICE_V5" => {
Some(Self::PreemptibleTpuLitePodsliceV5)
}
"PREEMPTIBLE_TPU_PODSLICE_V4" => Some(Self::PreemptibleTpuPodsliceV4),
"PSC_ILB_CONSUMER_FORWARDING_RULES_PER_PRODUCER_NETWORK" => {
Some(Self::PscIlbConsumerForwardingRulesPerProducerNetwork)
}
"PSC_INTERNAL_LB_FORWARDING_RULES" => {
Some(Self::PscInternalLbForwardingRules)
}
"PUBLIC_ADVERTISED_PREFIXES" => Some(Self::PublicAdvertisedPrefixes),
"PUBLIC_DELEGATED_PREFIXES" => Some(Self::PublicDelegatedPrefixes),
"REGIONAL_AUTOSCALERS" => Some(Self::RegionalAutoscalers),
"REGIONAL_EXTERNAL_MANAGED_BACKEND_SERVICES" => {
Some(Self::RegionalExternalManagedBackendServices)
}
"REGIONAL_EXTERNAL_NETWORK_LB_BACKEND_SERVICES" => {
Some(Self::RegionalExternalNetworkLbBackendServices)
}
"REGIONAL_INSTANCE_GROUP_MANAGERS" => {
Some(Self::RegionalInstanceGroupManagers)
}
"REGIONAL_INTERNAL_LB_BACKEND_SERVICES" => {
Some(Self::RegionalInternalLbBackendServices)
}
"REGIONAL_INTERNAL_MANAGED_BACKEND_SERVICES" => {
Some(Self::RegionalInternalManagedBackendServices)
}
"RESERVATIONS" => Some(Self::Reservations),
"RESOURCE_POLICIES" => Some(Self::ResourcePolicies),
"ROUTERS" => Some(Self::Routers),
"ROUTES" => Some(Self::Routes),
"SECURITY_POLICIES" => Some(Self::SecurityPolicies),
"SECURITY_POLICIES_PER_REGION" => Some(Self::SecurityPoliciesPerRegion),
"SECURITY_POLICY_ADVANCED_RULES_PER_REGION" => {
Some(Self::SecurityPolicyAdvancedRulesPerRegion)
}
"SECURITY_POLICY_CEVAL_RULES" => Some(Self::SecurityPolicyCevalRules),
"SECURITY_POLICY_RULES" => Some(Self::SecurityPolicyRules),
"SECURITY_POLICY_RULES_PER_REGION" => {
Some(Self::SecurityPolicyRulesPerRegion)
}
"SERVICE_ATTACHMENTS" => Some(Self::ServiceAttachments),
"SNAPSHOTS" => Some(Self::Snapshots),
"SSD_TOTAL_GB" => Some(Self::SsdTotalGb),
"SSL_CERTIFICATES" => Some(Self::SslCertificates),
"STATIC_ADDRESSES" => Some(Self::StaticAddresses),
"STATIC_BYOIP_ADDRESSES" => Some(Self::StaticByoipAddresses),
"STATIC_EXTERNAL_IPV6_ADDRESS_RANGES" => {
Some(Self::StaticExternalIpv6AddressRanges)
}
"SUBNETWORKS" => Some(Self::Subnetworks),
"T2A_CPUS" => Some(Self::T2aCpus),
"T2D_CPUS" => Some(Self::T2dCpus),
"TARGET_HTTPS_PROXIES" => Some(Self::TargetHttpsProxies),
"TARGET_HTTP_PROXIES" => Some(Self::TargetHttpProxies),
"TARGET_INSTANCES" => Some(Self::TargetInstances),
"TARGET_POOLS" => Some(Self::TargetPools),
"TARGET_SSL_PROXIES" => Some(Self::TargetSslProxies),
"TARGET_TCP_PROXIES" => Some(Self::TargetTcpProxies),
"TARGET_VPN_GATEWAYS" => Some(Self::TargetVpnGateways),
"TPU_LITE_DEVICE_V5" => Some(Self::TpuLiteDeviceV5),
"TPU_LITE_PODSLICE_V5" => Some(Self::TpuLitePodsliceV5),
"TPU_PODSLICE_V4" => Some(Self::TpuPodsliceV4),
"URL_MAPS" => Some(Self::UrlMaps),
"VPN_GATEWAYS" => Some(Self::VpnGateways),
"VPN_TUNNELS" => Some(Self::VpnTunnels),
"XPN_SERVICE_PROJECTS" => Some(Self::XpnServiceProjects),
_ => None,
}
}
}
}
/// Additional details for quota exceeded error for resource quota.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QuotaExceededInfo {
/// The map holding related quota dimensions.
#[prost(btree_map = "string, string", tag = "414334925")]
pub dimensions: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Future quota limit being rolled out. The limit's unit depends on the quota type or metric.
#[prost(double, optional, tag = "456564287")]
pub future_limit: ::core::option::Option<f64>,
/// Current effective quota limit. The limit's unit depends on the quota type or metric.
#[prost(double, optional, tag = "102976443")]
pub limit: ::core::option::Option<f64>,
/// The name of the quota limit.
#[prost(string, optional, tag = "398197903")]
pub limit_name: ::core::option::Option<::prost::alloc::string::String>,
/// The Compute Engine quota metric name.
#[prost(string, optional, tag = "409881530")]
pub metric_name: ::core::option::Option<::prost::alloc::string::String>,
/// Rollout status of the future quota limit.
/// Check the RolloutStatus enum for the list of possible values.
#[prost(string, optional, tag = "476426816")]
pub rollout_status: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `QuotaExceededInfo`.
pub mod quota_exceeded_info {
/// Rollout status of the future quota limit.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum RolloutStatus {
/// A value indicating that the enum field is not set.
UndefinedRolloutStatus = 0,
/// IN_PROGRESS - A rollout is in process which will change the limit value to future limit.
InProgress = 469193735,
/// ROLLOUT_STATUS_UNSPECIFIED - Rollout status is not specified. The default value.
Unspecified = 26864568,
}
impl RolloutStatus {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
RolloutStatus::UndefinedRolloutStatus => "UNDEFINED_ROLLOUT_STATUS",
RolloutStatus::InProgress => "IN_PROGRESS",
RolloutStatus::Unspecified => "ROLLOUT_STATUS_UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ROLLOUT_STATUS" => Some(Self::UndefinedRolloutStatus),
"IN_PROGRESS" => Some(Self::InProgress),
"ROLLOUT_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
/// The parameters of the raw disk image.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RawDisk {
/// The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
/// Check the ContainerType enum for the list of possible values.
#[prost(string, optional, tag = "318809144")]
pub container_type: ::core::option::Option<::prost::alloc::string::String>,
/// \[Deprecated\] This field is deprecated. An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created.
#[prost(string, optional, tag = "314444349")]
pub sha1_checksum: ::core::option::Option<::prost::alloc::string::String>,
/// The full Google Cloud Storage URL where the raw disk image archive is stored. The following are valid formats for the URL: - <https://storage.googleapis.com/bucket_name/image_archive_name> - <https://storage.googleapis.com/bucket_name/folder_name/> image_archive_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
#[prost(string, optional, tag = "177235995")]
pub source: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `RawDisk`.
pub mod raw_disk {
/// The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ContainerType {
/// A value indicating that the enum field is not set.
UndefinedContainerType = 0,
Tar = 82821,
}
impl ContainerType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ContainerType::UndefinedContainerType => "UNDEFINED_CONTAINER_TYPE",
ContainerType::Tar => "TAR",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_CONTAINER_TYPE" => Some(Self::UndefinedContainerType),
"TAR" => Some(Self::Tar),
_ => None,
}
}
}
}
/// A request message for InstanceGroupManagers.RecreateInstances. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RecreateInstancesInstanceGroupManagerRequest {
/// The name of the managed instance group.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "21405952")]
pub instance_group_managers_recreate_instances_request_resource: ::core::option::Option<
InstanceGroupManagersRecreateInstancesRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where the managed instance group is located.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionInstanceGroupManagers.RecreateInstances. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RecreateInstancesRegionInstanceGroupManagerRequest {
/// Name of the managed instance group.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "170999316")]
pub region_instance_group_managers_recreate_request_resource: ::core::option::Option<
RegionInstanceGroupManagersRecreateRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a reference to a resource.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Reference {
/// \[Output Only\] Type of the resource. Always compute#reference for references.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// A description of the reference type with no implied semantics. Possible values include: 1. MEMBER_OF
#[prost(string, optional, tag = "247521198")]
pub reference_type: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the resource which refers to the target.
#[prost(string, optional, tag = "351173663")]
pub referrer: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the resource to which this reference points.
#[prost(string, optional, tag = "192835985")]
pub target: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a Region resource. A region is a geographical area where a resource is located. For more information, read Regions and Zones.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Region {
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The deprecation status associated with this region.
#[prost(message, optional, tag = "515138995")]
pub deprecated: ::core::option::Option<DeprecationStatus>,
/// \[Output Only\] Textual description of the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#region for regions.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Name of the resource.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Quotas assigned to this region.
#[prost(message, repeated, tag = "125341947")]
pub quotas: ::prost::alloc::vec::Vec<Quota>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Status of the region, either UP or DOWN.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Reserved for future use.
#[prost(bool, optional, tag = "83983214")]
pub supports_pzs: ::core::option::Option<bool>,
/// \[Output Only\] A list of zones available in this region, in the form of resource URLs.
#[prost(string, repeated, tag = "116085319")]
pub zones: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Region`.
pub mod region {
/// \[Output Only\] Status of the region, either UP or DOWN.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
Down = 2104482,
Up = 2715,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Down => "DOWN",
Status::Up => "UP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"DOWN" => Some(Self::Down),
"UP" => Some(Self::Up),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionAddressesMoveRequest {
/// An optional destination address description if intended to be different from the source.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the destination address to move to. This can be a full or partial URL. For example, the following are all valid URLs to a address: - <https://www.googleapis.com/compute/v1/projects/project/regions/region> /addresses/address - projects/project/regions/region/addresses/address Note that destination project must be different from the source project. So /regions/region/addresses/address is not valid partial url.
#[prost(string, optional, tag = "371693763")]
pub destination_address: ::core::option::Option<::prost::alloc::string::String>,
}
/// Contains a list of autoscalers.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionAutoscalerList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Autoscaler resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Autoscaler>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionDiskTypeList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of DiskType resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<DiskType>,
/// \[Output Only\] Type of resource. Always compute#regionDiskTypeList for region disk types.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionDisksAddResourcePoliciesRequest {
/// Resource policies to be added to this disk.
#[prost(string, repeated, tag = "22220385")]
pub resource_policies: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionDisksRemoveResourcePoliciesRequest {
/// Resource policies to be removed from this disk.
#[prost(string, repeated, tag = "22220385")]
pub resource_policies: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionDisksResizeRequest {
/// The new size of the regional persistent disk, which is specified in GB.
#[prost(int64, optional, tag = "494929369")]
pub size_gb: ::core::option::Option<i64>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionDisksStartAsyncReplicationRequest {
/// The secondary disk to start asynchronous replication to. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - <https://www.googleapis.com/compute/v1/projects/project/zones/zone> /disks/disk - <https://www.googleapis.com/compute/v1/projects/project/regions/region> /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
#[prost(string, optional, tag = "131645867")]
pub async_secondary_disk: ::core::option::Option<::prost::alloc::string::String>,
}
/// Contains a list of InstanceGroup resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionInstanceGroupList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of InstanceGroup resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<InstanceGroup>,
/// The resource type.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// RegionInstanceGroupManagers.deletePerInstanceConfigs
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionInstanceGroupManagerDeleteInstanceConfigReq {
/// The list of instance names for which we want to delete per-instance configs on this managed instance group.
#[prost(string, repeated, tag = "104585032")]
pub names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Contains a list of managed instance groups.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionInstanceGroupManagerList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of InstanceGroupManager resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<InstanceGroupManager>,
/// \[Output Only\] The resource type, which is always compute#instanceGroupManagerList for a list of managed instance groups that exist in th regional scope.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// RegionInstanceGroupManagers.patchPerInstanceConfigs
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionInstanceGroupManagerPatchInstanceConfigReq {
/// The list of per-instance configurations to insert or patch on this managed instance group.
#[prost(message, repeated, tag = "526265001")]
pub per_instance_configs: ::prost::alloc::vec::Vec<PerInstanceConfig>,
}
/// RegionInstanceGroupManagers.updatePerInstanceConfigs
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionInstanceGroupManagerUpdateInstanceConfigReq {
/// The list of per-instance configurations to insert or patch on this managed instance group.
#[prost(message, repeated, tag = "526265001")]
pub per_instance_configs: ::prost::alloc::vec::Vec<PerInstanceConfig>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionInstanceGroupManagersAbandonInstancesRequest {
/// The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as zones/\[ZONE\]/instances/\[INSTANCE_NAME\].
#[prost(string, repeated, tag = "29097598")]
pub instances: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// RegionInstanceGroupManagers.applyUpdatesToInstances
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionInstanceGroupManagersApplyUpdatesRequest {
/// Flag to update all instances instead of specified list of “instances”. If the flag is set to true then the instances may not be specified in the request.
#[prost(bool, optional, tag = "403676512")]
pub all_instances: ::core::option::Option<bool>,
/// The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/\[ZONE\]/instances/\[INSTANCE_NAME\].
#[prost(string, repeated, tag = "29097598")]
pub instances: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update.
/// Check the MinimalAction enum for the list of possible values.
#[prost(string, optional, tag = "270567060")]
pub minimal_action: ::core::option::Option<::prost::alloc::string::String>,
/// The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail.
/// Check the MostDisruptiveAllowedAction enum for the list of possible values.
#[prost(string, optional, tag = "66103053")]
pub most_disruptive_allowed_action: ::core::option::Option<
::prost::alloc::string::String,
>,
}
/// Nested message and enum types in `RegionInstanceGroupManagersApplyUpdatesRequest`.
pub mod region_instance_group_managers_apply_updates_request {
/// The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update.
/// Additional supported values which may be not listed in the enum directly due to technical reasons:
/// NONE
/// REFRESH
/// REPLACE
/// RESTART
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum MinimalAction {
/// A value indicating that the enum field is not set.
UndefinedMinimalAction = 0,
}
impl MinimalAction {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
MinimalAction::UndefinedMinimalAction => "UNDEFINED_MINIMAL_ACTION",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_MINIMAL_ACTION" => Some(Self::UndefinedMinimalAction),
_ => None,
}
}
}
/// The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail.
/// Additional supported values which may be not listed in the enum directly due to technical reasons:
/// NONE
/// REFRESH
/// REPLACE
/// RESTART
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum MostDisruptiveAllowedAction {
/// A value indicating that the enum field is not set.
UndefinedMostDisruptiveAllowedAction = 0,
}
impl MostDisruptiveAllowedAction {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
MostDisruptiveAllowedAction::UndefinedMostDisruptiveAllowedAction => {
"UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION" => {
Some(Self::UndefinedMostDisruptiveAllowedAction)
}
_ => None,
}
}
}
}
/// RegionInstanceGroupManagers.createInstances
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionInstanceGroupManagersCreateInstancesRequest {
/// \[Required\] List of specifications of per-instance configs.
#[prost(message, repeated, tag = "29097598")]
pub instances: ::prost::alloc::vec::Vec<PerInstanceConfig>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionInstanceGroupManagersDeleteInstancesRequest {
/// The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/\[ZONE\]/instances/\[INSTANCE_NAME\].
#[prost(string, repeated, tag = "29097598")]
pub instances: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Specifies whether the request should proceed despite the inclusion of instances that are not members of the group or that are already in the process of being deleted or abandoned. If this field is set to `false` and such an instance is specified in the request, the operation fails. The operation always fails if the request contains a malformed instance URL or a reference to an instance that exists in a zone or region other than the group's zone or region.
#[prost(bool, optional, tag = "40631073")]
pub skip_instances_on_validation_error: ::core::option::Option<bool>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionInstanceGroupManagersListErrorsResponse {
/// \[Output Only\] The list of errors of the managed instance group.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<InstanceManagedByIgmError>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionInstanceGroupManagersListInstanceConfigsResp {
/// \[Output Only\] The list of PerInstanceConfig.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<PerInstanceConfig>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionInstanceGroupManagersListInstancesResponse {
/// A list of managed instances.
#[prost(message, repeated, tag = "336219614")]
pub managed_instances: ::prost::alloc::vec::Vec<ManagedInstance>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionInstanceGroupManagersRecreateRequest {
/// The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as zones/\[ZONE\]/instances/\[INSTANCE_NAME\].
#[prost(string, repeated, tag = "29097598")]
pub instances: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionInstanceGroupManagersSetTargetPoolsRequest {
/// Fingerprint of the target pools information, which is a hash of the contents. This field is used for optimistic locking when you update the target pool entries. This field is optional.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group.
#[prost(string, repeated, tag = "336072617")]
pub target_pools: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionInstanceGroupManagersSetTemplateRequest {
/// URL of the InstanceTemplate resource from which all new instances will be created.
#[prost(string, optional, tag = "309248228")]
pub instance_template: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionInstanceGroupsListInstances {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of InstanceWithNamedPorts resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<InstanceWithNamedPorts>,
/// The resource type.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionInstanceGroupsListInstancesRequest {
/// Instances in which state should be returned. Valid options are: 'ALL', 'RUNNING'. By default, it lists all instances.
/// Check the InstanceState enum for the list of possible values.
#[prost(string, optional, tag = "92223591")]
pub instance_state: ::core::option::Option<::prost::alloc::string::String>,
/// Name of port user is interested in. It is optional. If it is set, only information about this ports will be returned. If it is not set, all the named ports will be returned. Always lists all instances.
#[prost(string, optional, tag = "41534345")]
pub port_name: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `RegionInstanceGroupsListInstancesRequest`.
pub mod region_instance_groups_list_instances_request {
/// Instances in which state should be returned. Valid options are: 'ALL', 'RUNNING'. By default, it lists all instances.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum InstanceState {
/// A value indicating that the enum field is not set.
UndefinedInstanceState = 0,
/// Matches any status of the instances, running, non-running and others.
All = 64897,
/// Instance is in RUNNING state if it is running.
Running = 121282975,
}
impl InstanceState {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
InstanceState::UndefinedInstanceState => "UNDEFINED_INSTANCE_STATE",
InstanceState::All => "ALL",
InstanceState::Running => "RUNNING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_INSTANCE_STATE" => Some(Self::UndefinedInstanceState),
"ALL" => Some(Self::All),
"RUNNING" => Some(Self::Running),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionInstanceGroupsSetNamedPortsRequest {
/// The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// The list of named ports to set for this instance group.
#[prost(message, repeated, tag = "427598732")]
pub named_ports: ::prost::alloc::vec::Vec<NamedPort>,
}
/// Contains a list of region resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Region resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Region>,
/// \[Output Only\] Type of resource. Always compute#regionList for lists of regions.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionNetworkEndpointGroupsAttachEndpointsRequest {
/// The list of network endpoints to be attached.
#[prost(message, repeated, tag = "149850285")]
pub network_endpoints: ::prost::alloc::vec::Vec<NetworkEndpoint>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionNetworkEndpointGroupsDetachEndpointsRequest {
/// The list of network endpoints to be detached.
#[prost(message, repeated, tag = "149850285")]
pub network_endpoints: ::prost::alloc::vec::Vec<NetworkEndpoint>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse {
/// Effective firewalls from firewall policy.
#[prost(message, repeated, tag = "410985794")]
pub firewall_policys: ::prost::alloc::vec::Vec<
RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy,
>,
/// Effective firewalls on the network.
#[prost(message, repeated, tag = "272245619")]
pub firewalls: ::prost::alloc::vec::Vec<Firewall>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy {
/// \[Output Only\] The display name of the firewall policy.
#[prost(string, optional, tag = "4473832")]
pub display_name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The name of the firewall policy.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The rules that apply to the network.
#[prost(message, repeated, tag = "108873975")]
pub rules: ::prost::alloc::vec::Vec<FirewallPolicyRule>,
/// \[Output Only\] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy`.
pub mod region_network_firewall_policies_get_effective_firewalls_response_effective_firewall_policy {
/// \[Output Only\] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
Hierarchy = 69902869,
Network = 413984270,
NetworkRegional = 190804272,
Unspecified = 526786327,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::Hierarchy => "HIERARCHY",
Type::Network => "NETWORK",
Type::NetworkRegional => "NETWORK_REGIONAL",
Type::Unspecified => "UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"HIERARCHY" => Some(Self::Hierarchy),
"NETWORK" => Some(Self::Network),
"NETWORK_REGIONAL" => Some(Self::NetworkRegional),
"UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionSetLabelsRequest {
/// The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint.
#[prost(string, optional, tag = "178124825")]
pub label_fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// The labels to set for this resource.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionSetPolicyRequest {
/// Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify bindings.
#[prost(message, repeated, tag = "403251854")]
pub bindings: ::prost::alloc::vec::Vec<Binding>,
/// Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.
#[prost(string, optional, tag = "3123477")]
pub etag: ::core::option::Option<::prost::alloc::string::String>,
/// REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them.
#[prost(message, optional, tag = "91071794")]
pub policy: ::core::option::Option<Policy>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionTargetHttpsProxiesSetSslCertificatesRequest {
/// New set of SslCertificate resources to associate with this TargetHttpsProxy resource.
#[prost(string, repeated, tag = "366006543")]
pub ssl_certificates: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegionUrlMapsValidateRequest {
/// Content of the UrlMap to be validated.
#[prost(message, optional, tag = "195806222")]
pub resource: ::core::option::Option<UrlMap>,
}
/// A request message for FirewallPolicies.RemoveAssociation. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveAssociationFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// Name for the attachment that will be removed.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NetworkFirewallPolicies.RemoveAssociation. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveAssociationNetworkFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// Name for the attachment that will be removed.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionNetworkFirewallPolicies.RemoveAssociation. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveAssociationRegionNetworkFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// Name for the association that will be removed.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for TargetPools.RemoveHealthCheck. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveHealthCheckTargetPoolRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the target pool to remove health checks from.
#[prost(string, tag = "62796298")]
pub target_pool: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "304985011")]
pub target_pools_remove_health_check_request_resource: ::core::option::Option<
TargetPoolsRemoveHealthCheckRequest,
>,
}
/// A request message for TargetPools.RemoveInstance. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveInstanceTargetPoolRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetPool resource to remove instances from.
#[prost(string, tag = "62796298")]
pub target_pool: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "29548547")]
pub target_pools_remove_instance_request_resource: ::core::option::Option<
TargetPoolsRemoveInstanceRequest,
>,
}
/// A request message for InstanceGroups.RemoveInstances. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveInstancesInstanceGroupRequest {
/// The name of the instance group where the specified instances will be removed.
#[prost(string, tag = "81095253")]
pub instance_group: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "390981817")]
pub instance_groups_remove_instances_request_resource: ::core::option::Option<
InstanceGroupsRemoveInstancesRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where the instance group is located.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Networks.RemovePeering. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemovePeeringNetworkRequest {
/// Name of the network resource to remove peering from.
#[prost(string, tag = "232872494")]
pub network: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "421162494")]
pub networks_remove_peering_request_resource: ::core::option::Option<
NetworksRemovePeeringRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Disks.RemoveResourcePolicies. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveResourcePoliciesDiskRequest {
/// The disk name for this request.
#[prost(string, tag = "3083677")]
pub disk: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "436756718")]
pub disks_remove_resource_policies_request_resource: ::core::option::Option<
DisksRemoveResourcePoliciesRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Instances.RemoveResourcePolicies. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveResourcePoliciesInstanceRequest {
/// The instance name for this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "49229558")]
pub instances_remove_resource_policies_request_resource: ::core::option::Option<
InstancesRemoveResourcePoliciesRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionDisks.RemoveResourcePolicies. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveResourcePoliciesRegionDiskRequest {
/// The disk name for this request.
#[prost(string, tag = "3083677")]
pub disk: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "8741283")]
pub region_disks_remove_resource_policies_request_resource: ::core::option::Option<
RegionDisksRemoveResourcePoliciesRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for FirewallPolicies.RemoveRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveRuleFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The priority of the rule to remove from the firewall policy.
#[prost(int32, optional, tag = "445151652")]
pub priority: ::core::option::Option<i32>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NetworkFirewallPolicies.RemoveRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveRuleNetworkFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The priority of the rule to remove from the firewall policy.
#[prost(int32, optional, tag = "445151652")]
pub priority: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionNetworkFirewallPolicies.RemoveRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveRuleRegionNetworkFirewallPolicyRequest {
/// Name of the firewall policy to update.
#[prost(string, tag = "498173265")]
pub firewall_policy: ::prost::alloc::string::String,
/// The priority of the rule to remove from the firewall policy.
#[prost(int32, optional, tag = "445151652")]
pub priority: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionSecurityPolicies.RemoveRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveRuleRegionSecurityPolicyRequest {
/// The priority of the rule to remove from the security policy.
#[prost(int32, optional, tag = "445151652")]
pub priority: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name of the security policy to update.
#[prost(string, tag = "171082513")]
pub security_policy: ::prost::alloc::string::String,
}
/// A request message for SecurityPolicies.RemoveRule. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveRuleSecurityPolicyRequest {
/// The priority of the rule to remove from the security policy.
#[prost(int32, optional, tag = "445151652")]
pub priority: ::core::option::Option<i32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the security policy to update.
#[prost(string, tag = "171082513")]
pub security_policy: ::prost::alloc::string::String,
}
/// A policy that specifies how requests intended for the route's backends are shadowed to a separate mirrored backend service. The load balancer doesn't wait for responses from the shadow service. Before sending traffic to the shadow service, the host or authority header is suffixed with -shadow.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestMirrorPolicy {
/// The full or partial URL to the BackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service.
#[prost(string, optional, tag = "306946058")]
pub backend_service: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a reservation resource. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running. For more information, read Reserving zonal resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Reservation {
/// Reservation for aggregated resources, providing shape flexibility.
#[prost(message, optional, tag = "291567948")]
pub aggregate_reservation: ::core::option::Option<AllocationAggregateReservation>,
/// \[Output Only\] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
#[prost(string, optional, tag = "482134805")]
pub commitment: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#reservations for reservations.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.
#[prost(btree_map = "string, string", tag = "22220385")]
pub resource_policies: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// \[Output Only\] Status information for Reservation resource.
#[prost(message, optional, tag = "249429315")]
pub resource_status: ::core::option::Option<AllocationResourceStatus>,
/// \[Output Only\] Reserved for future use.
#[prost(bool, optional, tag = "480964267")]
pub satisfies_pzs: ::core::option::Option<bool>,
/// \[Output Only\] Server-defined fully-qualified URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation.
#[prost(message, optional, tag = "266668163")]
pub share_settings: ::core::option::Option<ShareSettings>,
/// Reservation for instances with specific machine shapes.
#[prost(message, optional, tag = "404901951")]
pub specific_reservation: ::core::option::Option<AllocationSpecificSkuReservation>,
/// Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation.
#[prost(bool, optional, tag = "226550687")]
pub specific_reservation_required: ::core::option::Option<bool>,
/// \[Output Only\] The status of the reservation.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.
#[prost(string, optional, tag = "3744684")]
pub zone: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Reservation`.
pub mod reservation {
/// \[Output Only\] The status of the reservation.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// Resources are being allocated for the reservation.
Creating = 455564985,
/// Reservation is currently being deleted.
Deleting = 528602024,
Invalid = 530283991,
/// Reservation has allocated all its resources.
Ready = 77848963,
/// Reservation is currently being resized.
Updating = 494614342,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Creating => "CREATING",
Status::Deleting => "DELETING",
Status::Invalid => "INVALID",
Status::Ready => "READY",
Status::Updating => "UPDATING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"CREATING" => Some(Self::Creating),
"DELETING" => Some(Self::Deleting),
"INVALID" => Some(Self::Invalid),
"READY" => Some(Self::Ready),
"UPDATING" => Some(Self::Updating),
_ => None,
}
}
}
}
/// Specifies the reservations that this instance can consume from.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReservationAffinity {
/// Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples.
/// Check the ConsumeReservationType enum for the list of possible values.
#[prost(string, optional, tag = "300736944")]
pub consume_reservation_type: ::core::option::Option<::prost::alloc::string::String>,
/// Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the key and specify the name of your reservation as its value.
#[prost(string, optional, tag = "106079")]
pub key: ::core::option::Option<::prost::alloc::string::String>,
/// Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project.
#[prost(string, repeated, tag = "249928994")]
pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `ReservationAffinity`.
pub mod reservation_affinity {
/// Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ConsumeReservationType {
/// A value indicating that the enum field is not set.
UndefinedConsumeReservationType = 0,
/// Consume any allocation available.
AnyReservation = 200008121,
/// Do not consume from any allocated capacity.
NoReservation = 169322030,
/// Must consume from a specific reservation. Must specify key value fields for specifying the reservations.
SpecificReservation = 229889055,
Unspecified = 526786327,
}
impl ConsumeReservationType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ConsumeReservationType::UndefinedConsumeReservationType => {
"UNDEFINED_CONSUME_RESERVATION_TYPE"
}
ConsumeReservationType::AnyReservation => "ANY_RESERVATION",
ConsumeReservationType::NoReservation => "NO_RESERVATION",
ConsumeReservationType::SpecificReservation => "SPECIFIC_RESERVATION",
ConsumeReservationType::Unspecified => "UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_CONSUME_RESERVATION_TYPE" => {
Some(Self::UndefinedConsumeReservationType)
}
"ANY_RESERVATION" => Some(Self::AnyReservation),
"NO_RESERVATION" => Some(Self::NoReservation),
"SPECIFIC_RESERVATION" => Some(Self::SpecificReservation),
"UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
/// Contains a list of reservations.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReservationAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Allocation resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
ReservationsScopedList,
>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReservationList {
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A list of Allocation resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Reservation>,
/// \[Output Only\] Type of resource.Always compute#reservationsList for listsof reservations
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReservationsResizeRequest {
/// Number of allocated resources can be resized with minimum = 1 and maximum = 1000.
#[prost(int64, optional, tag = "13890720")]
pub specific_sku_count: ::core::option::Option<i64>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReservationsScopedList {
/// A list of reservations contained in this scope.
#[prost(message, repeated, tag = "399717927")]
pub reservations: ::prost::alloc::vec::Vec<Reservation>,
/// Informational warning which replaces the list of reservations when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// A request message for Instances.Reset. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResetInstanceRequest {
/// Name of the instance scoping this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Disks.Resize. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResizeDiskRequest {
/// The name of the persistent disk.
#[prost(string, tag = "3083677")]
pub disk: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "78307616")]
pub disks_resize_request_resource: ::core::option::Option<DisksResizeRequest>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InstanceGroupManagers.Resize. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResizeInstanceGroupManagerRequest {
/// The name of the managed instance group.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The number of running instances that the managed instance group should maintain at any given time. The group automatically adds or removes instances to maintain the number of instances specified by this parameter.
#[prost(int32, tag = "3530753")]
pub size: i32,
/// The name of the zone where the managed instance group is located.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionDisks.Resize. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResizeRegionDiskRequest {
/// Name of the regional persistent disk.
#[prost(string, tag = "3083677")]
pub disk: ::prost::alloc::string::String,
/// The project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "446633237")]
pub region_disks_resize_request_resource: ::core::option::Option<
RegionDisksResizeRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionInstanceGroupManagers.Resize. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResizeRegionInstanceGroupManagerRequest {
/// Name of the managed instance group.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Number of instances that should exist in this instance group manager.
#[prost(int32, tag = "3530753")]
pub size: i32,
}
/// A request message for Reservations.Resize. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResizeReservationRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the reservation to update.
#[prost(string, tag = "47530956")]
pub reservation: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "389262801")]
pub reservations_resize_request_resource: ::core::option::Option<
ReservationsResizeRequest,
>,
/// Name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// Commitment for a particular resource (a Commitment is composed of one or more of these).
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourceCommitment {
/// Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
#[prost(string, optional, tag = "138031246")]
pub accelerator_type: ::core::option::Option<::prost::alloc::string::String>,
/// The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.
#[prost(int64, optional, tag = "196759640")]
pub amount: ::core::option::Option<i64>,
/// Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `ResourceCommitment`.
pub mod resource_commitment {
/// Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
Accelerator = 429815371,
LocalSsd = 508934896,
Memory = 123056385,
Unspecified = 526786327,
Vcpu = 2628978,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::Accelerator => "ACCELERATOR",
Type::LocalSsd => "LOCAL_SSD",
Type::Memory => "MEMORY",
Type::Unspecified => "UNSPECIFIED",
Type::Vcpu => "VCPU",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"ACCELERATOR" => Some(Self::Accelerator),
"LOCAL_SSD" => Some(Self::LocalSsd),
"MEMORY" => Some(Self::Memory),
"UNSPECIFIED" => Some(Self::Unspecified),
"VCPU" => Some(Self::Vcpu),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourceGroupReference {
/// A URI referencing one of the instance groups or network endpoint groups listed in the backend service.
#[prost(string, optional, tag = "98629247")]
pub group: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourcePoliciesScopedList {
/// A list of resourcePolicies contained in this scope.
#[prost(message, repeated, tag = "22220385")]
pub resource_policies: ::prost::alloc::vec::Vec<ResourcePolicy>,
/// Informational warning which replaces the list of resourcePolicies when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represents a Resource Policy resource. You can use resource policies to schedule actions for some Compute Engine resources. For example, you can use them to schedule persistent disk snapshots.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourcePolicy {
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Resource policy for disk consistency groups.
#[prost(message, optional, tag = "473727515")]
pub disk_consistency_group_policy: ::core::option::Option<
ResourcePolicyDiskConsistencyGroupPolicy,
>,
/// Resource policy for instances for placement configuration.
#[prost(message, optional, tag = "10931596")]
pub group_placement_policy: ::core::option::Option<
ResourcePolicyGroupPlacementPolicy,
>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// Resource policy for scheduling instance operations.
#[prost(message, optional, tag = "344877104")]
pub instance_schedule_policy: ::core::option::Option<
ResourcePolicyInstanceSchedulePolicy,
>,
/// \[Output Only\] Type of the resource. Always compute#resource_policies for resource policies.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The system status of the resource policy.
#[prost(message, optional, tag = "249429315")]
pub resource_status: ::core::option::Option<ResourcePolicyResourceStatus>,
/// \[Output Only\] Server-defined fully-qualified URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// Resource policy for persistent disks for creating snapshots.
#[prost(message, optional, tag = "218131295")]
pub snapshot_schedule_policy: ::core::option::Option<
ResourcePolicySnapshotSchedulePolicy,
>,
/// \[Output Only\] The status of resource policy creation.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `ResourcePolicy`.
pub mod resource_policy {
/// \[Output Only\] The status of resource policy creation.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// Resource policy is being created.
Creating = 455564985,
/// Resource policy is being deleted.
Deleting = 528602024,
/// Resource policy is expired and will not run again.
Expired = 482489093,
Invalid = 530283991,
/// Resource policy is ready to be used.
Ready = 77848963,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Creating => "CREATING",
Status::Deleting => "DELETING",
Status::Expired => "EXPIRED",
Status::Invalid => "INVALID",
Status::Ready => "READY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"CREATING" => Some(Self::Creating),
"DELETING" => Some(Self::Deleting),
"EXPIRED" => Some(Self::Expired),
"INVALID" => Some(Self::Invalid),
"READY" => Some(Self::Ready),
_ => None,
}
}
}
}
/// Contains a list of resourcePolicies.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourcePolicyAggregatedList {
#[prost(string, optional, tag = "3123477")]
pub etag: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of ResourcePolicy resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
ResourcePoliciesScopedList,
>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Time window specified for daily operations.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourcePolicyDailyCycle {
/// Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle.
#[prost(int32, optional, tag = "369790004")]
pub days_in_cycle: ::core::option::Option<i32>,
/// \[Output only\] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.
#[prost(string, optional, tag = "155471252")]
pub duration: ::core::option::Option<::prost::alloc::string::String>,
/// Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
#[prost(string, optional, tag = "37467274")]
pub start_time: ::core::option::Option<::prost::alloc::string::String>,
}
/// Resource policy for disk consistency groups.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourcePolicyDiskConsistencyGroupPolicy {}
/// A GroupPlacementPolicy specifies resource placement configuration. It specifies the failure bucket separation as well as network locality
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourcePolicyGroupPlacementPolicy {
/// The number of availability domains to spread instances across. If two instances are in different availability domain, they are not in the same low latency network.
#[prost(int32, optional, tag = "12453432")]
pub availability_domain_count: ::core::option::Option<i32>,
/// Specifies network collocation
/// Check the Collocation enum for the list of possible values.
#[prost(string, optional, tag = "511156533")]
pub collocation: ::core::option::Option<::prost::alloc::string::String>,
/// Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.
#[prost(int32, optional, tag = "261463431")]
pub vm_count: ::core::option::Option<i32>,
}
/// Nested message and enum types in `ResourcePolicyGroupPlacementPolicy`.
pub mod resource_policy_group_placement_policy {
/// Specifies network collocation
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Collocation {
/// A value indicating that the enum field is not set.
UndefinedCollocation = 0,
Collocated = 103257554,
UnspecifiedCollocation = 464308205,
}
impl Collocation {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Collocation::UndefinedCollocation => "UNDEFINED_COLLOCATION",
Collocation::Collocated => "COLLOCATED",
Collocation::UnspecifiedCollocation => "UNSPECIFIED_COLLOCATION",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_COLLOCATION" => Some(Self::UndefinedCollocation),
"COLLOCATED" => Some(Self::Collocated),
"UNSPECIFIED_COLLOCATION" => Some(Self::UnspecifiedCollocation),
_ => None,
}
}
}
}
/// Time window specified for hourly operations.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourcePolicyHourlyCycle {
/// \[Output only\] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
#[prost(string, optional, tag = "155471252")]
pub duration: ::core::option::Option<::prost::alloc::string::String>,
/// Defines a schedule with units measured in hours. The value determines how many hours pass between the start of each cycle.
#[prost(int32, optional, tag = "526763132")]
pub hours_in_cycle: ::core::option::Option<i32>,
/// Time within the window to start the operations. It must be in format "HH:MM", where HH : \[00-23\] and MM : \[00-00\] GMT.
#[prost(string, optional, tag = "37467274")]
pub start_time: ::core::option::Option<::prost::alloc::string::String>,
}
/// An InstanceSchedulePolicy specifies when and how frequent certain operations are performed on the instance.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourcePolicyInstanceSchedulePolicy {
/// The expiration time of the schedule. The timestamp is an RFC3339 string.
#[prost(string, optional, tag = "230299229")]
pub expiration_time: ::core::option::Option<::prost::alloc::string::String>,
/// The start time of the schedule. The timestamp is an RFC3339 string.
#[prost(string, optional, tag = "37467274")]
pub start_time: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: <https://wikipedia.org/wiki/Tz_database.>
#[prost(string, optional, tag = "36848094")]
pub time_zone: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the schedule for starting instances.
#[prost(message, optional, tag = "17762396")]
pub vm_start_schedule: ::core::option::Option<
ResourcePolicyInstanceSchedulePolicySchedule,
>,
/// Specifies the schedule for stopping instances.
#[prost(message, optional, tag = "426242732")]
pub vm_stop_schedule: ::core::option::Option<
ResourcePolicyInstanceSchedulePolicySchedule,
>,
}
/// Schedule for an instance operation.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourcePolicyInstanceSchedulePolicySchedule {
/// Specifies the frequency for the operation, using the unix-cron format.
#[prost(string, optional, tag = "375820951")]
pub schedule: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourcePolicyList {
#[prost(string, optional, tag = "3123477")]
pub etag: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A list of ResourcePolicy resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<ResourcePolicy>,
/// \[Output Only\] Type of resource.Always compute#resourcePoliciesList for listsof resourcePolicies
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains output only fields. Use this sub-message for all output fields set on ResourcePolicy. The internal structure of this "status" field should mimic the structure of ResourcePolicy proto specification.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourcePolicyResourceStatus {
/// \[Output Only\] Specifies a set of output values reffering to the instance_schedule_policy system status. This field should have the same name as corresponding policy field.
#[prost(message, optional, tag = "344877104")]
pub instance_schedule_policy: ::core::option::Option<
ResourcePolicyResourceStatusInstanceSchedulePolicyStatus,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourcePolicyResourceStatusInstanceSchedulePolicyStatus {
/// \[Output Only\] The last time the schedule successfully ran. The timestamp is an RFC3339 string.
#[prost(string, optional, tag = "303069063")]
pub last_run_start_time: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The next time the schedule is planned to run. The actual time might be slightly different. The timestamp is an RFC3339 string.
#[prost(string, optional, tag = "318642570")]
pub next_run_start_time: ::core::option::Option<::prost::alloc::string::String>,
}
/// A snapshot schedule policy specifies when and how frequently snapshots are to be created for the target disk. Also specifies how many and how long these scheduled snapshots should be retained.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourcePolicySnapshotSchedulePolicy {
/// Retention policy applied to snapshots created by this resource policy.
#[prost(message, optional, tag = "68625779")]
pub retention_policy: ::core::option::Option<
ResourcePolicySnapshotSchedulePolicyRetentionPolicy,
>,
/// A Vm Maintenance Policy specifies what kind of infrastructure maintenance we are allowed to perform on this VM and when. Schedule that is applied to disks covered by this policy.
#[prost(message, optional, tag = "375820951")]
pub schedule: ::core::option::Option<ResourcePolicySnapshotSchedulePolicySchedule>,
/// Properties with which snapshots are created such as labels, encryption keys.
#[prost(message, optional, tag = "185371278")]
pub snapshot_properties: ::core::option::Option<
ResourcePolicySnapshotSchedulePolicySnapshotProperties,
>,
}
/// Policy for retention of scheduled snapshots.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourcePolicySnapshotSchedulePolicyRetentionPolicy {
/// Maximum age of the snapshot that is allowed to be kept.
#[prost(int32, optional, tag = "324296979")]
pub max_retention_days: ::core::option::Option<i32>,
/// Specifies the behavior to apply to scheduled snapshots when the source disk is deleted.
/// Check the OnSourceDiskDelete enum for the list of possible values.
#[prost(string, optional, tag = "321955529")]
pub on_source_disk_delete: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `ResourcePolicySnapshotSchedulePolicyRetentionPolicy`.
pub mod resource_policy_snapshot_schedule_policy_retention_policy {
/// Specifies the behavior to apply to scheduled snapshots when the source disk is deleted.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum OnSourceDiskDelete {
/// A value indicating that the enum field is not set.
UndefinedOnSourceDiskDelete = 0,
ApplyRetentionPolicy = 535071332,
KeepAutoSnapshots = 258925689,
UnspecifiedOnSourceDiskDelete = 239140769,
}
impl OnSourceDiskDelete {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
OnSourceDiskDelete::UndefinedOnSourceDiskDelete => {
"UNDEFINED_ON_SOURCE_DISK_DELETE"
}
OnSourceDiskDelete::ApplyRetentionPolicy => "APPLY_RETENTION_POLICY",
OnSourceDiskDelete::KeepAutoSnapshots => "KEEP_AUTO_SNAPSHOTS",
OnSourceDiskDelete::UnspecifiedOnSourceDiskDelete => {
"UNSPECIFIED_ON_SOURCE_DISK_DELETE"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ON_SOURCE_DISK_DELETE" => {
Some(Self::UndefinedOnSourceDiskDelete)
}
"APPLY_RETENTION_POLICY" => Some(Self::ApplyRetentionPolicy),
"KEEP_AUTO_SNAPSHOTS" => Some(Self::KeepAutoSnapshots),
"UNSPECIFIED_ON_SOURCE_DISK_DELETE" => {
Some(Self::UnspecifiedOnSourceDiskDelete)
}
_ => None,
}
}
}
}
/// A schedule for disks where the schedueled operations are performed.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourcePolicySnapshotSchedulePolicySchedule {
#[prost(message, optional, tag = "86159869")]
pub daily_schedule: ::core::option::Option<ResourcePolicyDailyCycle>,
#[prost(message, optional, tag = "38328485")]
pub hourly_schedule: ::core::option::Option<ResourcePolicyHourlyCycle>,
#[prost(message, optional, tag = "359548053")]
pub weekly_schedule: ::core::option::Option<ResourcePolicyWeeklyCycle>,
}
/// Specified snapshot properties for scheduled snapshots created by this policy.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourcePolicySnapshotSchedulePolicySnapshotProperties {
/// Chain name that the snapshot is created in.
#[prost(string, optional, tag = "68644169")]
pub chain_name: ::core::option::Option<::prost::alloc::string::String>,
/// Indication to perform a 'guest aware' snapshot.
#[prost(bool, optional, tag = "385550813")]
pub guest_flush: ::core::option::Option<bool>,
/// Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. Label values may be empty.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).
#[prost(string, repeated, tag = "328005274")]
pub storage_locations: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Time window specified for weekly operations.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourcePolicyWeeklyCycle {
/// Up to 7 intervals/windows, one for each day of the week.
#[prost(message, repeated, tag = "257871834")]
pub day_of_weeks: ::prost::alloc::vec::Vec<ResourcePolicyWeeklyCycleDayOfWeek>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourcePolicyWeeklyCycleDayOfWeek {
/// Defines a schedule that runs on specific days of the week. Specify one or more days. The following options are available: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
/// Check the Day enum for the list of possible values.
#[prost(string, optional, tag = "99228")]
pub day: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output only\] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
#[prost(string, optional, tag = "155471252")]
pub duration: ::core::option::Option<::prost::alloc::string::String>,
/// Time within the window to start the operations. It must be in format "HH:MM", where HH : \[00-23\] and MM : \[00-00\] GMT.
#[prost(string, optional, tag = "37467274")]
pub start_time: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `ResourcePolicyWeeklyCycleDayOfWeek`.
pub mod resource_policy_weekly_cycle_day_of_week {
/// Defines a schedule that runs on specific days of the week. Specify one or more days. The following options are available: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Day {
/// A value indicating that the enum field is not set.
UndefinedDay = 0,
Friday = 471398751,
Invalid = 530283991,
Monday = 132310288,
Saturday = 279037881,
Sunday = 309626320,
Thursday = 207198682,
Tuesday = 277509677,
Wednesday = 422029110,
}
impl Day {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Day::UndefinedDay => "UNDEFINED_DAY",
Day::Friday => "FRIDAY",
Day::Invalid => "INVALID",
Day::Monday => "MONDAY",
Day::Saturday => "SATURDAY",
Day::Sunday => "SUNDAY",
Day::Thursday => "THURSDAY",
Day::Tuesday => "TUESDAY",
Day::Wednesday => "WEDNESDAY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_DAY" => Some(Self::UndefinedDay),
"FRIDAY" => Some(Self::Friday),
"INVALID" => Some(Self::Invalid),
"MONDAY" => Some(Self::Monday),
"SATURDAY" => Some(Self::Saturday),
"SUNDAY" => Some(Self::Sunday),
"THURSDAY" => Some(Self::Thursday),
"TUESDAY" => Some(Self::Tuesday),
"WEDNESDAY" => Some(Self::Wednesday),
_ => None,
}
}
}
}
/// Contains output only fields. Use this sub-message for actual values set on Instance attributes as compared to the value requested by the user (intent) in their instance CRUD calls.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourceStatus {
/// \[Output Only\] An opaque ID of the host on which the VM is running.
#[prost(string, optional, tag = "464370704")]
pub physical_host: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "227348592")]
pub upcoming_maintenance: ::core::option::Option<UpcomingMaintenance>,
}
/// A request message for Instances.Resume. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResumeInstanceRequest {
/// Name of the instance resource to resume.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// Represents a Route resource. A route defines a path from VM instances in the VPC network to a specific destination. This destination can be inside or outside the VPC network. For more information, read the Routes overview.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Route {
/// \[Output Only\] AS path.
#[prost(message, repeated, tag = "137568929")]
pub as_paths: ::prost::alloc::vec::Vec<RouteAsPath>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this field when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are supported. Must specify an IPv4 range (e.g. 192.0.2.0/24) or an IPv6 range in RFC 4291 format (e.g. 2001:db8::/32). IPv6 range will be displayed using RFC 5952 compressed format.
#[prost(string, optional, tag = "381327712")]
pub dest_range: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of this resource. Always compute#routes for Route resources.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Fully-qualified URL of the network that this route applies to.
#[prost(string, optional, tag = "232872494")]
pub network: ::core::option::Option<::prost::alloc::string::String>,
/// The URL to a gateway that should handle matching packets. You can only specify the internet gateway using a full or partial valid URL: projects/ project/global/gateways/default-internet-gateway
#[prost(string, optional, tag = "377175298")]
pub next_hop_gateway: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The full resource name of the Network Connectivity Center hub that will handle matching packets.
#[prost(string, optional, tag = "198679219")]
pub next_hop_hub: ::core::option::Option<::prost::alloc::string::String>,
/// The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets or the IP address of the forwarding Rule. For example, the following are all valid URLs: - 10.128.0.56 - <https://www.googleapis.com/compute/v1/projects/project/regions/region> /forwardingRules/forwardingRule - regions/region/forwardingRules/forwardingRule
#[prost(string, optional, tag = "198679901")]
pub next_hop_ilb: ::core::option::Option<::prost::alloc::string::String>,
/// The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: <https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/>
#[prost(string, optional, tag = "393508247")]
pub next_hop_instance: ::core::option::Option<::prost::alloc::string::String>,
/// The network IP address of an instance that should handle matching packets. Both IPv6 address and IPv4 addresses are supported. Must specify an IPv4 address in dot-decimal notation (e.g. 192.0.2.99) or an IPv6 address in RFC 4291 format (e.g. 2001:db8::2d9:51:0:0 or 2001:db8:0:0:2d9:51:0:0). IPv6 addresses will be displayed using RFC 5952 compressed format (e.g. 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address.
#[prost(string, optional, tag = "110319529")]
pub next_hop_ip: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the local network if it should handle matching packets.
#[prost(string, optional, tag = "262295788")]
pub next_hop_network: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The network peering name that should handle matching packets, which should conform to RFC1035.
#[prost(string, optional, tag = "412682750")]
pub next_hop_peering: ::core::option::Option<::prost::alloc::string::String>,
/// The URL to a VpnTunnel that should handle matching packets.
#[prost(string, optional, tag = "519844501")]
pub next_hop_vpn_tunnel: ::core::option::Option<::prost::alloc::string::String>,
/// The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length. In cases where multiple routes have equal prefix length, the one with the lowest-numbered priority value wins. The default value is `1000`. The priority value must be from `0` to `65535`, inclusive.
#[prost(uint32, optional, tag = "445151652")]
pub priority: ::core::option::Option<u32>,
/// \[Output only\] The status of the route.
/// Check the RouteStatus enum for the list of possible values.
#[prost(string, optional, tag = "418162344")]
pub route_status: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The type of this route, which can be one of the following values: - 'TRANSIT' for a transit route that this router learned from another Cloud Router and will readvertise to one of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' for a route learned from a BGP peer of this router - 'STATIC' for a static route
/// Check the RouteType enum for the list of possible values.
#[prost(string, optional, tag = "375888752")]
pub route_type: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined fully-qualified URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// A list of instance tags to which this route applies.
#[prost(string, repeated, tag = "3552281")]
pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] If potential misconfigurations are detected for this route, this field will be populated with warning messages.
#[prost(message, repeated, tag = "498091095")]
pub warnings: ::prost::alloc::vec::Vec<Warnings>,
}
/// Nested message and enum types in `Route`.
pub mod route {
/// \[Output only\] The status of the route.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum RouteStatus {
/// A value indicating that the enum field is not set.
UndefinedRouteStatus = 0,
/// This route is processed and active.
Active = 314733318,
/// The route is dropped due to the VPC exceeding the dynamic route limit. For dynamic route limit, please refer to the Learned route example
Dropped = 496235424,
/// This route is processed but inactive due to failure from the backend. The backend may have rejected the route
Inactive = 270421099,
/// This route is being processed internally. The status will change once processed.
Pending = 35394935,
}
impl RouteStatus {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
RouteStatus::UndefinedRouteStatus => "UNDEFINED_ROUTE_STATUS",
RouteStatus::Active => "ACTIVE",
RouteStatus::Dropped => "DROPPED",
RouteStatus::Inactive => "INACTIVE",
RouteStatus::Pending => "PENDING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ROUTE_STATUS" => Some(Self::UndefinedRouteStatus),
"ACTIVE" => Some(Self::Active),
"DROPPED" => Some(Self::Dropped),
"INACTIVE" => Some(Self::Inactive),
"PENDING" => Some(Self::Pending),
_ => None,
}
}
}
/// \[Output Only\] The type of this route, which can be one of the following values: - 'TRANSIT' for a transit route that this router learned from another Cloud Router and will readvertise to one of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' for a route learned from a BGP peer of this router - 'STATIC' for a static route
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum RouteType {
/// A value indicating that the enum field is not set.
UndefinedRouteType = 0,
Bgp = 65707,
Static = 308331118,
Subnet = 309278557,
Transit = 187793843,
}
impl RouteType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
RouteType::UndefinedRouteType => "UNDEFINED_ROUTE_TYPE",
RouteType::Bgp => "BGP",
RouteType::Static => "STATIC",
RouteType::Subnet => "SUBNET",
RouteType::Transit => "TRANSIT",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ROUTE_TYPE" => Some(Self::UndefinedRouteType),
"BGP" => Some(Self::Bgp),
"STATIC" => Some(Self::Static),
"SUBNET" => Some(Self::Subnet),
"TRANSIT" => Some(Self::Transit),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouteAsPath {
/// \[Output Only\] The AS numbers of the AS Path.
#[prost(uint32, repeated, tag = "134112584")]
pub as_lists: ::prost::alloc::vec::Vec<u32>,
/// \[Output Only\] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed
/// Check the PathSegmentType enum for the list of possible values.
#[prost(string, optional, tag = "513464992")]
pub path_segment_type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `RouteAsPath`.
pub mod route_as_path {
/// \[Output Only\] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum PathSegmentType {
/// A value indicating that the enum field is not set.
UndefinedPathSegmentType = 0,
AsConfedSequence = 222152624,
AsConfedSet = 374040307,
AsSequence = 106735918,
AsSet = 329846453,
}
impl PathSegmentType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
PathSegmentType::UndefinedPathSegmentType => {
"UNDEFINED_PATH_SEGMENT_TYPE"
}
PathSegmentType::AsConfedSequence => "AS_CONFED_SEQUENCE",
PathSegmentType::AsConfedSet => "AS_CONFED_SET",
PathSegmentType::AsSequence => "AS_SEQUENCE",
PathSegmentType::AsSet => "AS_SET",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PATH_SEGMENT_TYPE" => Some(Self::UndefinedPathSegmentType),
"AS_CONFED_SEQUENCE" => Some(Self::AsConfedSequence),
"AS_CONFED_SET" => Some(Self::AsConfedSet),
"AS_SEQUENCE" => Some(Self::AsSequence),
"AS_SET" => Some(Self::AsSet),
_ => None,
}
}
}
}
/// Contains a list of Route resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouteList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Route resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Route>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represents a Cloud Router resource. For more information about Cloud Router, read the Cloud Router overview.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Router {
/// BGP information specific to this router.
#[prost(message, optional, tag = "97483")]
pub bgp: ::core::option::Option<RouterBgp>,
/// BGP information that must be configured into the routing stack to establish BGP peering. This information must specify the peer ASN and either the interface name, IP address, or peer IP address. Please refer to RFC4273.
#[prost(message, repeated, tag = "452695773")]
pub bgp_peers: ::prost::alloc::vec::Vec<RouterBgpPeer>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments).
#[prost(bool, optional, tag = "297996575")]
pub encrypted_interconnect_router: ::core::option::Option<bool>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// Router interfaces. To create a BGP peer that uses a router interface, the interface must have one of the following fields specified: - linkedVpnTunnel - linkedInterconnectAttachment - subnetwork You can create a router interface without any of these fields specified. However, you cannot create a BGP peer that uses that interface.
#[prost(message, repeated, tag = "12073562")]
pub interfaces: ::prost::alloc::vec::Vec<RouterInterface>,
/// \[Output Only\] Type of resource. Always compute#router for routers.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Keys used for MD5 authentication.
#[prost(message, repeated, tag = "71063322")]
pub md5_authentication_keys: ::prost::alloc::vec::Vec<RouterMd5AuthenticationKey>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// A list of NAT services created in this router.
#[prost(message, repeated, tag = "3373938")]
pub nats: ::prost::alloc::vec::Vec<RouterNat>,
/// URI of the network to which this router belongs.
#[prost(string, optional, tag = "232872494")]
pub network: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URI of the region where the router resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
}
/// Description-tagged IP ranges for the router to advertise.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterAdvertisedIpRange {
/// User-specified description for the IP range.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// The IP range to advertise. The value must be a CIDR-formatted string.
#[prost(string, optional, tag = "108280125")]
pub range: ::core::option::Option<::prost::alloc::string::String>,
}
/// Contains a list of routers.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Router resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
RoutersScopedList,
>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterBgp {
/// User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM.
/// Check the AdvertiseMode enum for the list of possible values.
#[prost(string, optional, tag = "312134331")]
pub advertise_mode: ::core::option::Option<::prost::alloc::string::String>,
/// User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups.
/// Check the AdvertisedGroups enum for the list of possible values.
#[prost(string, repeated, tag = "21065526")]
pub advertised_groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges.
#[prost(message, repeated, tag = "35449932")]
pub advertised_ip_ranges: ::prost::alloc::vec::Vec<RouterAdvertisedIpRange>,
/// Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN.
#[prost(uint32, optional, tag = "96892")]
pub asn: ::core::option::Option<u32>,
/// The interval in seconds between BGP keepalive messages that are sent to the peer. Hold time is three times the interval at which keepalive messages are sent, and the hold time is the maximum number of seconds allowed to elapse between successive keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local hold time value or the peer's hold time value as the hold time for the BGP connection between the two peers. If set, this value must be between 20 and 60. The default is 20.
#[prost(uint32, optional, tag = "276771516")]
pub keepalive_interval: ::core::option::Option<u32>,
}
/// Nested message and enum types in `RouterBgp`.
pub mod router_bgp {
/// User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum AdvertiseMode {
/// A value indicating that the enum field is not set.
UndefinedAdvertiseMode = 0,
Custom = 388595569,
Default = 115302945,
}
impl AdvertiseMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
AdvertiseMode::UndefinedAdvertiseMode => "UNDEFINED_ADVERTISE_MODE",
AdvertiseMode::Custom => "CUSTOM",
AdvertiseMode::Default => "DEFAULT",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ADVERTISE_MODE" => Some(Self::UndefinedAdvertiseMode),
"CUSTOM" => Some(Self::Custom),
"DEFAULT" => Some(Self::Default),
_ => None,
}
}
}
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum AdvertisedGroups {
/// A value indicating that the enum field is not set.
UndefinedAdvertisedGroups = 0,
/// Advertise all available subnets (including peer VPC subnets).
AllSubnets = 3622872,
}
impl AdvertisedGroups {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
AdvertisedGroups::UndefinedAdvertisedGroups => {
"UNDEFINED_ADVERTISED_GROUPS"
}
AdvertisedGroups::AllSubnets => "ALL_SUBNETS",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ADVERTISED_GROUPS" => Some(Self::UndefinedAdvertisedGroups),
"ALL_SUBNETS" => Some(Self::AllSubnets),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterBgpPeer {
/// User-specified flag to indicate which mode to use for advertisement.
/// Check the AdvertiseMode enum for the list of possible values.
#[prost(string, optional, tag = "312134331")]
pub advertise_mode: ::core::option::Option<::prost::alloc::string::String>,
/// User-specified list of prefix groups to advertise in custom mode, which currently supports the following option: - ALL_SUBNETS: Advertises all of the router's own VPC subnets. This excludes any routes learned for subnets that use VPC Network Peering. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These groups are advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups.
/// Check the AdvertisedGroups enum for the list of possible values.
#[prost(string, repeated, tag = "21065526")]
pub advertised_groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges.
#[prost(message, repeated, tag = "35449932")]
pub advertised_ip_ranges: ::prost::alloc::vec::Vec<RouterAdvertisedIpRange>,
/// The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win.
#[prost(uint32, optional, tag = "186486332")]
pub advertised_route_priority: ::core::option::Option<u32>,
/// BFD configuration for the BGP peering.
#[prost(message, optional, tag = "97440")]
pub bfd: ::core::option::Option<RouterBgpPeerBfd>,
/// A list of user-defined custom learned route IP address ranges for a BGP session.
#[prost(message, repeated, tag = "481363012")]
pub custom_learned_ip_ranges: ::prost::alloc::vec::Vec<
RouterBgpPeerCustomLearnedIpRange,
>,
/// The user-defined custom learned route priority for a BGP session. This value is applied to all custom learned route ranges for the session. You can choose a value from `0` to `65335`. If you don't provide a value, Google Cloud assigns a priority of `100` to the ranges.
#[prost(int32, optional, tag = "330412356")]
pub custom_learned_route_priority: ::core::option::Option<i32>,
/// The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing information. The default is TRUE.
/// Check the Enable enum for the list of possible values.
#[prost(string, optional, tag = "311764355")]
pub enable: ::core::option::Option<::prost::alloc::string::String>,
/// Enable IPv6 traffic over BGP Peer. If not specified, it is disabled by default.
#[prost(bool, optional, tag = "181467939")]
pub enable_ipv6: ::core::option::Option<bool>,
/// Name of the interface the BGP peer is associated with.
#[prost(string, optional, tag = "437854673")]
pub interface_name: ::core::option::Option<::prost::alloc::string::String>,
/// IP address of the interface inside Google Cloud Platform. Only IPv4 is supported.
#[prost(string, optional, tag = "406272220")]
pub ip_address: ::core::option::Option<::prost::alloc::string::String>,
/// IPv6 address of the interface inside Google Cloud Platform.
#[prost(string, optional, tag = "27968211")]
pub ipv6_nexthop_address: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The resource that configures and manages this BGP peer. - MANAGED_BY_USER is the default value and can be managed by you or other users - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted.
/// Check the ManagementType enum for the list of possible values.
#[prost(string, optional, tag = "173703606")]
pub management_type: ::core::option::Option<::prost::alloc::string::String>,
/// Present if MD5 authentication is enabled for the peering. Must be the name of one of the entries in the Router.md5_authentication_keys. The field must comply with RFC1035.
#[prost(string, optional, tag = "281075345")]
pub md5_authentication_key_name: ::core::option::Option<
::prost::alloc::string::String,
>,
/// Name of this BGP peer. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value.
#[prost(uint32, optional, tag = "69573151")]
pub peer_asn: ::core::option::Option<u32>,
/// IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported.
#[prost(string, optional, tag = "207735769")]
pub peer_ip_address: ::core::option::Option<::prost::alloc::string::String>,
/// IPv6 address of the BGP interface outside Google Cloud Platform.
#[prost(string, optional, tag = "491486608")]
pub peer_ipv6_nexthop_address: ::core::option::Option<
::prost::alloc::string::String,
>,
/// URI of the VM instance that is used as third-party router appliances such as Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance must be located in zones contained in the same region as this Cloud Router. The VM instance is the peer side of the BGP session.
#[prost(string, optional, tag = "468312989")]
pub router_appliance_instance: ::core::option::Option<
::prost::alloc::string::String,
>,
}
/// Nested message and enum types in `RouterBgpPeer`.
pub mod router_bgp_peer {
/// User-specified flag to indicate which mode to use for advertisement.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum AdvertiseMode {
/// A value indicating that the enum field is not set.
UndefinedAdvertiseMode = 0,
Custom = 388595569,
Default = 115302945,
}
impl AdvertiseMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
AdvertiseMode::UndefinedAdvertiseMode => "UNDEFINED_ADVERTISE_MODE",
AdvertiseMode::Custom => "CUSTOM",
AdvertiseMode::Default => "DEFAULT",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ADVERTISE_MODE" => Some(Self::UndefinedAdvertiseMode),
"CUSTOM" => Some(Self::Custom),
"DEFAULT" => Some(Self::Default),
_ => None,
}
}
}
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum AdvertisedGroups {
/// A value indicating that the enum field is not set.
UndefinedAdvertisedGroups = 0,
/// Advertise all available subnets (including peer VPC subnets).
AllSubnets = 3622872,
}
impl AdvertisedGroups {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
AdvertisedGroups::UndefinedAdvertisedGroups => {
"UNDEFINED_ADVERTISED_GROUPS"
}
AdvertisedGroups::AllSubnets => "ALL_SUBNETS",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ADVERTISED_GROUPS" => Some(Self::UndefinedAdvertisedGroups),
"ALL_SUBNETS" => Some(Self::AllSubnets),
_ => None,
}
}
}
/// The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing information. The default is TRUE.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Enable {
/// A value indicating that the enum field is not set.
UndefinedEnable = 0,
False = 66658563,
True = 2583950,
}
impl Enable {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Enable::UndefinedEnable => "UNDEFINED_ENABLE",
Enable::False => "FALSE",
Enable::True => "TRUE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ENABLE" => Some(Self::UndefinedEnable),
"FALSE" => Some(Self::False),
"TRUE" => Some(Self::True),
_ => None,
}
}
}
/// \[Output Only\] The resource that configures and manages this BGP peer. - MANAGED_BY_USER is the default value and can be managed by you or other users - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ManagementType {
/// A value indicating that the enum field is not set.
UndefinedManagementType = 0,
/// The BGP peer is automatically created for PARTNER type InterconnectAttachment; Google will automatically create/delete this BGP peer when the PARTNER InterconnectAttachment is created/deleted, and Google will update the ipAddress and peerIpAddress when the PARTNER InterconnectAttachment is provisioned. This type of BGP peer cannot be created or deleted, but can be modified for all fields except for name, ipAddress and peerIpAddress.
ManagedByAttachment = 458926411,
/// Default value, the BGP peer is manually created and managed by user.
ManagedByUser = 317294067,
}
impl ManagementType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ManagementType::UndefinedManagementType => "UNDEFINED_MANAGEMENT_TYPE",
ManagementType::ManagedByAttachment => "MANAGED_BY_ATTACHMENT",
ManagementType::ManagedByUser => "MANAGED_BY_USER",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_MANAGEMENT_TYPE" => Some(Self::UndefinedManagementType),
"MANAGED_BY_ATTACHMENT" => Some(Self::ManagedByAttachment),
"MANAGED_BY_USER" => Some(Self::ManagedByUser),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterBgpPeerBfd {
/// The minimum interval, in milliseconds, between BFD control packets received from the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the transmit interval of the other router. If set, this value must be between 1000 and 30000. The default is 1000.
#[prost(uint32, optional, tag = "186981614")]
pub min_receive_interval: ::core::option::Option<u32>,
/// The minimum interval, in milliseconds, between BFD control packets transmitted to the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the corresponding receive interval of the other router. If set, this value must be between 1000 and 30000. The default is 1000.
#[prost(uint32, optional, tag = "523282631")]
pub min_transmit_interval: ::core::option::Option<u32>,
/// The number of consecutive BFD packets that must be missed before BFD declares that a peer is unavailable. If set, the value must be a value between 5 and 16. The default is 5.
#[prost(uint32, optional, tag = "191331777")]
pub multiplier: ::core::option::Option<u32>,
/// The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is DISABLED.
/// Check the SessionInitializationMode enum for the list of possible values.
#[prost(string, optional, tag = "105957049")]
pub session_initialization_mode: ::core::option::Option<
::prost::alloc::string::String,
>,
}
/// Nested message and enum types in `RouterBgpPeerBfd`.
pub mod router_bgp_peer_bfd {
/// The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is DISABLED.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum SessionInitializationMode {
/// A value indicating that the enum field is not set.
UndefinedSessionInitializationMode = 0,
Active = 314733318,
Disabled = 516696700,
Passive = 462813959,
}
impl SessionInitializationMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
SessionInitializationMode::UndefinedSessionInitializationMode => {
"UNDEFINED_SESSION_INITIALIZATION_MODE"
}
SessionInitializationMode::Active => "ACTIVE",
SessionInitializationMode::Disabled => "DISABLED",
SessionInitializationMode::Passive => "PASSIVE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_SESSION_INITIALIZATION_MODE" => {
Some(Self::UndefinedSessionInitializationMode)
}
"ACTIVE" => Some(Self::Active),
"DISABLED" => Some(Self::Disabled),
"PASSIVE" => Some(Self::Passive),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterBgpPeerCustomLearnedIpRange {
/// The custom learned route IP address range. Must be a valid CIDR-formatted prefix. If an IP address is provided without a subnet mask, it is interpreted as, for IPv4, a `/32` singular IP address range, and, for IPv6, `/128`.
#[prost(string, optional, tag = "108280125")]
pub range: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterInterface {
/// IP address and range of the interface. The IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface.
#[prost(string, optional, tag = "145092645")]
pub ip_range: ::core::option::Option<::prost::alloc::string::String>,
/// URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a subnetwork.
#[prost(string, optional, tag = "501085518")]
pub linked_interconnect_attachment: ::core::option::Option<
::prost::alloc::string::String,
>,
/// URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a subnetwork.
#[prost(string, optional, tag = "352296953")]
pub linked_vpn_tunnel: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The resource that configures and manages this interface. - MANAGED_BY_USER is the default value and can be managed directly by users. - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted.
/// Check the ManagementType enum for the list of possible values.
#[prost(string, optional, tag = "173703606")]
pub management_type: ::core::option::Option<::prost::alloc::string::String>,
/// Name of this interface entry. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance, such as a Next Gen Firewall, a Virtual Router, or an SD-WAN VM.
#[prost(string, optional, tag = "100854040")]
pub private_ip_address: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the interface that will be redundant with the current interface you are creating. The redundantInterface must belong to the same Cloud Router as the interface here. To establish the BGP session to a Router Appliance VM, you must create two BGP peers. The two BGP peers must be attached to two separate interfaces that are redundant with each other. The redundant_interface must be 1-63 characters long, and comply with RFC1035. Specifically, the redundant_interface must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "523187303")]
pub redundant_interface: ::core::option::Option<::prost::alloc::string::String>,
/// The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here.
#[prost(string, optional, tag = "307827694")]
pub subnetwork: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `RouterInterface`.
pub mod router_interface {
/// \[Output Only\] The resource that configures and manages this interface. - MANAGED_BY_USER is the default value and can be managed directly by users. - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ManagementType {
/// A value indicating that the enum field is not set.
UndefinedManagementType = 0,
/// The interface is automatically created for PARTNER type InterconnectAttachment, Google will automatically create/update/delete this interface when the PARTNER InterconnectAttachment is created/provisioned/deleted. This type of interface cannot be manually managed by user.
ManagedByAttachment = 458926411,
/// Default value, the interface is manually created and managed by user.
ManagedByUser = 317294067,
}
impl ManagementType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ManagementType::UndefinedManagementType => "UNDEFINED_MANAGEMENT_TYPE",
ManagementType::ManagedByAttachment => "MANAGED_BY_ATTACHMENT",
ManagementType::ManagedByUser => "MANAGED_BY_USER",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_MANAGEMENT_TYPE" => Some(Self::UndefinedManagementType),
"MANAGED_BY_ATTACHMENT" => Some(Self::ManagedByAttachment),
"MANAGED_BY_USER" => Some(Self::ManagedByUser),
_ => None,
}
}
}
}
/// Contains a list of Router resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Router resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Router>,
/// \[Output Only\] Type of resource. Always compute#router for routers.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterMd5AuthenticationKey {
/// \[Input only\] Value of the key. For patch and update calls, it can be skipped to copy the value from the previous configuration. This is allowed if the key with the same name existed before the operation. Maximum length is 80 characters. Can only contain printable ASCII characters.
#[prost(string, optional, tag = "106079")]
pub key: ::core::option::Option<::prost::alloc::string::String>,
/// Name used to identify the key. Must be unique within a router. Must be referenced by exactly one bgpPeer. Must comply with RFC1035.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a Nat resource. It enables the VMs within the specified subnetworks to access Internet without external IP addresses. It specifies a list of subnetworks (and the ranges within) that want to use NAT. Customers can also provide the external IPs that would be used for NAT. GCP would auto-allocate ephemeral IPs if no external IPs are provided.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterNat {
/// The network tier to use when automatically reserving NAT IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, then the current project-level default tier is used.
/// Check the AutoNetworkTier enum for the list of possible values.
#[prost(string, optional, tag = "269770211")]
pub auto_network_tier: ::core::option::Option<::prost::alloc::string::String>,
/// A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only.
#[prost(string, repeated, tag = "504078535")]
pub drain_nat_ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Enable Dynamic Port Allocation. If not specified, it is disabled by default. If set to true, - Dynamic Port Allocation will be enabled on this NAT config. - enableEndpointIndependentMapping cannot be set to true. - If minPorts is set, minPortsPerVm must be set to a power of two greater than or equal to 32. If minPortsPerVm is not set, a minimum of 32 ports will be allocated to a VM from this NAT config.
#[prost(bool, optional, tag = "532106402")]
pub enable_dynamic_port_allocation: ::core::option::Option<bool>,
#[prost(bool, optional, tag = "259441819")]
pub enable_endpoint_independent_mapping: ::core::option::Option<bool>,
/// List of NAT-ted endpoint types supported by the Nat Gateway. If the list is empty, then it will be equivalent to include ENDPOINT_TYPE_VM
/// Check the EndpointTypes enum for the list of possible values.
#[prost(string, repeated, tag = "502633807")]
pub endpoint_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.
#[prost(int32, optional, tag = "3647562")]
pub icmp_idle_timeout_sec: ::core::option::Option<i32>,
/// Configure logging on this NAT.
#[prost(message, optional, tag = "351299741")]
pub log_config: ::core::option::Option<RouterNatLogConfig>,
/// Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled. If Dynamic Port Allocation is not enabled, this field has no effect. If Dynamic Port Allocation is enabled, and this field is set, it must be set to a power of two greater than minPortsPerVm, or 64 if minPortsPerVm is not set. If Dynamic Port Allocation is enabled and this field is not set, a maximum of 65536 ports will be allocated to a VM from this NAT config.
#[prost(int32, optional, tag = "250062049")]
pub max_ports_per_vm: ::core::option::Option<i32>,
/// Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the value of this field is 50, at least 64 ports are allocated to a VM.
#[prost(int32, optional, tag = "186193587")]
pub min_ports_per_vm: ::core::option::Option<i32>,
/// Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty.
/// Check the NatIpAllocateOption enum for the list of possible values.
#[prost(string, optional, tag = "429726845")]
pub nat_ip_allocate_option: ::core::option::Option<::prost::alloc::string::String>,
/// A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project.
#[prost(string, repeated, tag = "117635086")]
pub nat_ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// A list of rules associated with this NAT.
#[prost(message, repeated, tag = "108873975")]
pub rules: ::prost::alloc::vec::Vec<RouterNatRule>,
/// Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES then there should not be any other Router.Nat section in any Router for this network in this region.
/// Check the SourceSubnetworkIpRangesToNat enum for the list of possible values.
#[prost(string, optional, tag = "252213211")]
pub source_subnetwork_ip_ranges_to_nat: ::core::option::Option<
::prost::alloc::string::String,
>,
/// A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above.
#[prost(message, repeated, tag = "415853125")]
pub subnetworks: ::prost::alloc::vec::Vec<RouterNatSubnetworkToNat>,
/// Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set.
#[prost(int32, optional, tag = "223098349")]
pub tcp_established_idle_timeout_sec: ::core::option::Option<i32>,
/// Timeout (in seconds) for TCP connections that are in TIME_WAIT state. Defaults to 120s if not set.
#[prost(int32, optional, tag = "513596925")]
pub tcp_time_wait_timeout_sec: ::core::option::Option<i32>,
/// Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set.
#[prost(int32, optional, tag = "205028774")]
pub tcp_transitory_idle_timeout_sec: ::core::option::Option<i32>,
/// Indicates whether this NAT is used for public or private IP translation. If unspecified, it defaults to PUBLIC.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
/// Timeout (in seconds) for UDP connections. Defaults to 30s if not set.
#[prost(int32, optional, tag = "64919878")]
pub udp_idle_timeout_sec: ::core::option::Option<i32>,
}
/// Nested message and enum types in `RouterNat`.
pub mod router_nat {
/// The network tier to use when automatically reserving NAT IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, then the current project-level default tier is used.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum AutoNetworkTier {
/// A value indicating that the enum field is not set.
UndefinedAutoNetworkTier = 0,
/// Public internet quality with fixed bandwidth.
FixedStandard = 310464328,
/// High quality, Google-grade network tier, support for all networking products.
Premium = 399530551,
/// Public internet quality, only limited support for other networking products.
Standard = 484642493,
/// (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier is expired or not configured.
StandardOverridesFixedStandard = 465847234,
}
impl AutoNetworkTier {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
AutoNetworkTier::UndefinedAutoNetworkTier => {
"UNDEFINED_AUTO_NETWORK_TIER"
}
AutoNetworkTier::FixedStandard => "FIXED_STANDARD",
AutoNetworkTier::Premium => "PREMIUM",
AutoNetworkTier::Standard => "STANDARD",
AutoNetworkTier::StandardOverridesFixedStandard => {
"STANDARD_OVERRIDES_FIXED_STANDARD"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_AUTO_NETWORK_TIER" => Some(Self::UndefinedAutoNetworkTier),
"FIXED_STANDARD" => Some(Self::FixedStandard),
"PREMIUM" => Some(Self::Premium),
"STANDARD" => Some(Self::Standard),
"STANDARD_OVERRIDES_FIXED_STANDARD" => {
Some(Self::StandardOverridesFixedStandard)
}
_ => None,
}
}
}
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum EndpointTypes {
/// A value indicating that the enum field is not set.
UndefinedEndpointTypes = 0,
/// This is used for regional Application Load Balancers (internal and external) and regional proxy Network Load Balancers (internal and external) endpoints.
EndpointTypeManagedProxyLb = 439196930,
/// This is used for Secure Web Gateway endpoints.
EndpointTypeSwg = 159344456,
/// This is the default.
EndpointTypeVm = 57095474,
}
impl EndpointTypes {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
EndpointTypes::UndefinedEndpointTypes => "UNDEFINED_ENDPOINT_TYPES",
EndpointTypes::EndpointTypeManagedProxyLb => {
"ENDPOINT_TYPE_MANAGED_PROXY_LB"
}
EndpointTypes::EndpointTypeSwg => "ENDPOINT_TYPE_SWG",
EndpointTypes::EndpointTypeVm => "ENDPOINT_TYPE_VM",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ENDPOINT_TYPES" => Some(Self::UndefinedEndpointTypes),
"ENDPOINT_TYPE_MANAGED_PROXY_LB" => {
Some(Self::EndpointTypeManagedProxyLb)
}
"ENDPOINT_TYPE_SWG" => Some(Self::EndpointTypeSwg),
"ENDPOINT_TYPE_VM" => Some(Self::EndpointTypeVm),
_ => None,
}
}
}
/// Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum NatIpAllocateOption {
/// A value indicating that the enum field is not set.
UndefinedNatIpAllocateOption = 0,
/// Nat IPs are allocated by GCP; customers can not specify any Nat IPs.
AutoOnly = 182333500,
/// Only use Nat IPs provided by customers. When specified Nat IPs are not enough then the Nat service fails for new VMs.
ManualOnly = 261251205,
}
impl NatIpAllocateOption {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
NatIpAllocateOption::UndefinedNatIpAllocateOption => {
"UNDEFINED_NAT_IP_ALLOCATE_OPTION"
}
NatIpAllocateOption::AutoOnly => "AUTO_ONLY",
NatIpAllocateOption::ManualOnly => "MANUAL_ONLY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_NAT_IP_ALLOCATE_OPTION" => {
Some(Self::UndefinedNatIpAllocateOption)
}
"AUTO_ONLY" => Some(Self::AutoOnly),
"MANUAL_ONLY" => Some(Self::ManualOnly),
_ => None,
}
}
}
/// Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES then there should not be any other Router.Nat section in any Router for this network in this region.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum SourceSubnetworkIpRangesToNat {
/// A value indicating that the enum field is not set.
UndefinedSourceSubnetworkIpRangesToNat = 0,
/// All the IP ranges in every Subnetwork are allowed to Nat.
AllSubnetworksAllIpRanges = 179964376,
/// All the primary IP ranges in every Subnetwork are allowed to Nat.
AllSubnetworksAllPrimaryIpRanges = 185573819,
/// A list of Subnetworks are allowed to Nat (specified in the field subnetwork below)
ListOfSubnetworks = 517542270,
}
impl SourceSubnetworkIpRangesToNat {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
SourceSubnetworkIpRangesToNat::UndefinedSourceSubnetworkIpRangesToNat => {
"UNDEFINED_SOURCE_SUBNETWORK_IP_RANGES_TO_NAT"
}
SourceSubnetworkIpRangesToNat::AllSubnetworksAllIpRanges => {
"ALL_SUBNETWORKS_ALL_IP_RANGES"
}
SourceSubnetworkIpRangesToNat::AllSubnetworksAllPrimaryIpRanges => {
"ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES"
}
SourceSubnetworkIpRangesToNat::ListOfSubnetworks => "LIST_OF_SUBNETWORKS",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_SOURCE_SUBNETWORK_IP_RANGES_TO_NAT" => {
Some(Self::UndefinedSourceSubnetworkIpRangesToNat)
}
"ALL_SUBNETWORKS_ALL_IP_RANGES" => Some(Self::AllSubnetworksAllIpRanges),
"ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES" => {
Some(Self::AllSubnetworksAllPrimaryIpRanges)
}
"LIST_OF_SUBNETWORKS" => Some(Self::ListOfSubnetworks),
_ => None,
}
}
}
/// Indicates whether this NAT is used for public or private IP translation. If unspecified, it defaults to PUBLIC.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
/// NAT used for private IP translation.
Private = 403485027,
/// NAT used for public IP translation. This is the default.
Public = 223389289,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::Private => "PRIVATE",
Type::Public => "PUBLIC",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"PRIVATE" => Some(Self::Private),
"PUBLIC" => Some(Self::Public),
_ => None,
}
}
}
}
/// Configuration of logging on a NAT.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterNatLogConfig {
/// Indicates whether or not to export logs. This is false by default.
#[prost(bool, optional, tag = "311764355")]
pub enable: ::core::option::Option<bool>,
/// Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values: - ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only for successful connections. - ALL: Export logs for all connections, successful and unsuccessful.
/// Check the Filter enum for the list of possible values.
#[prost(string, optional, tag = "336120696")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `RouterNatLogConfig`.
pub mod router_nat_log_config {
/// Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values: - ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only for successful connections. - ALL: Export logs for all connections, successful and unsuccessful.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Filter {
/// A value indicating that the enum field is not set.
UndefinedFilter = 0,
/// Export logs for all (successful and unsuccessful) connections.
All = 64897,
/// Export logs for connection failures only.
ErrorsOnly = 307484672,
/// Export logs for successful connections only.
TranslationsOnly = 357212649,
}
impl Filter {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Filter::UndefinedFilter => "UNDEFINED_FILTER",
Filter::All => "ALL",
Filter::ErrorsOnly => "ERRORS_ONLY",
Filter::TranslationsOnly => "TRANSLATIONS_ONLY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_FILTER" => Some(Self::UndefinedFilter),
"ALL" => Some(Self::All),
"ERRORS_ONLY" => Some(Self::ErrorsOnly),
"TRANSLATIONS_ONLY" => Some(Self::TranslationsOnly),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterNatRule {
/// The action to be enforced for traffic that matches this rule.
#[prost(message, optional, tag = "187661878")]
pub action: ::core::option::Option<RouterNatRuleAction>,
/// An optional description of this rule.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// CEL expression that specifies the match condition that egress traffic from a VM is evaluated against. If it evaluates to true, the corresponding `action` is enforced. The following examples are valid match expressions for public NAT: "inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')" "destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'" The following example is a valid match expression for private NAT: "nexthop.hub == '//networkconnectivity.googleapis.com/projects/my-project/locations/global/hubs/hub-1'"
#[prost(string, optional, tag = "103668165")]
pub r#match: ::core::option::Option<::prost::alloc::string::String>,
/// An integer uniquely identifying a rule in the list. The rule number must be a positive value between 0 and 65000, and must be unique among rules within a NAT.
#[prost(uint32, optional, tag = "535211500")]
pub rule_number: ::core::option::Option<u32>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterNatRuleAction {
/// A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid static external IP addresses assigned to the project. This field is used for public NAT.
#[prost(string, repeated, tag = "210378229")]
pub source_nat_active_ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT. This field is used for private NAT.
#[prost(string, repeated, tag = "190556269")]
pub source_nat_active_ranges: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule only. This field is used for public NAT.
#[prost(string, repeated, tag = "340812451")]
pub source_nat_drain_ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// A list of URLs of subnetworks representing source ranges to be drained. This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule. This field is used for private NAT.
#[prost(string, repeated, tag = "84802815")]
pub source_nat_drain_ranges: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
}
/// Defines the IP ranges that want to use NAT for a subnetwork.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterNatSubnetworkToNat {
/// URL for the subnetwork resource that will use NAT.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat.
#[prost(string, repeated, tag = "264315097")]
pub secondary_ip_range_names: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: \["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"\] Default: \[ALL_IP_RANGES\]
/// Check the SourceIpRangesToNat enum for the list of possible values.
#[prost(string, repeated, tag = "388310386")]
pub source_ip_ranges_to_nat: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
}
/// Nested message and enum types in `RouterNatSubnetworkToNat`.
pub mod router_nat_subnetwork_to_nat {
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum SourceIpRangesToNat {
/// A value indicating that the enum field is not set.
UndefinedSourceIpRangesToNat = 0,
/// The primary and all the secondary ranges are allowed to Nat.
AllIpRanges = 35608496,
/// A list of secondary ranges are allowed to Nat.
ListOfSecondaryIpRanges = 192289308,
/// The primary range is allowed to Nat.
PrimaryIpRange = 297109954,
}
impl SourceIpRangesToNat {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
SourceIpRangesToNat::UndefinedSourceIpRangesToNat => {
"UNDEFINED_SOURCE_IP_RANGES_TO_NAT"
}
SourceIpRangesToNat::AllIpRanges => "ALL_IP_RANGES",
SourceIpRangesToNat::ListOfSecondaryIpRanges => {
"LIST_OF_SECONDARY_IP_RANGES"
}
SourceIpRangesToNat::PrimaryIpRange => "PRIMARY_IP_RANGE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_SOURCE_IP_RANGES_TO_NAT" => {
Some(Self::UndefinedSourceIpRangesToNat)
}
"ALL_IP_RANGES" => Some(Self::AllIpRanges),
"LIST_OF_SECONDARY_IP_RANGES" => Some(Self::ListOfSecondaryIpRanges),
"PRIMARY_IP_RANGE" => Some(Self::PrimaryIpRange),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterStatus {
/// Best routes for this router's network.
#[prost(message, repeated, tag = "395826693")]
pub best_routes: ::prost::alloc::vec::Vec<Route>,
/// Best routes learned by this router.
#[prost(message, repeated, tag = "119389689")]
pub best_routes_for_router: ::prost::alloc::vec::Vec<Route>,
#[prost(message, repeated, tag = "218459131")]
pub bgp_peer_status: ::prost::alloc::vec::Vec<RouterStatusBgpPeerStatus>,
#[prost(message, repeated, tag = "63098064")]
pub nat_status: ::prost::alloc::vec::Vec<RouterStatusNatStatus>,
/// URI of the network to which this router belongs.
#[prost(string, optional, tag = "232872494")]
pub network: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterStatusBgpPeerStatus {
/// Routes that were advertised to the remote BGP peer
#[prost(message, repeated, tag = "333393068")]
pub advertised_routes: ::prost::alloc::vec::Vec<Route>,
#[prost(message, optional, tag = "395631729")]
pub bfd_status: ::core::option::Option<BfdStatus>,
/// Enable IPv6 traffic over BGP Peer. If not specified, it is disabled by default.
#[prost(bool, optional, tag = "181467939")]
pub enable_ipv6: ::core::option::Option<bool>,
/// IP address of the local BGP interface.
#[prost(string, optional, tag = "406272220")]
pub ip_address: ::core::option::Option<::prost::alloc::string::String>,
/// IPv6 address of the local BGP interface.
#[prost(string, optional, tag = "27968211")]
pub ipv6_nexthop_address: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the VPN tunnel that this BGP peer controls.
#[prost(string, optional, tag = "352296953")]
pub linked_vpn_tunnel: ::core::option::Option<::prost::alloc::string::String>,
/// Informs whether MD5 authentication is enabled on this BGP peer.
#[prost(bool, optional, tag = "451152075")]
pub md5_auth_enabled: ::core::option::Option<bool>,
/// Name of this BGP peer. Unique within the Routers resource.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Number of routes learned from the remote BGP Peer.
#[prost(uint32, optional, tag = "135457535")]
pub num_learned_routes: ::core::option::Option<u32>,
/// IP address of the remote BGP interface.
#[prost(string, optional, tag = "207735769")]
pub peer_ip_address: ::core::option::Option<::prost::alloc::string::String>,
/// IPv6 address of the remote BGP interface.
#[prost(string, optional, tag = "491486608")]
pub peer_ipv6_nexthop_address: ::core::option::Option<
::prost::alloc::string::String,
>,
/// \[Output only\] URI of the VM instance that is used as third-party router appliances such as Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance is the peer side of the BGP session.
#[prost(string, optional, tag = "468312989")]
pub router_appliance_instance: ::core::option::Option<
::prost::alloc::string::String,
>,
/// The state of the BGP session. For a list of possible values for this field, see BGP session states.
#[prost(string, optional, tag = "109757585")]
pub state: ::core::option::Option<::prost::alloc::string::String>,
/// Status of the BGP peer: {UP, DOWN}
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates why particular status was returned.
/// Check the StatusReason enum for the list of possible values.
#[prost(string, optional, tag = "342706993")]
pub status_reason: ::core::option::Option<::prost::alloc::string::String>,
/// Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds
#[prost(string, optional, tag = "235379688")]
pub uptime: ::core::option::Option<::prost::alloc::string::String>,
/// Time this session has been up, in seconds. Format: 145
#[prost(string, optional, tag = "104736040")]
pub uptime_seconds: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `RouterStatusBgpPeerStatus`.
pub mod router_status_bgp_peer_status {
/// Status of the BGP peer: {UP, DOWN}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
Down = 2104482,
Unknown = 433141802,
Up = 2715,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Down => "DOWN",
Status::Unknown => "UNKNOWN",
Status::Up => "UP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"DOWN" => Some(Self::Down),
"UNKNOWN" => Some(Self::Unknown),
"UP" => Some(Self::Up),
_ => None,
}
}
}
/// Indicates why particular status was returned.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum StatusReason {
/// A value indicating that the enum field is not set.
UndefinedStatusReason = 0,
/// Indicates internal problems with configuration of MD5 authentication. This particular reason can only be returned when md5AuthEnabled is true and status is DOWN.
Md5AuthInternalProblem = 140462259,
Unspecified = 394331913,
}
impl StatusReason {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
StatusReason::UndefinedStatusReason => "UNDEFINED_STATUS_REASON",
StatusReason::Md5AuthInternalProblem => "MD5_AUTH_INTERNAL_PROBLEM",
StatusReason::Unspecified => "STATUS_REASON_UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS_REASON" => Some(Self::UndefinedStatusReason),
"MD5_AUTH_INTERNAL_PROBLEM" => Some(Self::Md5AuthInternalProblem),
"STATUS_REASON_UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
/// Status of a NAT contained in this router.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterStatusNatStatus {
/// A list of IPs auto-allocated for NAT. Example: \["1.1.1.1", "129.2.16.89"\]
#[prost(string, repeated, tag = "510794246")]
pub auto_allocated_nat_ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// A list of IPs auto-allocated for NAT that are in drain mode. Example: \["1.1.1.1", "179.12.26.133"\].
#[prost(string, repeated, tag = "309184557")]
pub drain_auto_allocated_nat_ips: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// A list of IPs user-allocated for NAT that are in drain mode. Example: \["1.1.1.1", "179.12.26.133"\].
#[prost(string, repeated, tag = "305268553")]
pub drain_user_allocated_nat_ips: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// The number of extra IPs to allocate. This will be greater than 0 only if user-specified IPs are NOT enough to allow all configured VMs to use NAT. This value is meaningful only when auto-allocation of NAT IPs is *not* used.
#[prost(int32, optional, tag = "365786338")]
pub min_extra_nat_ips_needed: ::core::option::Option<i32>,
/// Unique name of this NAT.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Number of VM endpoints (i.e., Nics) that can use NAT.
#[prost(int32, optional, tag = "512367468")]
pub num_vm_endpoints_with_nat_mappings: ::core::option::Option<i32>,
/// Status of rules in this NAT.
#[prost(message, repeated, tag = "140223125")]
pub rule_status: ::prost::alloc::vec::Vec<RouterStatusNatStatusNatRuleStatus>,
/// A list of fully qualified URLs of reserved IP address resources.
#[prost(string, repeated, tag = "212776151")]
pub user_allocated_nat_ip_resources: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133".
#[prost(string, repeated, tag = "506878242")]
pub user_allocated_nat_ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Status of a NAT Rule contained in this NAT.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterStatusNatStatusNatRuleStatus {
/// A list of active IPs for NAT. Example: \["1.1.1.1", "179.12.26.133"\].
#[prost(string, repeated, tag = "208517077")]
pub active_nat_ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// A list of IPs for NAT that are in drain mode. Example: \["1.1.1.1", "179.12.26.133"\].
#[prost(string, repeated, tag = "504078535")]
pub drain_nat_ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The number of extra IPs to allocate. This will be greater than 0 only if the existing IPs in this NAT Rule are NOT enough to allow all configured VMs to use NAT.
#[prost(int32, optional, tag = "353002756")]
pub min_extra_ips_needed: ::core::option::Option<i32>,
/// Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule.
#[prost(int32, optional, tag = "512367468")]
pub num_vm_endpoints_with_nat_mappings: ::core::option::Option<i32>,
/// Rule number of the rule.
#[prost(int32, optional, tag = "535211500")]
pub rule_number: ::core::option::Option<i32>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterStatusResponse {
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "139315229")]
pub result: ::core::option::Option<RouterStatus>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RoutersPreviewResponse {
/// Preview of given router.
#[prost(message, optional, tag = "195806222")]
pub resource: ::core::option::Option<Router>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RoutersScopedList {
/// A list of routers contained in this scope.
#[prost(message, repeated, tag = "311906890")]
pub routers: ::prost::alloc::vec::Vec<Router>,
/// Informational warning which replaces the list of routers when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// This is deprecated and has no effect. Do not use.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Rule {
/// This is deprecated and has no effect. Do not use.
/// Check the Action enum for the list of possible values.
#[prost(string, optional, tag = "187661878")]
pub action: ::core::option::Option<::prost::alloc::string::String>,
/// This is deprecated and has no effect. Do not use.
#[prost(message, repeated, tag = "142882488")]
pub conditions: ::prost::alloc::vec::Vec<Condition>,
/// This is deprecated and has no effect. Do not use.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// This is deprecated and has no effect. Do not use.
#[prost(string, repeated, tag = "104430")]
pub ins: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// This is deprecated and has no effect. Do not use.
#[prost(message, repeated, tag = "152873846")]
pub log_configs: ::prost::alloc::vec::Vec<LogConfig>,
/// This is deprecated and has no effect. Do not use.
#[prost(string, repeated, tag = "518443138")]
pub not_ins: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// This is deprecated and has no effect. Do not use.
#[prost(string, repeated, tag = "59962500")]
pub permissions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Rule`.
pub mod rule {
/// This is deprecated and has no effect. Do not use.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Action {
/// A value indicating that the enum field is not set.
UndefinedAction = 0,
/// This is deprecated and has no effect. Do not use.
Allow = 62368553,
/// This is deprecated and has no effect. Do not use.
AllowWithLog = 76034177,
/// This is deprecated and has no effect. Do not use.
Deny = 2094604,
/// This is deprecated and has no effect. Do not use.
DenyWithLog = 351433982,
/// This is deprecated and has no effect. Do not use.
Log = 75556,
/// This is deprecated and has no effect. Do not use.
NoAction = 260643444,
}
impl Action {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Action::UndefinedAction => "UNDEFINED_ACTION",
Action::Allow => "ALLOW",
Action::AllowWithLog => "ALLOW_WITH_LOG",
Action::Deny => "DENY",
Action::DenyWithLog => "DENY_WITH_LOG",
Action::Log => "LOG",
Action::NoAction => "NO_ACTION",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ACTION" => Some(Self::UndefinedAction),
"ALLOW" => Some(Self::Allow),
"ALLOW_WITH_LOG" => Some(Self::AllowWithLog),
"DENY" => Some(Self::Deny),
"DENY_WITH_LOG" => Some(Self::DenyWithLog),
"LOG" => Some(Self::Log),
"NO_ACTION" => Some(Self::NoAction),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SslHealthCheck {
/// The TCP port number to which the health check prober sends packets. The default value is 443. Valid values are 1 through 65535.
#[prost(int32, optional, tag = "3446913")]
pub port: ::core::option::Option<i32>,
/// Not supported.
#[prost(string, optional, tag = "41534345")]
pub port_name: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports.
/// Check the PortSpecification enum for the list of possible values.
#[prost(string, optional, tag = "51590597")]
pub port_specification: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
/// Check the ProxyHeader enum for the list of possible values.
#[prost(string, optional, tag = "160374142")]
pub proxy_header: ::core::option::Option<::prost::alloc::string::String>,
/// Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, after establishing the TCP connection and SSL handshake.
#[prost(string, optional, tag = "21951119")]
pub request: ::core::option::Option<::prost::alloc::string::String>,
/// Creates a content-based SSL health check. In addition to establishing a TCP connection and the TLS handshake, you can configure the health check to pass only when the backend sends this exact response ASCII string, up to 1024 bytes in length. For details, see: <https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp>
#[prost(string, optional, tag = "196547649")]
pub response: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `SSLHealthCheck`.
pub mod ssl_health_check {
/// Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum PortSpecification {
/// A value indicating that the enum field is not set.
UndefinedPortSpecification = 0,
/// The port number in the health check's port is used for health checking. Applies to network endpoint group and instance group backends.
UseFixedPort = 190235748,
/// Not supported.
UseNamedPort = 349300671,
/// For network endpoint group backends, the health check uses the port number specified on each endpoint in the network endpoint group. For instance group backends, the health check uses the port number specified for the backend service's named port defined in the instance group's named ports.
UseServingPort = 362637516,
}
impl PortSpecification {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
PortSpecification::UndefinedPortSpecification => {
"UNDEFINED_PORT_SPECIFICATION"
}
PortSpecification::UseFixedPort => "USE_FIXED_PORT",
PortSpecification::UseNamedPort => "USE_NAMED_PORT",
PortSpecification::UseServingPort => "USE_SERVING_PORT",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PORT_SPECIFICATION" => Some(Self::UndefinedPortSpecification),
"USE_FIXED_PORT" => Some(Self::UseFixedPort),
"USE_NAMED_PORT" => Some(Self::UseNamedPort),
"USE_SERVING_PORT" => Some(Self::UseServingPort),
_ => None,
}
}
}
/// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ProxyHeader {
/// A value indicating that the enum field is not set.
UndefinedProxyHeader = 0,
None = 2402104,
ProxyV1 = 334352940,
}
impl ProxyHeader {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ProxyHeader::UndefinedProxyHeader => "UNDEFINED_PROXY_HEADER",
ProxyHeader::None => "NONE",
ProxyHeader::ProxyV1 => "PROXY_V1",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PROXY_HEADER" => Some(Self::UndefinedProxyHeader),
"NONE" => Some(Self::None),
"PROXY_V1" => Some(Self::ProxyV1),
_ => None,
}
}
}
}
/// DEPRECATED: Please use compute#savedDisk instead. An instance-attached disk resource.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SavedAttachedDisk {
/// Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
#[prost(bool, optional, tag = "464761403")]
pub auto_delete: ::core::option::Option<bool>,
/// Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
#[prost(bool, optional, tag = "3029746")]
pub boot: ::core::option::Option<bool>,
/// Specifies the name of the disk attached to the source instance.
#[prost(string, optional, tag = "67541716")]
pub device_name: ::core::option::Option<::prost::alloc::string::String>,
/// The encryption key for the disk.
#[prost(message, optional, tag = "271660677")]
pub disk_encryption_key: ::core::option::Option<CustomerEncryptionKey>,
/// The size of the disk in base-2 GB.
#[prost(int64, optional, tag = "316263735")]
pub disk_size_gb: ::core::option::Option<i64>,
/// \[Output Only\] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd
#[prost(string, optional, tag = "93009052")]
pub disk_type: ::core::option::Option<::prost::alloc::string::String>,
/// A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
#[prost(message, repeated, tag = "79294545")]
pub guest_os_features: ::prost::alloc::vec::Vec<GuestOsFeature>,
/// Specifies zero-based index of the disk that is attached to the source instance.
#[prost(int32, optional, tag = "100346066")]
pub index: ::core::option::Option<i32>,
/// Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.
/// Check the Interface enum for the list of possible values.
#[prost(string, optional, tag = "502623545")]
pub interface: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Type of the resource. Always compute#attachedDisk for attached disks.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Any valid publicly visible licenses.
#[prost(string, repeated, tag = "337642578")]
pub licenses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.
/// Check the Mode enum for the list of possible values.
#[prost(string, optional, tag = "3357091")]
pub mode: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a URL of the disk attached to the source instance.
#[prost(string, optional, tag = "177235995")]
pub source: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A size of the storage used by the disk's snapshot by this machine image.
#[prost(int64, optional, tag = "424631719")]
pub storage_bytes: ::core::option::Option<i64>,
/// \[Output Only\] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
/// Check the StorageBytesStatus enum for the list of possible values.
#[prost(string, optional, tag = "490739082")]
pub storage_bytes_status: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the type of the attached disk, either SCRATCH or PERSISTENT.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `SavedAttachedDisk`.
pub mod saved_attached_disk {
/// Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Interface {
/// A value indicating that the enum field is not set.
UndefinedInterface = 0,
Nvme = 2408800,
Scsi = 2539686,
}
impl Interface {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Interface::UndefinedInterface => "UNDEFINED_INTERFACE",
Interface::Nvme => "NVME",
Interface::Scsi => "SCSI",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_INTERFACE" => Some(Self::UndefinedInterface),
"NVME" => Some(Self::Nvme),
"SCSI" => Some(Self::Scsi),
_ => None,
}
}
}
/// The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Mode {
/// A value indicating that the enum field is not set.
UndefinedMode = 0,
/// Attaches this disk in read-only mode. Multiple virtual machines can use a disk in read-only mode at a time.
ReadOnly = 91950261,
/// *\[Default\]* Attaches this disk in read-write mode. Only one virtual machine at a time can be attached to a disk in read-write mode.
ReadWrite = 173607894,
}
impl Mode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Mode::UndefinedMode => "UNDEFINED_MODE",
Mode::ReadOnly => "READ_ONLY",
Mode::ReadWrite => "READ_WRITE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_MODE" => Some(Self::UndefinedMode),
"READ_ONLY" => Some(Self::ReadOnly),
"READ_WRITE" => Some(Self::ReadWrite),
_ => None,
}
}
}
/// \[Output Only\] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum StorageBytesStatus {
/// A value indicating that the enum field is not set.
UndefinedStorageBytesStatus = 0,
Updating = 494614342,
UpToDate = 101306702,
}
impl StorageBytesStatus {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
StorageBytesStatus::UndefinedStorageBytesStatus => {
"UNDEFINED_STORAGE_BYTES_STATUS"
}
StorageBytesStatus::Updating => "UPDATING",
StorageBytesStatus::UpToDate => "UP_TO_DATE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STORAGE_BYTES_STATUS" => {
Some(Self::UndefinedStorageBytesStatus)
}
"UPDATING" => Some(Self::Updating),
"UP_TO_DATE" => Some(Self::UpToDate),
_ => None,
}
}
}
/// Specifies the type of the attached disk, either SCRATCH or PERSISTENT.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
Persistent = 460683927,
Scratch = 496778970,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::Persistent => "PERSISTENT",
Type::Scratch => "SCRATCH",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"PERSISTENT" => Some(Self::Persistent),
"SCRATCH" => Some(Self::Scratch),
_ => None,
}
}
}
}
/// An instance-attached disk resource.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SavedDisk {
/// \[Output Only\] The architecture of the attached disk.
/// Check the Architecture enum for the list of possible values.
#[prost(string, optional, tag = "302803283")]
pub architecture: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Type of the resource. Always compute#savedDisk for attached disks.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a URL of the disk attached to the source instance.
#[prost(string, optional, tag = "451753793")]
pub source_disk: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Size of the individual disk snapshot used by this machine image.
#[prost(int64, optional, tag = "424631719")]
pub storage_bytes: ::core::option::Option<i64>,
/// \[Output Only\] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
/// Check the StorageBytesStatus enum for the list of possible values.
#[prost(string, optional, tag = "490739082")]
pub storage_bytes_status: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `SavedDisk`.
pub mod saved_disk {
/// \[Output Only\] The architecture of the attached disk.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Architecture {
/// A value indicating that the enum field is not set.
UndefinedArchitecture = 0,
/// Default value indicating Architecture is not set.
Unspecified = 394750507,
/// Machines with architecture ARM64
Arm64 = 62547450,
/// Machines with architecture X86_64
X8664 = 425300551,
}
impl Architecture {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Architecture::UndefinedArchitecture => "UNDEFINED_ARCHITECTURE",
Architecture::Unspecified => "ARCHITECTURE_UNSPECIFIED",
Architecture::Arm64 => "ARM64",
Architecture::X8664 => "X86_64",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ARCHITECTURE" => Some(Self::UndefinedArchitecture),
"ARCHITECTURE_UNSPECIFIED" => Some(Self::Unspecified),
"ARM64" => Some(Self::Arm64),
"X86_64" => Some(Self::X8664),
_ => None,
}
}
}
/// \[Output Only\] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum StorageBytesStatus {
/// A value indicating that the enum field is not set.
UndefinedStorageBytesStatus = 0,
Updating = 494614342,
UpToDate = 101306702,
}
impl StorageBytesStatus {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
StorageBytesStatus::UndefinedStorageBytesStatus => {
"UNDEFINED_STORAGE_BYTES_STATUS"
}
StorageBytesStatus::Updating => "UPDATING",
StorageBytesStatus::UpToDate => "UP_TO_DATE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STORAGE_BYTES_STATUS" => {
Some(Self::UndefinedStorageBytesStatus)
}
"UPDATING" => Some(Self::Updating),
"UP_TO_DATE" => Some(Self::UpToDate),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ScalingScheduleStatus {
/// \[Output Only\] The last time the scaling schedule became active. Note: this is a timestamp when a schedule actually became active, not when it was planned to do so. The timestamp is in RFC3339 text format.
#[prost(string, optional, tag = "34545107")]
pub last_start_time: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The next time the scaling schedule is to become active. Note: this is a timestamp when a schedule is planned to run, but the actual time might be slightly different. The timestamp is in RFC3339 text format.
#[prost(string, optional, tag = "97270102")]
pub next_start_time: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The current state of a scaling schedule.
/// Check the State enum for the list of possible values.
#[prost(string, optional, tag = "109757585")]
pub state: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `ScalingScheduleStatus`.
pub mod scaling_schedule_status {
/// \[Output Only\] The current state of a scaling schedule.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// A value indicating that the enum field is not set.
UndefinedState = 0,
/// The current autoscaling recommendation is influenced by this scaling schedule.
Active = 314733318,
/// This scaling schedule has been disabled by the user.
Disabled = 516696700,
/// This scaling schedule will never become active again.
Obsolete = 66532761,
/// The current autoscaling recommendation is not influenced by this scaling schedule.
Ready = 77848963,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::UndefinedState => "UNDEFINED_STATE",
State::Active => "ACTIVE",
State::Disabled => "DISABLED",
State::Obsolete => "OBSOLETE",
State::Ready => "READY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATE" => Some(Self::UndefinedState),
"ACTIVE" => Some(Self::Active),
"DISABLED" => Some(Self::Disabled),
"OBSOLETE" => Some(Self::Obsolete),
"READY" => Some(Self::Ready),
_ => None,
}
}
}
}
/// Sets the scheduling options for an Instance.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Scheduling {
/// Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.
#[prost(bool, optional, tag = "350821371")]
pub automatic_restart: ::core::option::Option<bool>,
/// Specifies the termination action for the instance.
/// Check the InstanceTerminationAction enum for the list of possible values.
#[prost(string, optional, tag = "107380667")]
pub instance_termination_action: ::core::option::Option<
::prost::alloc::string::String,
>,
/// Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
#[prost(message, optional, tag = "268015590")]
pub local_ssd_recovery_timeout: ::core::option::Option<Duration>,
/// An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.
#[prost(string, optional, tag = "350519505")]
pub location_hint: ::core::option::Option<::prost::alloc::string::String>,
/// The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
#[prost(int32, optional, tag = "317231675")]
pub min_node_cpus: ::core::option::Option<i32>,
/// A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
#[prost(message, repeated, tag = "461799971")]
pub node_affinities: ::prost::alloc::vec::Vec<SchedulingNodeAffinity>,
/// Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy.
/// Check the OnHostMaintenance enum for the list of possible values.
#[prost(string, optional, tag = "64616796")]
pub on_host_maintenance: ::core::option::Option<::prost::alloc::string::String>,
/// Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states.
#[prost(bool, optional, tag = "324203169")]
pub preemptible: ::core::option::Option<bool>,
/// Specifies the provisioning model of the instance.
/// Check the ProvisioningModel enum for the list of possible values.
#[prost(string, optional, tag = "494423")]
pub provisioning_model: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Scheduling`.
pub mod scheduling {
/// Specifies the termination action for the instance.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum InstanceTerminationAction {
/// A value indicating that the enum field is not set.
UndefinedInstanceTerminationAction = 0,
/// Delete the VM.
Delete = 402225579,
/// Default value. This value is unused.
Unspecified = 92954803,
/// Stop the VM without storing in-memory content. default action.
Stop = 2555906,
}
impl InstanceTerminationAction {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
InstanceTerminationAction::UndefinedInstanceTerminationAction => {
"UNDEFINED_INSTANCE_TERMINATION_ACTION"
}
InstanceTerminationAction::Delete => "DELETE",
InstanceTerminationAction::Unspecified => {
"INSTANCE_TERMINATION_ACTION_UNSPECIFIED"
}
InstanceTerminationAction::Stop => "STOP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_INSTANCE_TERMINATION_ACTION" => {
Some(Self::UndefinedInstanceTerminationAction)
}
"DELETE" => Some(Self::Delete),
"INSTANCE_TERMINATION_ACTION_UNSPECIFIED" => Some(Self::Unspecified),
"STOP" => Some(Self::Stop),
_ => None,
}
}
}
/// Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum OnHostMaintenance {
/// A value indicating that the enum field is not set.
UndefinedOnHostMaintenance = 0,
/// *\[Default\]* Allows Compute Engine to automatically migrate instances out of the way of maintenance events.
Migrate = 165699979,
/// Tells Compute Engine to terminate and (optionally) restart the instance away from the maintenance activity. If you would like your instance to be restarted, set the automaticRestart flag to true. Your instance may be restarted more than once, and it may be restarted outside the window of maintenance events.
Terminate = 527617601,
}
impl OnHostMaintenance {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
OnHostMaintenance::UndefinedOnHostMaintenance => {
"UNDEFINED_ON_HOST_MAINTENANCE"
}
OnHostMaintenance::Migrate => "MIGRATE",
OnHostMaintenance::Terminate => "TERMINATE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ON_HOST_MAINTENANCE" => Some(Self::UndefinedOnHostMaintenance),
"MIGRATE" => Some(Self::Migrate),
"TERMINATE" => Some(Self::Terminate),
_ => None,
}
}
}
/// Specifies the provisioning model of the instance.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ProvisioningModel {
/// A value indicating that the enum field is not set.
UndefinedProvisioningModel = 0,
/// Heavily discounted, no guaranteed runtime.
Spot = 2552066,
/// Standard provisioning with user controlled runtime, no discounts.
Standard = 484642493,
}
impl ProvisioningModel {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ProvisioningModel::UndefinedProvisioningModel => {
"UNDEFINED_PROVISIONING_MODEL"
}
ProvisioningModel::Spot => "SPOT",
ProvisioningModel::Standard => "STANDARD",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PROVISIONING_MODEL" => Some(Self::UndefinedProvisioningModel),
"SPOT" => Some(Self::Spot),
"STANDARD" => Some(Self::Standard),
_ => None,
}
}
}
}
/// Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SchedulingNodeAffinity {
/// Corresponds to the label key of Node resource.
#[prost(string, optional, tag = "106079")]
pub key: ::core::option::Option<::prost::alloc::string::String>,
/// Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.
/// Check the Operator enum for the list of possible values.
#[prost(string, optional, tag = "36317348")]
pub operator: ::core::option::Option<::prost::alloc::string::String>,
/// Corresponds to the label values of Node resource.
#[prost(string, repeated, tag = "249928994")]
pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `SchedulingNodeAffinity`.
pub mod scheduling_node_affinity {
/// Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Operator {
/// A value indicating that the enum field is not set.
UndefinedOperator = 0,
/// Requires Compute Engine to seek for matched nodes.
In = 2341,
/// Requires Compute Engine to avoid certain nodes.
NotIn = 161144369,
Unspecified = 128892924,
}
impl Operator {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Operator::UndefinedOperator => "UNDEFINED_OPERATOR",
Operator::In => "IN",
Operator::NotIn => "NOT_IN",
Operator::Unspecified => "OPERATOR_UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_OPERATOR" => Some(Self::UndefinedOperator),
"IN" => Some(Self::In),
"NOT_IN" => Some(Self::NotIn),
"OPERATOR_UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ScratchDisks {
/// Size of the scratch disk, defined in GB.
#[prost(int32, optional, tag = "60990141")]
pub disk_gb: ::core::option::Option<i32>,
}
/// An instance's screenshot.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Screenshot {
/// \[Output Only\] The Base64-encoded screenshot data.
#[prost(string, optional, tag = "506419994")]
pub contents: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Type of the resource. Always compute#screenshot for the screenshots.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPoliciesAggregatedList {
#[prost(string, optional, tag = "3123477")]
pub etag: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of SecurityPoliciesScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
SecurityPoliciesScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#securityPolicyAggregatedList for lists of Security Policies.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPoliciesListPreconfiguredExpressionSetsResponse {
#[prost(message, optional, tag = "536200826")]
pub preconfigured_expression_sets: ::core::option::Option<SecurityPoliciesWafConfig>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPoliciesScopedList {
/// A list of SecurityPolicies contained in this scope.
#[prost(message, repeated, tag = "127783791")]
pub security_policies: ::prost::alloc::vec::Vec<SecurityPolicy>,
/// Informational warning which replaces the list of security policies when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPoliciesWafConfig {
#[prost(message, optional, tag = "74899924")]
pub waf_rules: ::core::option::Option<PreconfiguredWafSet>,
}
/// Represents a Google Cloud Armor security policy resource. Only external backend services that use load balancers can reference a security policy. For more information, see Google Cloud Armor security policy overview.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicy {
#[prost(message, optional, tag = "150240735")]
pub adaptive_protection_config: ::core::option::Option<
SecurityPolicyAdaptiveProtectionConfig,
>,
#[prost(message, optional, tag = "449276352")]
pub advanced_options_config: ::core::option::Option<
SecurityPolicyAdvancedOptionsConfig,
>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "50315853")]
pub ddos_protection_config: ::core::option::Option<
SecurityPolicyDdosProtectionConfig,
>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the security policy.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output only\] Type of the resource. Always compute#securityPolicyfor security policies
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// A fingerprint for the labels being applied to this security policy, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the security policy.
#[prost(string, optional, tag = "178124825")]
pub label_fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "519006811")]
pub recaptcha_options_config: ::core::option::Option<
SecurityPolicyRecaptchaOptionsConfig,
>,
/// \[Output Only\] URL of the region where the regional security policy resides. This field is not applicable to global security policies.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// A list of rules that belong to this policy. There must always be a default rule which is a rule with priority 2147483647 and match all condition (for the match condition this means match "*" for srcIpRanges and for the networkMatch condition every field must be either match "*" or not set). If no rules are provided when creating a security policy, a default rule with action "allow" will be added.
#[prost(message, repeated, tag = "108873975")]
pub rules: ::prost::alloc::vec::Vec<SecurityPolicyRule>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
/// Definitions of user-defined fields for CLOUD_ARMOR_NETWORK policies. A user-defined field consists of up to 4 bytes extracted from a fixed offset in the packet, relative to the IPv4, IPv6, TCP, or UDP header, with an optional mask to select certain bits. Rules may then specify matching values for these fields. Example: userDefinedFields: - name: "ipv4_fragment_offset" base: IPV4 offset: 6 size: 2 mask: "0x1fff"
#[prost(message, repeated, tag = "28312739")]
pub user_defined_fields: ::prost::alloc::vec::Vec<SecurityPolicyUserDefinedField>,
}
/// Nested message and enum types in `SecurityPolicy`.
pub mod security_policy {
/// The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
CloudArmor = 260640373,
CloudArmorEdge = 250728775,
CloudArmorNetwork = 488527428,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::CloudArmor => "CLOUD_ARMOR",
Type::CloudArmorEdge => "CLOUD_ARMOR_EDGE",
Type::CloudArmorNetwork => "CLOUD_ARMOR_NETWORK",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"CLOUD_ARMOR" => Some(Self::CloudArmor),
"CLOUD_ARMOR_EDGE" => Some(Self::CloudArmorEdge),
"CLOUD_ARMOR_NETWORK" => Some(Self::CloudArmorNetwork),
_ => None,
}
}
}
}
/// Configuration options for Cloud Armor Adaptive Protection (CAAP).
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyAdaptiveProtectionConfig {
/// If set to true, enables Cloud Armor Machine Learning.
#[prost(message, optional, tag = "437316771")]
pub layer7_ddos_defense_config: ::core::option::Option<
SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig,
>,
}
/// Configuration options for L7 DDoS detection. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig {
/// If set to true, enables CAAP for L7 DDoS detection. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
#[prost(bool, optional, tag = "311764355")]
pub enable: ::core::option::Option<bool>,
/// Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
/// Check the RuleVisibility enum for the list of possible values.
#[prost(string, optional, tag = "453258293")]
pub rule_visibility: ::core::option::Option<::prost::alloc::string::String>,
/// Configuration options for layer7 adaptive protection for various customizable thresholds.
#[prost(message, repeated, tag = "60347805")]
pub threshold_configs: ::prost::alloc::vec::Vec<
SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig,
>,
}
/// Nested message and enum types in `SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig`.
pub mod security_policy_adaptive_protection_config_layer7_ddos_defense_config {
/// Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum RuleVisibility {
/// A value indicating that the enum field is not set.
UndefinedRuleVisibility = 0,
Premium = 399530551,
Standard = 484642493,
}
impl RuleVisibility {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
RuleVisibility::UndefinedRuleVisibility => "UNDEFINED_RULE_VISIBILITY",
RuleVisibility::Premium => "PREMIUM",
RuleVisibility::Standard => "STANDARD",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_RULE_VISIBILITY" => Some(Self::UndefinedRuleVisibility),
"PREMIUM" => Some(Self::Premium),
"STANDARD" => Some(Self::Standard),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig {
#[prost(float, optional, tag = "84309694")]
pub auto_deploy_confidence_threshold: ::core::option::Option<f32>,
#[prost(int32, optional, tag = "69638793")]
pub auto_deploy_expiration_sec: ::core::option::Option<i32>,
#[prost(float, optional, tag = "292441667")]
pub auto_deploy_impacted_baseline_threshold: ::core::option::Option<f32>,
#[prost(float, optional, tag = "522227738")]
pub auto_deploy_load_threshold: ::core::option::Option<f32>,
/// The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyAdvancedOptionsConfig {
/// Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
#[prost(message, optional, tag = "111570105")]
pub json_custom_config: ::core::option::Option<
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig,
>,
///
/// Check the JsonParsing enum for the list of possible values.
#[prost(string, optional, tag = "282493529")]
pub json_parsing: ::core::option::Option<::prost::alloc::string::String>,
///
/// Check the LogLevel enum for the list of possible values.
#[prost(string, optional, tag = "140582601")]
pub log_level: ::core::option::Option<::prost::alloc::string::String>,
/// An optional list of case-insensitive request header names to use for resolving the callers client IP address.
#[prost(string, repeated, tag = "421050290")]
pub user_ip_request_headers: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
}
/// Nested message and enum types in `SecurityPolicyAdvancedOptionsConfig`.
pub mod security_policy_advanced_options_config {
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum JsonParsing {
/// A value indicating that the enum field is not set.
UndefinedJsonParsing = 0,
Disabled = 516696700,
Standard = 484642493,
StandardWithGraphql = 106979218,
}
impl JsonParsing {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
JsonParsing::UndefinedJsonParsing => "UNDEFINED_JSON_PARSING",
JsonParsing::Disabled => "DISABLED",
JsonParsing::Standard => "STANDARD",
JsonParsing::StandardWithGraphql => "STANDARD_WITH_GRAPHQL",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_JSON_PARSING" => Some(Self::UndefinedJsonParsing),
"DISABLED" => Some(Self::Disabled),
"STANDARD" => Some(Self::Standard),
"STANDARD_WITH_GRAPHQL" => Some(Self::StandardWithGraphql),
_ => None,
}
}
}
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum LogLevel {
/// A value indicating that the enum field is not set.
UndefinedLogLevel = 0,
Normal = 161067239,
Verbose = 532219234,
}
impl LogLevel {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
LogLevel::UndefinedLogLevel => "UNDEFINED_LOG_LEVEL",
LogLevel::Normal => "NORMAL",
LogLevel::Verbose => "VERBOSE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_LOG_LEVEL" => Some(Self::UndefinedLogLevel),
"NORMAL" => Some(Self::Normal),
"VERBOSE" => Some(Self::Verbose),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyAdvancedOptionsConfigJsonCustomConfig {
/// A list of custom Content-Type header values to apply the JSON parsing. As per RFC 1341, a Content-Type header value has the following format: Content-Type := type "/" subtype *\[";" parameter\] When configuring a custom Content-Type header value, only the type/subtype needs to be specified, and the parameters should be excluded.
#[prost(string, repeated, tag = "17428787")]
pub content_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyDdosProtectionConfig {
///
/// Check the DdosProtection enum for the list of possible values.
#[prost(string, optional, tag = "275173268")]
pub ddos_protection: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `SecurityPolicyDdosProtectionConfig`.
pub mod security_policy_ddos_protection_config {
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum DdosProtection {
/// A value indicating that the enum field is not set.
UndefinedDdosProtection = 0,
Advanced = 63789090,
Standard = 484642493,
}
impl DdosProtection {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
DdosProtection::UndefinedDdosProtection => "UNDEFINED_DDOS_PROTECTION",
DdosProtection::Advanced => "ADVANCED",
DdosProtection::Standard => "STANDARD",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_DDOS_PROTECTION" => Some(Self::UndefinedDdosProtection),
"ADVANCED" => Some(Self::Advanced),
"STANDARD" => Some(Self::Standard),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of SecurityPolicy resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<SecurityPolicy>,
/// \[Output Only\] Type of resource. Always compute#securityPolicyList for listsof securityPolicies
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyRecaptchaOptionsConfig {
/// An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
#[prost(string, optional, tag = "447677034")]
pub redirect_site_key: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyReference {
#[prost(string, optional, tag = "171082513")]
pub security_policy: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny).
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyRule {
/// The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
#[prost(string, optional, tag = "187661878")]
pub action: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
#[prost(message, optional, tag = "328077352")]
pub header_action: ::core::option::Option<SecurityPolicyRuleHttpHeaderAction>,
/// \[Output only\] Type of the resource. Always compute#securityPolicyRule for security policy rules
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
#[prost(message, optional, tag = "103668165")]
pub r#match: ::core::option::Option<SecurityPolicyRuleMatcher>,
/// A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security policies. If it matches, the corresponding 'action' is enforced. The match criteria for a rule consists of built-in match fields (like 'srcIpRanges') and potentially multiple user-defined match fields ('userDefinedFields'). Field values may be extracted directly from the packet or derived from it (e.g. 'srcRegionCodes'). Some fields may not be present in every packet (e.g. 'srcPorts'). A user-defined field is only present if the base header is found in the packet and the entire field is in bounds. Each match field may specify which values can match it, listing one or more ranges, prefixes, or exact values that are considered a match for the field. A field value must be present in order to match a specified match field. If no match values are specified for a match field, then any field value is considered to match it, and it's not required to be present. For strings specifying '*' is also equivalent to match all. For a packet to match a rule, all specified match fields must match the corresponding field values derived from the packet. Example: networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - name: "ipv4_fragment_offset" values: - "1-0x1fff" The above match condition matches packets with a source IP in 192.0.2.0/24 or 198.51.100.0/24 and a user-defined field named "ipv4_fragment_offset" with a value between 1 and 0x1fff inclusive.
#[prost(message, optional, tag = "463387764")]
pub network_match: ::core::option::Option<SecurityPolicyRuleNetworkMatcher>,
/// Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
#[prost(message, optional, tag = "117805027")]
pub preconfigured_waf_config: ::core::option::Option<
SecurityPolicyRulePreconfiguredWafConfig,
>,
/// If set to true, the specified action is not enforced.
#[prost(bool, optional, tag = "218686408")]
pub preview: ::core::option::Option<bool>,
/// An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
#[prost(int32, optional, tag = "445151652")]
pub priority: ::core::option::Option<i32>,
/// Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
#[prost(message, optional, tag = "67544315")]
pub rate_limit_options: ::core::option::Option<SecurityPolicyRuleRateLimitOptions>,
/// Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
#[prost(message, optional, tag = "163285307")]
pub redirect_options: ::core::option::Option<SecurityPolicyRuleRedirectOptions>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyRuleHttpHeaderAction {
/// The list of request headers to add or overwrite if they're already present.
#[prost(message, repeated, tag = "87987661")]
pub request_headers_to_adds: ::prost::alloc::vec::Vec<
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyRuleHttpHeaderActionHttpHeaderOption {
/// The name of the header to set.
#[prost(string, optional, tag = "110223613")]
pub header_name: ::core::option::Option<::prost::alloc::string::String>,
/// The value to set the named header to.
#[prost(string, optional, tag = "203094335")]
pub header_value: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyRuleMatcher {
/// The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.
#[prost(message, optional, tag = "255820610")]
pub config: ::core::option::Option<SecurityPolicyRuleMatcherConfig>,
/// User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header. Expressions containing `evaluateThreatIntelligence` require Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing `evaluatePreconfiguredExpr('sourceiplist-*')` require Cloud Armor Managed Protection Plus tier and are only supported in Global Security Policies.
#[prost(message, optional, tag = "3127797")]
pub expr: ::core::option::Option<Expr>,
/// The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').
#[prost(message, optional, tag = "486220372")]
pub expr_options: ::core::option::Option<SecurityPolicyRuleMatcherExprOptions>,
/// Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config.
/// Check the VersionedExpr enum for the list of possible values.
#[prost(string, optional, tag = "322286013")]
pub versioned_expr: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `SecurityPolicyRuleMatcher`.
pub mod security_policy_rule_matcher {
/// Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum VersionedExpr {
/// A value indicating that the enum field is not set.
UndefinedVersionedExpr = 0,
/// Matches the source IP address of a request to the IP ranges supplied in config.
SrcIpsV1 = 70925961,
}
impl VersionedExpr {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
VersionedExpr::UndefinedVersionedExpr => "UNDEFINED_VERSIONED_EXPR",
VersionedExpr::SrcIpsV1 => "SRC_IPS_V1",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_VERSIONED_EXPR" => Some(Self::UndefinedVersionedExpr),
"SRC_IPS_V1" => Some(Self::SrcIpsV1),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyRuleMatcherConfig {
/// CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
#[prost(string, repeated, tag = "432128083")]
pub src_ip_ranges: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyRuleMatcherExprOptions {
/// reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate reCAPTCHA tokens, this field has no effect.
#[prost(message, optional, tag = "389151558")]
pub recaptcha_options: ::core::option::Option<
SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions {
/// A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
#[prost(string, repeated, tag = "59929885")]
pub action_token_site_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
#[prost(string, repeated, tag = "333363581")]
pub session_token_site_keys: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
}
/// Represents a match condition that incoming network traffic is evaluated against.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyRuleNetworkMatcher {
/// Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
#[prost(string, repeated, tag = "337357713")]
pub dest_ip_ranges: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").
#[prost(string, repeated, tag = "379902005")]
pub dest_ports: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp".
#[prost(string, repeated, tag = "259213251")]
pub ip_protocols: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// BGP Autonomous System Number associated with the source IP address.
#[prost(uint32, repeated, tag = "117825266")]
pub src_asns: ::prost::alloc::vec::Vec<u32>,
/// Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
#[prost(string, repeated, tag = "432128083")]
pub src_ip_ranges: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").
#[prost(string, repeated, tag = "445095415")]
pub src_ports: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
#[prost(string, repeated, tag = "99086742")]
pub src_region_codes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// User-defined fields. Each element names a defined field and lists the matching values for that field.
#[prost(message, repeated, tag = "28312739")]
pub user_defined_fields: ::prost::alloc::vec::Vec<
SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch {
/// Name of the user-defined field, as given in the definition.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Matching values of the field. Each element can be a 32-bit unsigned decimal or hexadecimal (starting with "0x") number (e.g. "64") or range (e.g. "0x400-0x7ff").
#[prost(string, repeated, tag = "249928994")]
pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyRulePreconfiguredWafConfig {
/// A list of exclusions to apply during preconfigured WAF evaluation.
#[prost(message, repeated, tag = "208665701")]
pub exclusions: ::prost::alloc::vec::Vec<
SecurityPolicyRulePreconfiguredWafConfigExclusion,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyRulePreconfiguredWafConfigExclusion {
/// A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
#[prost(message, repeated, tag = "156757878")]
pub request_cookies_to_exclude: ::prost::alloc::vec::Vec<
SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams,
>,
/// A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
#[prost(message, repeated, tag = "63230495")]
pub request_headers_to_exclude: ::prost::alloc::vec::Vec<
SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams,
>,
/// A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
#[prost(message, repeated, tag = "340692744")]
pub request_query_params_to_exclude: ::prost::alloc::vec::Vec<
SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams,
>,
/// A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
#[prost(message, repeated, tag = "90690846")]
pub request_uris_to_exclude: ::prost::alloc::vec::Vec<
SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams,
>,
/// A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
#[prost(string, repeated, tag = "498430435")]
pub target_rule_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Target WAF rule set to apply the preconfigured WAF exclusion.
#[prost(string, optional, tag = "498440077")]
pub target_rule_set: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams {
/// The match operator for the field.
/// Check the Op enum for the list of possible values.
#[prost(string, optional, tag = "3553")]
pub op: ::core::option::Option<::prost::alloc::string::String>,
/// The value of the field.
#[prost(string, optional, tag = "116513")]
pub val: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams`.
pub mod security_policy_rule_preconfigured_waf_config_exclusion_field_params {
/// The match operator for the field.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Op {
/// A value indicating that the enum field is not set.
UndefinedOp = 0,
/// The operator matches if the field value contains the specified value.
Contains = 215180831,
/// The operator matches if the field value ends with the specified value.
EndsWith = 490402221,
/// The operator matches if the field value equals the specified value.
Equals = 442201023,
/// The operator matches if the field value is any value.
EqualsAny = 337226060,
/// The operator matches if the field value starts with the specified value.
StartsWith = 139505652,
}
impl Op {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Op::UndefinedOp => "UNDEFINED_OP",
Op::Contains => "CONTAINS",
Op::EndsWith => "ENDS_WITH",
Op::Equals => "EQUALS",
Op::EqualsAny => "EQUALS_ANY",
Op::StartsWith => "STARTS_WITH",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_OP" => Some(Self::UndefinedOp),
"CONTAINS" => Some(Self::Contains),
"ENDS_WITH" => Some(Self::EndsWith),
"EQUALS" => Some(Self::Equals),
"EQUALS_ANY" => Some(Self::EqualsAny),
"STARTS_WITH" => Some(Self::StartsWith),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyRuleRateLimitOptions {
/// Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
#[prost(int32, optional, tag = "42896726")]
pub ban_duration_sec: ::core::option::Option<i32>,
/// Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
#[prost(message, optional, tag = "501208123")]
pub ban_threshold: ::core::option::Option<
SecurityPolicyRuleRateLimitOptionsThreshold,
>,
/// Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
#[prost(string, optional, tag = "517612367")]
pub conform_action: ::core::option::Option<::prost::alloc::string::String>,
/// Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
/// Check the EnforceOnKey enum for the list of possible values.
#[prost(string, optional, tag = "416648956")]
pub enforce_on_key: ::core::option::Option<::prost::alloc::string::String>,
/// If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
#[prost(message, repeated, tag = "33906478")]
pub enforce_on_key_configs: ::prost::alloc::vec::Vec<
SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig,
>,
/// Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
#[prost(string, optional, tag = "132555246")]
pub enforce_on_key_name: ::core::option::Option<::prost::alloc::string::String>,
/// Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are `deny(STATUS)`, where valid values for `STATUS` are 403, 404, 429, and 502, and `redirect`, where the redirect parameters come from `exceedRedirectOptions` below. The `redirect` action is only supported in Global Security Policies of type CLOUD_ARMOR.
#[prost(string, optional, tag = "167159073")]
pub exceed_action: ::core::option::Option<::prost::alloc::string::String>,
/// Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
#[prost(message, optional, tag = "473646694")]
pub exceed_redirect_options: ::core::option::Option<
SecurityPolicyRuleRedirectOptions,
>,
/// Threshold at which to begin ratelimiting.
#[prost(message, optional, tag = "315875208")]
pub rate_limit_threshold: ::core::option::Option<
SecurityPolicyRuleRateLimitOptionsThreshold,
>,
}
/// Nested message and enum types in `SecurityPolicyRuleRateLimitOptions`.
pub mod security_policy_rule_rate_limit_options {
/// Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum EnforceOnKey {
/// A value indicating that the enum field is not set.
UndefinedEnforceOnKey = 0,
All = 64897,
HttpCookie = 494981627,
HttpHeader = 91597348,
HttpPath = 311503228,
Ip = 2343,
RegionCode = 79559768,
Sni = 82254,
TlsJa3Fingerprint = 327127933,
UserIp = 34009627,
XffIp = 438707118,
}
impl EnforceOnKey {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
EnforceOnKey::UndefinedEnforceOnKey => "UNDEFINED_ENFORCE_ON_KEY",
EnforceOnKey::All => "ALL",
EnforceOnKey::HttpCookie => "HTTP_COOKIE",
EnforceOnKey::HttpHeader => "HTTP_HEADER",
EnforceOnKey::HttpPath => "HTTP_PATH",
EnforceOnKey::Ip => "IP",
EnforceOnKey::RegionCode => "REGION_CODE",
EnforceOnKey::Sni => "SNI",
EnforceOnKey::TlsJa3Fingerprint => "TLS_JA3_FINGERPRINT",
EnforceOnKey::UserIp => "USER_IP",
EnforceOnKey::XffIp => "XFF_IP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ENFORCE_ON_KEY" => Some(Self::UndefinedEnforceOnKey),
"ALL" => Some(Self::All),
"HTTP_COOKIE" => Some(Self::HttpCookie),
"HTTP_HEADER" => Some(Self::HttpHeader),
"HTTP_PATH" => Some(Self::HttpPath),
"IP" => Some(Self::Ip),
"REGION_CODE" => Some(Self::RegionCode),
"SNI" => Some(Self::Sni),
"TLS_JA3_FINGERPRINT" => Some(Self::TlsJa3Fingerprint),
"USER_IP" => Some(Self::UserIp),
"XFF_IP" => Some(Self::XffIp),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig {
/// Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
#[prost(string, optional, tag = "132555246")]
pub enforce_on_key_name: ::core::option::Option<::prost::alloc::string::String>,
/// Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
/// Check the EnforceOnKeyType enum for the list of possible values.
#[prost(string, optional, tag = "132757149")]
pub enforce_on_key_type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig`.
pub mod security_policy_rule_rate_limit_options_enforce_on_key_config {
/// Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum EnforceOnKeyType {
/// A value indicating that the enum field is not set.
UndefinedEnforceOnKeyType = 0,
All = 64897,
HttpCookie = 494981627,
HttpHeader = 91597348,
HttpPath = 311503228,
Ip = 2343,
RegionCode = 79559768,
Sni = 82254,
TlsJa3Fingerprint = 327127933,
UserIp = 34009627,
XffIp = 438707118,
}
impl EnforceOnKeyType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
EnforceOnKeyType::UndefinedEnforceOnKeyType => {
"UNDEFINED_ENFORCE_ON_KEY_TYPE"
}
EnforceOnKeyType::All => "ALL",
EnforceOnKeyType::HttpCookie => "HTTP_COOKIE",
EnforceOnKeyType::HttpHeader => "HTTP_HEADER",
EnforceOnKeyType::HttpPath => "HTTP_PATH",
EnforceOnKeyType::Ip => "IP",
EnforceOnKeyType::RegionCode => "REGION_CODE",
EnforceOnKeyType::Sni => "SNI",
EnforceOnKeyType::TlsJa3Fingerprint => "TLS_JA3_FINGERPRINT",
EnforceOnKeyType::UserIp => "USER_IP",
EnforceOnKeyType::XffIp => "XFF_IP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ENFORCE_ON_KEY_TYPE" => Some(Self::UndefinedEnforceOnKeyType),
"ALL" => Some(Self::All),
"HTTP_COOKIE" => Some(Self::HttpCookie),
"HTTP_HEADER" => Some(Self::HttpHeader),
"HTTP_PATH" => Some(Self::HttpPath),
"IP" => Some(Self::Ip),
"REGION_CODE" => Some(Self::RegionCode),
"SNI" => Some(Self::Sni),
"TLS_JA3_FINGERPRINT" => Some(Self::TlsJa3Fingerprint),
"USER_IP" => Some(Self::UserIp),
"XFF_IP" => Some(Self::XffIp),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyRuleRateLimitOptionsThreshold {
/// Number of HTTP(S) requests for calculating the threshold.
#[prost(int32, optional, tag = "94851343")]
pub count: ::core::option::Option<i32>,
/// Interval over which the threshold is computed.
#[prost(int32, optional, tag = "41084375")]
pub interval_sec: ::core::option::Option<i32>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyRuleRedirectOptions {
/// Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
#[prost(string, optional, tag = "192835985")]
pub target: ::core::option::Option<::prost::alloc::string::String>,
/// Type of the redirect action.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `SecurityPolicyRuleRedirectOptions`.
pub mod security_policy_rule_redirect_options {
/// Type of the redirect action.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
External302 = 395733761,
GoogleRecaptcha = 518803009,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::External302 => "EXTERNAL_302",
Type::GoogleRecaptcha => "GOOGLE_RECAPTCHA",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"EXTERNAL_302" => Some(Self::External302),
"GOOGLE_RECAPTCHA" => Some(Self::GoogleRecaptcha),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityPolicyUserDefinedField {
/// The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. - UDP: Points to the beginning of the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. required
/// Check the Base enum for the list of possible values.
#[prost(string, optional, tag = "3016401")]
pub base: ::core::option::Option<::prost::alloc::string::String>,
/// If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network byte order) corresponds to the least significant byte of the mask.
#[prost(string, optional, tag = "3344108")]
pub mask: ::core::option::Option<::prost::alloc::string::String>,
/// The name of this field. Must be unique within the policy.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Offset of the first byte of the field (in network byte order) relative to 'base'.
#[prost(int32, optional, tag = "53961875")]
pub offset: ::core::option::Option<i32>,
/// Size of the field in bytes. Valid values: 1-4.
#[prost(int32, optional, tag = "3530753")]
pub size: ::core::option::Option<i32>,
}
/// Nested message and enum types in `SecurityPolicyUserDefinedField`.
pub mod security_policy_user_defined_field {
/// The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. - UDP: Points to the beginning of the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. required
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Base {
/// A value indicating that the enum field is not set.
UndefinedBase = 0,
Ipv4 = 2254341,
Ipv6 = 2254343,
Tcp = 82881,
Udp = 83873,
}
impl Base {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Base::UndefinedBase => "UNDEFINED_BASE",
Base::Ipv4 => "IPV4",
Base::Ipv6 => "IPV6",
Base::Tcp => "TCP",
Base::Udp => "UDP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_BASE" => Some(Self::UndefinedBase),
"IPV4" => Some(Self::Ipv4),
"IPV6" => Some(Self::Ipv6),
"TCP" => Some(Self::Tcp),
"UDP" => Some(Self::Udp),
_ => None,
}
}
}
}
/// The authentication and authorization settings for a BackendService.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecuritySettings {
/// The configuration needed to generate a signature for access to private storage buckets that support AWS's Signature Version 4 for authentication. Allowed only for INTERNET_IP_PORT and INTERNET_FQDN_PORT NEG backends.
#[prost(message, optional, tag = "433993111")]
pub aws_v4_authentication: ::core::option::Option<Awsv4Signature>,
/// Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how clients should authenticate with this service's backends. clientTlsPolicy only applies to a global BackendService with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, communications are not encrypted.
#[prost(string, optional, tag = "462325226")]
pub client_tls_policy: ::core::option::Option<::prost::alloc::string::String>,
/// Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual TLS handshake with an server/endpoint for this BackendService. When the server presents its X.509 certificate to the client, the client inspects the certificate's subjectAltName field. If the field contains one of the specified values, the communication continues. Otherwise, it fails. This additional check enables the client to verify that the server is authorized to run the requested service. Note that the contents of the server certificate's subjectAltName field are configured by the Public Key Infrastructure which provisions server identities. Only applies to a global BackendService with loadBalancingScheme set to INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached clientTlsPolicy with clientCertificate (mTLS mode).
#[prost(string, repeated, tag = "330029535")]
pub subject_alt_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// A request message for Instances.SendDiagnosticInterrupt. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SendDiagnosticInterruptInstanceRequest {
/// Name of the instance scoping this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A response message for Instances.SendDiagnosticInterrupt. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SendDiagnosticInterruptInstanceResponse {}
/// An instance serial console output.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SerialPortOutput {
/// \[Output Only\] The contents of the console output.
#[prost(string, optional, tag = "506419994")]
pub contents: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Type of the resource. Always compute#serialPortOutput for serial port output.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The position of the next byte of content, regardless of whether the content exists, following the output returned in the `contents` property. Use this value in the next request as the start parameter.
#[prost(int64, optional, tag = "3377907")]
pub next: ::core::option::Option<i64>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// The starting byte position of the output that was returned. This should match the start parameter sent with the request. If the serial console output exceeds the size of the buffer (1 MB), older output is overwritten by newer content. The output start value will indicate the byte position of the output that was returned, which might be different than the `start` value that was specified in the request.
#[prost(int64, optional, tag = "109757538")]
pub start: ::core::option::Option<i64>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServerBinding {
///
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `ServerBinding`.
pub mod server_binding {
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
/// Node may associate with any physical server over its lifetime.
RestartNodeOnAnyServer = 502950985,
/// Node may associate with minimal physical servers over its lifetime.
RestartNodeOnMinimalServers = 204166495,
ServerBindingTypeUnspecified = 180825512,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::RestartNodeOnAnyServer => "RESTART_NODE_ON_ANY_SERVER",
Type::RestartNodeOnMinimalServers => "RESTART_NODE_ON_MINIMAL_SERVERS",
Type::ServerBindingTypeUnspecified => "SERVER_BINDING_TYPE_UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"RESTART_NODE_ON_ANY_SERVER" => Some(Self::RestartNodeOnAnyServer),
"RESTART_NODE_ON_MINIMAL_SERVERS" => {
Some(Self::RestartNodeOnMinimalServers)
}
"SERVER_BINDING_TYPE_UNSPECIFIED" => {
Some(Self::ServerBindingTypeUnspecified)
}
_ => None,
}
}
}
}
/// A service account.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServiceAccount {
/// Email address of the service account.
#[prost(string, optional, tag = "96619420")]
pub email: ::core::option::Option<::prost::alloc::string::String>,
/// The list of scopes to be made available for this service account.
#[prost(string, repeated, tag = "165973151")]
pub scopes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Represents a ServiceAttachment resource. A service attachment represents a service that a producer has exposed. It encapsulates the load balancer which fronts the service runs and a list of NAT IP ranges that the producers uses to represent the consumers connecting to the service.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServiceAttachment {
/// \[Output Only\] An array of connections for all the consumers connected to this service attachment.
#[prost(message, repeated, tag = "72223688")]
pub connected_endpoints: ::prost::alloc::vec::Vec<
ServiceAttachmentConnectedEndpoint,
>,
/// The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules.
/// Check the ConnectionPreference enum for the list of possible values.
#[prost(string, optional, tag = "285818076")]
pub connection_preference: ::core::option::Option<::prost::alloc::string::String>,
/// Projects that are allowed to connect to this service attachment.
#[prost(message, repeated, tag = "402725703")]
pub consumer_accept_lists: ::prost::alloc::vec::Vec<
ServiceAttachmentConsumerProjectLimit,
>,
/// Projects that are not allowed to connect to this service attachment. The project can be specified using its id or number.
#[prost(string, repeated, tag = "204033182")]
pub consumer_reject_lists: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1.
#[prost(string, repeated, tag = "6450189")]
pub domain_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers.
#[prost(bool, optional, tag = "363791237")]
pub enable_proxy_protocol: ::core::option::Option<bool>,
/// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to-date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the ServiceAttachment.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource type. The server generates this identifier.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#serviceAttachment for service attachments.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment.
#[prost(string, repeated, tag = "374785944")]
pub nat_subnets: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment.
#[prost(string, optional, tag = "247927889")]
pub producer_forwarding_rule: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] An 128-bit global unique ID of the PSC service attachment.
#[prost(message, optional, tag = "527695214")]
pub psc_service_attachment_id: ::core::option::Option<Uint128>,
/// This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched regardless how the connection policy is modified . - If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. For newly created service attachment, this boolean defaults to false.
#[prost(bool, optional, tag = "125493732")]
pub reconcile_connections: ::core::option::Option<bool>,
/// \[Output Only\] URL of the region where the service attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of a service serving the endpoint identified by this service attachment.
#[prost(string, optional, tag = "1293831")]
pub target_service: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `ServiceAttachment`.
pub mod service_attachment {
/// The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ConnectionPreference {
/// A value indicating that the enum field is not set.
UndefinedConnectionPreference = 0,
AcceptAutomatic = 75250580,
AcceptManual = 373061341,
Unspecified = 34590772,
}
impl ConnectionPreference {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ConnectionPreference::UndefinedConnectionPreference => {
"UNDEFINED_CONNECTION_PREFERENCE"
}
ConnectionPreference::AcceptAutomatic => "ACCEPT_AUTOMATIC",
ConnectionPreference::AcceptManual => "ACCEPT_MANUAL",
ConnectionPreference::Unspecified => "CONNECTION_PREFERENCE_UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_CONNECTION_PREFERENCE" => {
Some(Self::UndefinedConnectionPreference)
}
"ACCEPT_AUTOMATIC" => Some(Self::AcceptAutomatic),
"ACCEPT_MANUAL" => Some(Self::AcceptManual),
"CONNECTION_PREFERENCE_UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
/// Contains a list of ServiceAttachmentsScopedList.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServiceAttachmentAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of ServiceAttachmentsScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
ServiceAttachmentsScopedList,
>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// \[Output Only\] A connection connected to this service attachment.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServiceAttachmentConnectedEndpoint {
/// The url of the consumer network.
#[prost(string, optional, tag = "254357221")]
pub consumer_network: ::core::option::Option<::prost::alloc::string::String>,
/// The url of a connected endpoint.
#[prost(string, optional, tag = "130489749")]
pub endpoint: ::core::option::Option<::prost::alloc::string::String>,
/// The PSC connection id of the connected endpoint.
#[prost(uint64, optional, tag = "292082397")]
pub psc_connection_id: ::core::option::Option<u64>,
/// The status of a connected endpoint to this service attachment.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `ServiceAttachmentConnectedEndpoint`.
pub mod service_attachment_connected_endpoint {
/// The status of a connected endpoint to this service attachment.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// The connection has been accepted by the producer.
Accepted = 246714279,
/// The connection has been closed by the producer.
Closed = 380163436,
/// The connection has been accepted by the producer, but the producer needs to take further action before the forwarding rule can serve traffic.
NeedsAttention = 344491452,
/// The connection is pending acceptance by the producer.
Pending = 35394935,
/// The consumer is still connected but not using the connection.
Rejected = 174130302,
Unspecified = 42133066,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Accepted => "ACCEPTED",
Status::Closed => "CLOSED",
Status::NeedsAttention => "NEEDS_ATTENTION",
Status::Pending => "PENDING",
Status::Rejected => "REJECTED",
Status::Unspecified => "STATUS_UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"ACCEPTED" => Some(Self::Accepted),
"CLOSED" => Some(Self::Closed),
"NEEDS_ATTENTION" => Some(Self::NeedsAttention),
"PENDING" => Some(Self::Pending),
"REJECTED" => Some(Self::Rejected),
"STATUS_UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServiceAttachmentConsumerProjectLimit {
/// The value of the limit to set.
#[prost(uint32, optional, tag = "131403546")]
pub connection_limit: ::core::option::Option<u32>,
/// The network URL for the network to set the limit for.
#[prost(string, optional, tag = "207194078")]
pub network_url: ::core::option::Option<::prost::alloc::string::String>,
/// The project id or number for the project to set the limit for.
#[prost(string, optional, tag = "349783336")]
pub project_id_or_num: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServiceAttachmentList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of ServiceAttachment resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<ServiceAttachment>,
/// \[Output Only\] Type of the resource. Always compute#serviceAttachment for service attachments.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServiceAttachmentsScopedList {
/// A list of ServiceAttachments contained in this scope.
#[prost(message, repeated, tag = "307136806")]
pub service_attachments: ::prost::alloc::vec::Vec<ServiceAttachment>,
/// Informational warning which replaces the list of service attachments when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// A request message for TargetSslProxies.SetBackendService. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetBackendServiceTargetSslProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "139080868")]
pub target_ssl_proxies_set_backend_service_request_resource: ::core::option::Option<
TargetSslProxiesSetBackendServiceRequest,
>,
/// Name of the TargetSslProxy resource whose BackendService resource is to be set.
#[prost(string, tag = "338795853")]
pub target_ssl_proxy: ::prost::alloc::string::String,
}
/// A request message for TargetTcpProxies.SetBackendService. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetBackendServiceTargetTcpProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "273721583")]
pub target_tcp_proxies_set_backend_service_request_resource: ::core::option::Option<
TargetTcpProxiesSetBackendServiceRequest,
>,
/// Name of the TargetTcpProxy resource whose BackendService resource is to be set.
#[prost(string, tag = "503065442")]
pub target_tcp_proxy: ::prost::alloc::string::String,
}
/// A request message for TargetPools.SetBackup. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetBackupTargetPoolRequest {
/// New failoverRatio value for the target pool.
#[prost(float, optional, tag = "212667006")]
pub failover_ratio: ::core::option::Option<f32>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetPool resource to set a backup pool for.
#[prost(string, tag = "62796298")]
pub target_pool: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "523721712")]
pub target_reference_resource: ::core::option::Option<TargetReference>,
}
/// A request message for TargetHttpsProxies.SetCertificateMap. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetCertificateMapTargetHttpsProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "467639099")]
pub target_https_proxies_set_certificate_map_request_resource: ::core::option::Option<
TargetHttpsProxiesSetCertificateMapRequest,
>,
/// Name of the TargetHttpsProxy resource whose CertificateMap is to be set. The name must be 1-63 characters long, and comply with RFC1035.
#[prost(string, tag = "52336748")]
pub target_https_proxy: ::prost::alloc::string::String,
}
/// A request message for TargetSslProxies.SetCertificateMap. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetCertificateMapTargetSslProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "343984954")]
pub target_ssl_proxies_set_certificate_map_request_resource: ::core::option::Option<
TargetSslProxiesSetCertificateMapRequest,
>,
/// Name of the TargetSslProxy resource whose CertificateMap is to be set. The name must be 1-63 characters long, and comply with RFC1035.
#[prost(string, tag = "338795853")]
pub target_ssl_proxy: ::prost::alloc::string::String,
}
/// A request message for Projects.SetCloudArmorTier. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetCloudArmorTierProjectRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "77053391")]
pub projects_set_cloud_armor_tier_request_resource: ::core::option::Option<
ProjectsSetCloudArmorTierRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetCommonInstanceMetadataOperationMetadata {
/// \[Output Only\] The client operation id.
#[prost(string, optional, tag = "297240295")]
pub client_operation_id: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Status information per location (location name is key). Example key: zones/us-central1-a
#[prost(btree_map = "string, message", tag = "408987796")]
pub per_location_operations: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo {
/// \[Output Only\] If state is `ABANDONED` or `FAILED`, this field is populated.
#[prost(message, optional, tag = "96784904")]
pub error: ::core::option::Option<Status>,
/// \[Output Only\] Status of the action, which can be one of the following: `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
/// Check the State enum for the list of possible values.
#[prost(string, optional, tag = "109757585")]
pub state: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo`.
pub mod set_common_instance_metadata_operation_metadata_per_location_operation_info {
/// \[Output Only\] Status of the action, which can be one of the following: `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// A value indicating that the enum field is not set.
UndefinedState = 0,
/// Operation not tracked in this location e.g. zone is marked as DOWN.
Abandoned = 81797556,
/// Operation has completed successfully.
Done = 2104194,
/// Operation is in an error state.
Failed = 455706685,
/// Operation is confirmed to be in the location.
Propagated = 507550299,
/// Operation is not yet confirmed to have been created in the location.
Propagating = 164807046,
Unspecified = 526786327,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::UndefinedState => "UNDEFINED_STATE",
State::Abandoned => "ABANDONED",
State::Done => "DONE",
State::Failed => "FAILED",
State::Propagated => "PROPAGATED",
State::Propagating => "PROPAGATING",
State::Unspecified => "UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATE" => Some(Self::UndefinedState),
"ABANDONED" => Some(Self::Abandoned),
"DONE" => Some(Self::Done),
"FAILED" => Some(Self::Failed),
"PROPAGATED" => Some(Self::Propagated),
"PROPAGATING" => Some(Self::Propagating),
"UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
/// A request message for Projects.SetCommonInstanceMetadata. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetCommonInstanceMetadataProjectRequest {
/// The body resource for this request
#[prost(message, optional, tag = "291086110")]
pub metadata_resource: ::core::option::Option<Metadata>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Projects.SetDefaultNetworkTier. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetDefaultNetworkTierProjectRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "126410762")]
pub projects_set_default_network_tier_request_resource: ::core::option::Option<
ProjectsSetDefaultNetworkTierRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Instances.SetDeletionProtection. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetDeletionProtectionInstanceRequest {
/// Whether the resource should be protected against deletion.
#[prost(bool, optional, tag = "458014698")]
pub deletion_protection: ::core::option::Option<bool>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Instances.SetDiskAutoDelete. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetDiskAutoDeleteInstanceRequest {
/// Whether to auto-delete the disk when the instance is deleted.
#[prost(bool, tag = "464761403")]
pub auto_delete: bool,
/// The device name of the disk to modify. Make a get() request on the instance to view currently attached disks and device names.
#[prost(string, tag = "67541716")]
pub device_name: ::prost::alloc::string::String,
/// The instance name for this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for BackendBuckets.SetEdgeSecurityPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetEdgeSecurityPolicyBackendBucketRequest {
/// Name of the BackendBucket resource to which the security policy should be set. The name should conform to RFC1035.
#[prost(string, tag = "91714037")]
pub backend_bucket: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "204135024")]
pub security_policy_reference_resource: ::core::option::Option<
SecurityPolicyReference,
>,
}
/// A request message for BackendServices.SetEdgeSecurityPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetEdgeSecurityPolicyBackendServiceRequest {
/// Name of the BackendService resource to which the edge security policy should be set. The name should conform to RFC1035.
#[prost(string, tag = "306946058")]
pub backend_service: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "204135024")]
pub security_policy_reference_resource: ::core::option::Option<
SecurityPolicyReference,
>,
}
/// A request message for BackendBuckets.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyBackendBucketRequest {
/// The body resource for this request
#[prost(message, optional, tag = "337048498")]
pub global_set_policy_request_resource: ::core::option::Option<
GlobalSetPolicyRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for BackendServices.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyBackendServiceRequest {
/// The body resource for this request
#[prost(message, optional, tag = "337048498")]
pub global_set_policy_request_resource: ::core::option::Option<
GlobalSetPolicyRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for Disks.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyDiskRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "382082107")]
pub zone_set_policy_request_resource: ::core::option::Option<ZoneSetPolicyRequest>,
}
/// A request message for FirewallPolicies.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyFirewallPolicyRequest {
/// The body resource for this request
#[prost(message, optional, tag = "177408606")]
pub global_organization_set_policy_request_resource: ::core::option::Option<
GlobalOrganizationSetPolicyRequest,
>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for Images.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyImageRequest {
/// The body resource for this request
#[prost(message, optional, tag = "337048498")]
pub global_set_policy_request_resource: ::core::option::Option<
GlobalSetPolicyRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for Instances.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyInstanceRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "382082107")]
pub zone_set_policy_request_resource: ::core::option::Option<ZoneSetPolicyRequest>,
}
/// A request message for InstanceTemplates.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyInstanceTemplateRequest {
/// The body resource for this request
#[prost(message, optional, tag = "337048498")]
pub global_set_policy_request_resource: ::core::option::Option<
GlobalSetPolicyRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for InstantSnapshots.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyInstantSnapshotRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "382082107")]
pub zone_set_policy_request_resource: ::core::option::Option<ZoneSetPolicyRequest>,
}
/// A request message for Licenses.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyLicenseRequest {
/// The body resource for this request
#[prost(message, optional, tag = "337048498")]
pub global_set_policy_request_resource: ::core::option::Option<
GlobalSetPolicyRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for MachineImages.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyMachineImageRequest {
/// The body resource for this request
#[prost(message, optional, tag = "337048498")]
pub global_set_policy_request_resource: ::core::option::Option<
GlobalSetPolicyRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for NetworkAttachments.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyNetworkAttachmentRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "276489091")]
pub region_set_policy_request_resource: ::core::option::Option<
RegionSetPolicyRequest,
>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for NetworkFirewallPolicies.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyNetworkFirewallPolicyRequest {
/// The body resource for this request
#[prost(message, optional, tag = "337048498")]
pub global_set_policy_request_resource: ::core::option::Option<
GlobalSetPolicyRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for NodeGroups.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyNodeGroupRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "382082107")]
pub zone_set_policy_request_resource: ::core::option::Option<ZoneSetPolicyRequest>,
}
/// A request message for NodeTemplates.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyNodeTemplateRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "276489091")]
pub region_set_policy_request_resource: ::core::option::Option<
RegionSetPolicyRequest,
>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for RegionBackendServices.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyRegionBackendServiceRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "276489091")]
pub region_set_policy_request_resource: ::core::option::Option<
RegionSetPolicyRequest,
>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for RegionDisks.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyRegionDiskRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "276489091")]
pub region_set_policy_request_resource: ::core::option::Option<
RegionSetPolicyRequest,
>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for RegionInstantSnapshots.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyRegionInstantSnapshotRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "276489091")]
pub region_set_policy_request_resource: ::core::option::Option<
RegionSetPolicyRequest,
>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for RegionNetworkFirewallPolicies.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyRegionNetworkFirewallPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "276489091")]
pub region_set_policy_request_resource: ::core::option::Option<
RegionSetPolicyRequest,
>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for Reservations.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyReservationRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "382082107")]
pub zone_set_policy_request_resource: ::core::option::Option<ZoneSetPolicyRequest>,
}
/// A request message for ResourcePolicies.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyResourcePolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "276489091")]
pub region_set_policy_request_resource: ::core::option::Option<
RegionSetPolicyRequest,
>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for ServiceAttachments.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicyServiceAttachmentRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "276489091")]
pub region_set_policy_request_resource: ::core::option::Option<
RegionSetPolicyRequest,
>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for Snapshots.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicySnapshotRequest {
/// The body resource for this request
#[prost(message, optional, tag = "337048498")]
pub global_set_policy_request_resource: ::core::option::Option<
GlobalSetPolicyRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for Subnetworks.SetIamPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetIamPolicySubnetworkRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "276489091")]
pub region_set_policy_request_resource: ::core::option::Option<
RegionSetPolicyRequest,
>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for InstanceGroupManagers.SetInstanceTemplate. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetInstanceTemplateInstanceGroupManagerRequest {
/// The name of the managed instance group.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "9809093")]
pub instance_group_managers_set_instance_template_request_resource: ::core::option::Option<
InstanceGroupManagersSetInstanceTemplateRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where the managed instance group is located.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionInstanceGroupManagers.SetInstanceTemplate. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetInstanceTemplateRegionInstanceGroupManagerRequest {
/// The name of the managed instance group.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "187310412")]
pub region_instance_group_managers_set_template_request_resource: ::core::option::Option<
RegionInstanceGroupManagersSetTemplateRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Addresses.SetLabels. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLabelsAddressRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "259357782")]
pub region_set_labels_request_resource: ::core::option::Option<
RegionSetLabelsRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for Disks.SetLabels. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLabelsDiskRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "364950798")]
pub zone_set_labels_request_resource: ::core::option::Option<ZoneSetLabelsRequest>,
}
/// A request message for ExternalVpnGateways.SetLabels. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLabelsExternalVpnGatewayRequest {
/// The body resource for this request
#[prost(message, optional, tag = "319917189")]
pub global_set_labels_request_resource: ::core::option::Option<
GlobalSetLabelsRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for ForwardingRules.SetLabels. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLabelsForwardingRuleRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "259357782")]
pub region_set_labels_request_resource: ::core::option::Option<
RegionSetLabelsRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for GlobalAddresses.SetLabels. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLabelsGlobalAddressRequest {
/// The body resource for this request
#[prost(message, optional, tag = "319917189")]
pub global_set_labels_request_resource: ::core::option::Option<
GlobalSetLabelsRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for GlobalForwardingRules.SetLabels. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLabelsGlobalForwardingRuleRequest {
/// The body resource for this request
#[prost(message, optional, tag = "319917189")]
pub global_set_labels_request_resource: ::core::option::Option<
GlobalSetLabelsRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for Images.SetLabels. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLabelsImageRequest {
/// The body resource for this request
#[prost(message, optional, tag = "319917189")]
pub global_set_labels_request_resource: ::core::option::Option<
GlobalSetLabelsRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for Instances.SetLabels. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLabelsInstanceRequest {
/// Name of the instance scoping this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "207749344")]
pub instances_set_labels_request_resource: ::core::option::Option<
InstancesSetLabelsRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InstantSnapshots.SetLabels. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLabelsInstantSnapshotRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "364950798")]
pub zone_set_labels_request_resource: ::core::option::Option<ZoneSetLabelsRequest>,
}
/// A request message for InterconnectAttachments.SetLabels. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLabelsInterconnectAttachmentRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "259357782")]
pub region_set_labels_request_resource: ::core::option::Option<
RegionSetLabelsRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for Interconnects.SetLabels. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLabelsInterconnectRequest {
/// The body resource for this request
#[prost(message, optional, tag = "319917189")]
pub global_set_labels_request_resource: ::core::option::Option<
GlobalSetLabelsRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for RegionDisks.SetLabels. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLabelsRegionDiskRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "259357782")]
pub region_set_labels_request_resource: ::core::option::Option<
RegionSetLabelsRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for RegionInstantSnapshots.SetLabels. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLabelsRegionInstantSnapshotRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "259357782")]
pub region_set_labels_request_resource: ::core::option::Option<
RegionSetLabelsRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for SecurityPolicies.SetLabels. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLabelsSecurityPolicyRequest {
/// The body resource for this request
#[prost(message, optional, tag = "319917189")]
pub global_set_labels_request_resource: ::core::option::Option<
GlobalSetLabelsRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for Snapshots.SetLabels. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLabelsSnapshotRequest {
/// The body resource for this request
#[prost(message, optional, tag = "319917189")]
pub global_set_labels_request_resource: ::core::option::Option<
GlobalSetLabelsRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for TargetVpnGateways.SetLabels. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLabelsTargetVpnGatewayRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "259357782")]
pub region_set_labels_request_resource: ::core::option::Option<
RegionSetLabelsRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for VpnGateways.SetLabels. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLabelsVpnGatewayRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "259357782")]
pub region_set_labels_request_resource: ::core::option::Option<
RegionSetLabelsRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for VpnTunnels.SetLabels. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLabelsVpnTunnelRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "259357782")]
pub region_set_labels_request_resource: ::core::option::Option<
RegionSetLabelsRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
}
/// A request message for Instances.SetMachineResources. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetMachineResourcesInstanceRequest {
/// Name of the instance scoping this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "196286318")]
pub instances_set_machine_resources_request_resource: ::core::option::Option<
InstancesSetMachineResourcesRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Instances.SetMachineType. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetMachineTypeInstanceRequest {
/// Name of the instance scoping this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "254157709")]
pub instances_set_machine_type_request_resource: ::core::option::Option<
InstancesSetMachineTypeRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Instances.SetMetadata. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetMetadataInstanceRequest {
/// Name of the instance scoping this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "291086110")]
pub metadata_resource: ::core::option::Option<Metadata>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Instances.SetMinCpuPlatform. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetMinCpuPlatformInstanceRequest {
/// Name of the instance scoping this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "148459368")]
pub instances_set_min_cpu_platform_request_resource: ::core::option::Option<
InstancesSetMinCpuPlatformRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Instances.SetName. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetNameInstanceRequest {
/// The instance name for this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "272080980")]
pub instances_set_name_request_resource: ::core::option::Option<
InstancesSetNameRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InstanceGroups.SetNamedPorts. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetNamedPortsInstanceGroupRequest {
/// The name of the instance group where the named ports are updated.
#[prost(string, tag = "81095253")]
pub instance_group: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "385151535")]
pub instance_groups_set_named_ports_request_resource: ::core::option::Option<
InstanceGroupsSetNamedPortsRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where the instance group is located.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionInstanceGroups.SetNamedPorts. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetNamedPortsRegionInstanceGroupRequest {
/// The name of the regional instance group where the named ports are updated.
#[prost(string, tag = "81095253")]
pub instance_group: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "1574938")]
pub region_instance_groups_set_named_ports_request_resource: ::core::option::Option<
RegionInstanceGroupsSetNamedPortsRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for NodeGroups.SetNodeTemplate. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetNodeTemplateNodeGroupRequest {
/// Name of the NodeGroup resource to update.
#[prost(string, tag = "469958146")]
pub node_group: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "117382321")]
pub node_groups_set_node_template_request_resource: ::core::option::Option<
NodeGroupsSetNodeTemplateRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Subnetworks.SetPrivateIpGoogleAccess. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetPrivateIpGoogleAccessSubnetworkRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the Subnetwork resource.
#[prost(string, tag = "307827694")]
pub subnetwork: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "268920696")]
pub subnetworks_set_private_ip_google_access_request_resource: ::core::option::Option<
SubnetworksSetPrivateIpGoogleAccessRequest,
>,
}
/// A request message for TargetSslProxies.SetProxyHeader. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetProxyHeaderTargetSslProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "205284526")]
pub target_ssl_proxies_set_proxy_header_request_resource: ::core::option::Option<
TargetSslProxiesSetProxyHeaderRequest,
>,
/// Name of the TargetSslProxy resource whose ProxyHeader is to be set.
#[prost(string, tag = "338795853")]
pub target_ssl_proxy: ::prost::alloc::string::String,
}
/// A request message for TargetTcpProxies.SetProxyHeader. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetProxyHeaderTargetTcpProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "219958339")]
pub target_tcp_proxies_set_proxy_header_request_resource: ::core::option::Option<
TargetTcpProxiesSetProxyHeaderRequest,
>,
/// Name of the TargetTcpProxy resource whose ProxyHeader is to be set.
#[prost(string, tag = "503065442")]
pub target_tcp_proxy: ::prost::alloc::string::String,
}
/// A request message for TargetHttpsProxies.SetQuicOverride. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetQuicOverrideTargetHttpsProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "72940258")]
pub target_https_proxies_set_quic_override_request_resource: ::core::option::Option<
TargetHttpsProxiesSetQuicOverrideRequest,
>,
/// Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should conform to RFC1035.
#[prost(string, tag = "52336748")]
pub target_https_proxy: ::prost::alloc::string::String,
}
/// A request message for Instances.SetScheduling. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetSchedulingInstanceRequest {
/// Instance name for this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "463181401")]
pub scheduling_resource: ::core::option::Option<Scheduling>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for BackendServices.SetSecurityPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetSecurityPolicyBackendServiceRequest {
/// Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035.
#[prost(string, tag = "306946058")]
pub backend_service: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "204135024")]
pub security_policy_reference_resource: ::core::option::Option<
SecurityPolicyReference,
>,
}
/// A request message for Instances.SetSecurityPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetSecurityPolicyInstanceRequest {
/// Name of the Instance resource to which the security policy should be set. The name should conform to RFC1035.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "248424586")]
pub instances_set_security_policy_request_resource: ::core::option::Option<
InstancesSetSecurityPolicyRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the zone scoping this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionBackendServices.SetSecurityPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetSecurityPolicyRegionBackendServiceRequest {
/// Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035.
#[prost(string, tag = "306946058")]
pub backend_service: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "204135024")]
pub security_policy_reference_resource: ::core::option::Option<
SecurityPolicyReference,
>,
}
/// A request message for TargetInstances.SetSecurityPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetSecurityPolicyTargetInstanceRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "204135024")]
pub security_policy_reference_resource: ::core::option::Option<
SecurityPolicyReference,
>,
/// Name of the TargetInstance resource to which the security policy should be set. The name should conform to RFC1035.
#[prost(string, tag = "289769347")]
pub target_instance: ::prost::alloc::string::String,
/// Name of the zone scoping this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for TargetPools.SetSecurityPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetSecurityPolicyTargetPoolRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "204135024")]
pub security_policy_reference_resource: ::core::option::Option<
SecurityPolicyReference,
>,
/// Name of the TargetPool resource to which the security policy should be set. The name should conform to RFC1035.
#[prost(string, tag = "62796298")]
pub target_pool: ::prost::alloc::string::String,
}
/// A request message for Instances.SetServiceAccount. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetServiceAccountInstanceRequest {
/// Name of the instance resource to start.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "275550008")]
pub instances_set_service_account_request_resource: ::core::option::Option<
InstancesSetServiceAccountRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Instances.SetShieldedInstanceIntegrityPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetShieldedInstanceIntegrityPolicyInstanceRequest {
/// Name or id of the instance scoping this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "409169462")]
pub shielded_instance_integrity_policy_resource: ::core::option::Option<
ShieldedInstanceIntegrityPolicy,
>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionTargetHttpsProxies.SetSslCertificates. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetSslCertificatesRegionTargetHttpsProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "390693383")]
pub region_target_https_proxies_set_ssl_certificates_request_resource: ::core::option::Option<
RegionTargetHttpsProxiesSetSslCertificatesRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetHttpsProxy resource to set an SslCertificates resource for.
#[prost(string, tag = "52336748")]
pub target_https_proxy: ::prost::alloc::string::String,
}
/// A request message for TargetHttpsProxies.SetSslCertificates. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetSslCertificatesTargetHttpsProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "223122908")]
pub target_https_proxies_set_ssl_certificates_request_resource: ::core::option::Option<
TargetHttpsProxiesSetSslCertificatesRequest,
>,
/// Name of the TargetHttpsProxy resource to set an SslCertificates resource for.
#[prost(string, tag = "52336748")]
pub target_https_proxy: ::prost::alloc::string::String,
}
/// A request message for TargetSslProxies.SetSslCertificates. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetSslCertificatesTargetSslProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "147940797")]
pub target_ssl_proxies_set_ssl_certificates_request_resource: ::core::option::Option<
TargetSslProxiesSetSslCertificatesRequest,
>,
/// Name of the TargetSslProxy resource whose SslCertificate resource is to be set.
#[prost(string, tag = "338795853")]
pub target_ssl_proxy: ::prost::alloc::string::String,
}
/// A request message for TargetHttpsProxies.SetSslPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetSslPolicyTargetHttpsProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "235403836")]
pub ssl_policy_reference_resource: ::core::option::Option<SslPolicyReference>,
/// Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035.
#[prost(string, tag = "52336748")]
pub target_https_proxy: ::prost::alloc::string::String,
}
/// A request message for TargetSslProxies.SetSslPolicy. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetSslPolicyTargetSslProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "235403836")]
pub ssl_policy_reference_resource: ::core::option::Option<SslPolicyReference>,
/// Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035.
#[prost(string, tag = "338795853")]
pub target_ssl_proxy: ::prost::alloc::string::String,
}
/// A request message for Instances.SetTags. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetTagsInstanceRequest {
/// Name of the instance scoping this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "331435380")]
pub tags_resource: ::core::option::Option<Tags>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for ForwardingRules.SetTarget. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetTargetForwardingRuleRequest {
/// Name of the ForwardingRule resource in which target is to be set.
#[prost(string, tag = "269964030")]
pub forwarding_rule: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "523721712")]
pub target_reference_resource: ::core::option::Option<TargetReference>,
}
/// A request message for GlobalForwardingRules.SetTarget. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetTargetGlobalForwardingRuleRequest {
/// Name of the ForwardingRule resource in which target is to be set.
#[prost(string, tag = "269964030")]
pub forwarding_rule: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "523721712")]
pub target_reference_resource: ::core::option::Option<TargetReference>,
}
/// A request message for InstanceGroupManagers.SetTargetPools. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetTargetPoolsInstanceGroupManagerRequest {
/// The name of the managed instance group.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "281150216")]
pub instance_group_managers_set_target_pools_request_resource: ::core::option::Option<
InstanceGroupManagersSetTargetPoolsRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where the managed instance group is located.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionInstanceGroupManagers.SetTargetPools. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetTargetPoolsRegionInstanceGroupManagerRequest {
/// Name of the managed instance group.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "78734717")]
pub region_instance_group_managers_set_target_pools_request_resource: ::core::option::Option<
RegionInstanceGroupManagersSetTargetPoolsRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionTargetHttpProxies.SetUrlMap. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetUrlMapRegionTargetHttpProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetHttpProxy to set a URL map for.
#[prost(string, tag = "206872421")]
pub target_http_proxy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "398701333")]
pub url_map_reference_resource: ::core::option::Option<UrlMapReference>,
}
/// A request message for RegionTargetHttpsProxies.SetUrlMap. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetUrlMapRegionTargetHttpsProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetHttpsProxy to set a URL map for.
#[prost(string, tag = "52336748")]
pub target_https_proxy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "398701333")]
pub url_map_reference_resource: ::core::option::Option<UrlMapReference>,
}
/// A request message for TargetHttpProxies.SetUrlMap. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetUrlMapTargetHttpProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetHttpProxy to set a URL map for.
#[prost(string, tag = "206872421")]
pub target_http_proxy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "398701333")]
pub url_map_reference_resource: ::core::option::Option<UrlMapReference>,
}
/// A request message for TargetHttpsProxies.SetUrlMap. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetUrlMapTargetHttpsProxyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the TargetHttpsProxy resource whose URL map is to be set.
#[prost(string, tag = "52336748")]
pub target_https_proxy: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "398701333")]
pub url_map_reference_resource: ::core::option::Option<UrlMapReference>,
}
/// A request message for Projects.SetUsageExportBucket. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetUsageExportBucketProjectRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "20260459")]
pub usage_export_location_resource: ::core::option::Option<UsageExportLocation>,
}
/// The share setting for reservations and sole tenancy node groups.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShareSettings {
/// A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS.
#[prost(btree_map = "string, message", tag = "134212406")]
pub project_map: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
ShareSettingsProjectConfig,
>,
/// Type of sharing for this shared-reservation
/// Check the ShareType enum for the list of possible values.
#[prost(string, optional, tag = "359533466")]
pub share_type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `ShareSettings`.
pub mod share_settings {
/// Type of sharing for this shared-reservation
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ShareType {
/// A value indicating that the enum field is not set.
UndefinedShareType = 0,
/// Default value.
Local = 72607563,
/// Shared-reservation is open to entire Organization
Organization = 274978099,
/// Default value. This value is unused.
Unspecified = 494771730,
/// Shared-reservation is open to specific projects
SpecificProjects = 347838695,
}
impl ShareType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ShareType::UndefinedShareType => "UNDEFINED_SHARE_TYPE",
ShareType::Local => "LOCAL",
ShareType::Organization => "ORGANIZATION",
ShareType::Unspecified => "SHARE_TYPE_UNSPECIFIED",
ShareType::SpecificProjects => "SPECIFIC_PROJECTS",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_SHARE_TYPE" => Some(Self::UndefinedShareType),
"LOCAL" => Some(Self::Local),
"ORGANIZATION" => Some(Self::Organization),
"SHARE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"SPECIFIC_PROJECTS" => Some(Self::SpecificProjects),
_ => None,
}
}
}
}
/// Config for each project in the share settings.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShareSettingsProjectConfig {
/// The project ID, should be same as the key of this project config in the parent map.
#[prost(string, optional, tag = "177513473")]
pub project_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A set of Shielded Instance options.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShieldedInstanceConfig {
/// Defines whether the instance has integrity monitoring enabled. Enabled by default.
#[prost(bool, optional, tag = "409071030")]
pub enable_integrity_monitoring: ::core::option::Option<bool>,
/// Defines whether the instance has Secure Boot enabled. Disabled by default.
#[prost(bool, optional, tag = "123568638")]
pub enable_secure_boot: ::core::option::Option<bool>,
/// Defines whether the instance has the vTPM enabled. Enabled by default.
#[prost(bool, optional, tag = "181858935")]
pub enable_vtpm: ::core::option::Option<bool>,
}
/// A Shielded Instance Identity.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShieldedInstanceIdentity {
/// An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
#[prost(message, optional, tag = "488268707")]
pub encryption_key: ::core::option::Option<ShieldedInstanceIdentityEntry>,
/// \[Output Only\] Type of the resource. Always compute#shieldedInstanceIdentity for shielded Instance identity entry.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
#[prost(message, optional, tag = "320948261")]
pub signing_key: ::core::option::Option<ShieldedInstanceIdentityEntry>,
}
/// A Shielded Instance Identity Entry.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShieldedInstanceIdentityEntry {
/// A PEM-encoded X.509 certificate. This field can be empty.
#[prost(string, optional, tag = "450178589")]
pub ek_cert: ::core::option::Option<::prost::alloc::string::String>,
/// A PEM-encoded public key.
#[prost(string, optional, tag = "308947940")]
pub ek_pub: ::core::option::Option<::prost::alloc::string::String>,
}
/// The policy describes the baseline against which Instance boot integrity is measured.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShieldedInstanceIntegrityPolicy {
/// Updates the integrity policy baseline using the measurements from the VM instance's most recent boot.
#[prost(bool, optional, tag = "245490215")]
pub update_auto_learn_policy: ::core::option::Option<bool>,
}
/// Represents a customer-supplied Signing Key used by Cloud CDN Signed URLs
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SignedUrlKey {
/// Name of the key. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "500938859")]
pub key_name: ::core::option::Option<::prost::alloc::string::String>,
/// 128-bit key value used for signing the URL. The key value must be a valid RFC 4648 Section 5 base64url encoded string.
#[prost(string, optional, tag = "504106897")]
pub key_value: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Instances.SimulateMaintenanceEvent. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SimulateMaintenanceEventInstanceRequest {
/// Name of the instance scoping this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Determines whether the customers receive notifications before migration. Only applicable to SF vms.
#[prost(bool, optional, tag = "405957627")]
pub with_extended_notifications: ::core::option::Option<bool>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for NodeGroups.SimulateMaintenanceEvent. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SimulateMaintenanceEventNodeGroupRequest {
/// Name of the NodeGroup resource whose nodes will go under maintenance simulation.
#[prost(string, tag = "469958146")]
pub node_group: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "351468764")]
pub node_groups_simulate_maintenance_event_request_resource: ::core::option::Option<
NodeGroupsSimulateMaintenanceEventRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// Represents a Persistent Disk Snapshot resource. You can use snapshots to back up data on a regular interval. For more information, read Creating persistent disk snapshots.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Snapshot {
/// \[Output Only\] The architecture of the snapshot. Valid values are ARM64 or X86_64.
/// Check the Architecture enum for the list of possible values.
#[prost(string, optional, tag = "302803283")]
pub architecture: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Set to true if snapshots are automatically created by applying resource policy on the target disk.
#[prost(bool, optional, tag = "463922264")]
pub auto_created: ::core::option::Option<bool>,
/// Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value.
#[prost(string, optional, tag = "68644169")]
pub chain_name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Size in bytes of the snapshot at creation time.
#[prost(int64, optional, tag = "125400077")]
pub creation_size_bytes: ::core::option::Option<i64>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Size of the source disk, specified in GB.
#[prost(int64, optional, tag = "316263735")]
pub disk_size_gb: ::core::option::Option<i64>,
/// \[Output Only\] Number of bytes downloaded to restore a snapshot to a disk.
#[prost(int64, optional, tag = "435054068")]
pub download_bytes: ::core::option::Option<i64>,
/// Whether this snapshot is created from a confidential compute mode disk. \[Output Only\]: This field is not set by user, but from source disk.
#[prost(bool, optional, tag = "102135228")]
pub enable_confidential_compute: ::core::option::Option<bool>,
/// \[Output Only\] A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
#[prost(message, repeated, tag = "79294545")]
pub guest_os_features: ::prost::alloc::vec::Vec<GuestOsFeature>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#snapshot for Snapshot resources.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a snapshot.
#[prost(string, optional, tag = "178124825")]
pub label_fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// \[Output Only\] Integer license codes indicating which licenses are attached to this snapshot.
#[prost(int64, repeated, tag = "45482664")]
pub license_codes: ::prost::alloc::vec::Vec<i64>,
/// \[Output Only\] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
#[prost(string, repeated, tag = "337642578")]
pub licenses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// An opaque location hint used to place the snapshot close to other resources. This field is for use by internal tools that use the public API.
#[prost(string, optional, tag = "350519505")]
pub location_hint: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Reserved for future use.
#[prost(bool, optional, tag = "480964257")]
pub satisfies_pzi: ::core::option::Option<bool>,
/// \[Output Only\] Reserved for future use.
#[prost(bool, optional, tag = "480964267")]
pub satisfies_pzs: ::core::option::Option<bool>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
#[prost(message, optional, tag = "43334526")]
pub snapshot_encryption_key: ::core::option::Option<CustomerEncryptionKey>,
/// Indicates the type of the snapshot.
/// Check the SnapshotType enum for the list of possible values.
#[prost(string, optional, tag = "124349653")]
pub snapshot_type: ::core::option::Option<::prost::alloc::string::String>,
/// The source disk used to create this snapshot.
#[prost(string, optional, tag = "451753793")]
pub source_disk: ::core::option::Option<::prost::alloc::string::String>,
/// The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
#[prost(message, optional, tag = "531501153")]
pub source_disk_encryption_key: ::core::option::Option<CustomerEncryptionKey>,
/// The source disk whose recovery checkpoint will be used to create this snapshot.
#[prost(string, optional, tag = "359837950")]
pub source_disk_for_recovery_checkpoint: ::core::option::Option<
::prost::alloc::string::String,
>,
/// \[Output Only\] The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
#[prost(string, optional, tag = "454190809")]
pub source_disk_id: ::core::option::Option<::prost::alloc::string::String>,
/// The source instant snapshot used to create this snapshot. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - <https://www.googleapis.com/compute/v1/projects/project/zones/zone> /instantSnapshots/instantSnapshot - projects/project/zones/zone/instantSnapshots/instantSnapshot - zones/zone/instantSnapshots/instantSnapshot
#[prost(string, optional, tag = "219202054")]
pub source_instant_snapshot: ::core::option::Option<::prost::alloc::string::String>,
/// Customer provided encryption key when creating Snapshot from Instant Snapshot.
#[prost(message, optional, tag = "436536060")]
pub source_instant_snapshot_encryption_key: ::core::option::Option<
CustomerEncryptionKey,
>,
/// \[Output Only\] The unique ID of the instant snapshot used to create this snapshot. This value identifies the exact instant snapshot that was used to create this persistent disk. For example, if you created the persistent disk from an instant snapshot that was later deleted and recreated under the same name, the source instant snapshot ID would identify the exact instant snapshot that was used.
#[prost(string, optional, tag = "287582708")]
pub source_instant_snapshot_id: ::core::option::Option<
::prost::alloc::string::String,
>,
/// \[Output Only\] URL of the resource policy which created this scheduled snapshot.
#[prost(string, optional, tag = "235756291")]
pub source_snapshot_schedule_policy: ::core::option::Option<
::prost::alloc::string::String,
>,
/// \[Output Only\] ID of the resource policy which created this scheduled snapshot.
#[prost(string, optional, tag = "70489047")]
pub source_snapshot_schedule_policy_id: ::core::option::Option<
::prost::alloc::string::String,
>,
/// \[Output Only\] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.
#[prost(int64, optional, tag = "424631719")]
pub storage_bytes: ::core::option::Option<i64>,
/// \[Output Only\] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
/// Check the StorageBytesStatus enum for the list of possible values.
#[prost(string, optional, tag = "490739082")]
pub storage_bytes_status: ::core::option::Option<::prost::alloc::string::String>,
/// Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
#[prost(string, repeated, tag = "328005274")]
pub storage_locations: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Snapshot`.
pub mod snapshot {
/// \[Output Only\] The architecture of the snapshot. Valid values are ARM64 or X86_64.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Architecture {
/// A value indicating that the enum field is not set.
UndefinedArchitecture = 0,
/// Default value indicating Architecture is not set.
Unspecified = 394750507,
/// Machines with architecture ARM64
Arm64 = 62547450,
/// Machines with architecture X86_64
X8664 = 425300551,
}
impl Architecture {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Architecture::UndefinedArchitecture => "UNDEFINED_ARCHITECTURE",
Architecture::Unspecified => "ARCHITECTURE_UNSPECIFIED",
Architecture::Arm64 => "ARM64",
Architecture::X8664 => "X86_64",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ARCHITECTURE" => Some(Self::UndefinedArchitecture),
"ARCHITECTURE_UNSPECIFIED" => Some(Self::Unspecified),
"ARM64" => Some(Self::Arm64),
"X86_64" => Some(Self::X8664),
_ => None,
}
}
}
/// Indicates the type of the snapshot.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum SnapshotType {
/// A value indicating that the enum field is not set.
UndefinedSnapshotType = 0,
Archive = 506752162,
Standard = 484642493,
}
impl SnapshotType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
SnapshotType::UndefinedSnapshotType => "UNDEFINED_SNAPSHOT_TYPE",
SnapshotType::Archive => "ARCHIVE",
SnapshotType::Standard => "STANDARD",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_SNAPSHOT_TYPE" => Some(Self::UndefinedSnapshotType),
"ARCHIVE" => Some(Self::Archive),
"STANDARD" => Some(Self::Standard),
_ => None,
}
}
}
/// \[Output Only\] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// Snapshot creation is in progress.
Creating = 455564985,
/// Snapshot is currently being deleted.
Deleting = 528602024,
/// Snapshot creation failed.
Failed = 455706685,
/// Snapshot has been created successfully.
Ready = 77848963,
/// Snapshot is being uploaded.
Uploading = 267603489,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Creating => "CREATING",
Status::Deleting => "DELETING",
Status::Failed => "FAILED",
Status::Ready => "READY",
Status::Uploading => "UPLOADING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"CREATING" => Some(Self::Creating),
"DELETING" => Some(Self::Deleting),
"FAILED" => Some(Self::Failed),
"READY" => Some(Self::Ready),
"UPLOADING" => Some(Self::Uploading),
_ => None,
}
}
}
/// \[Output Only\] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum StorageBytesStatus {
/// A value indicating that the enum field is not set.
UndefinedStorageBytesStatus = 0,
Updating = 494614342,
UpToDate = 101306702,
}
impl StorageBytesStatus {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
StorageBytesStatus::UndefinedStorageBytesStatus => {
"UNDEFINED_STORAGE_BYTES_STATUS"
}
StorageBytesStatus::Updating => "UPDATING",
StorageBytesStatus::UpToDate => "UP_TO_DATE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STORAGE_BYTES_STATUS" => {
Some(Self::UndefinedStorageBytesStatus)
}
"UPDATING" => Some(Self::Updating),
"UP_TO_DATE" => Some(Self::UpToDate),
_ => None,
}
}
}
}
/// Contains a list of Snapshot resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SnapshotList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Snapshot resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Snapshot>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SnapshotSettings {
/// Policy of which storage location is going to be resolved, and additional data that particularizes how the policy is going to be carried out.
#[prost(message, optional, tag = "460859641")]
pub storage_location: ::core::option::Option<
SnapshotSettingsStorageLocationSettings,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SnapshotSettingsStorageLocationSettings {
/// When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.
#[prost(btree_map = "string, message", tag = "413423454")]
pub locations: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
SnapshotSettingsStorageLocationSettingsStorageLocationPreference,
>,
/// The chosen location policy.
/// Check the Policy enum for the list of possible values.
#[prost(string, optional, tag = "91071794")]
pub policy: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `SnapshotSettingsStorageLocationSettings`.
pub mod snapshot_settings_storage_location_settings {
/// The chosen location policy.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Policy {
/// A value indicating that the enum field is not set.
UndefinedPolicy = 0,
/// Store snapshot in the same region as with the originating disk. No additional parameters are needed.
LocalRegion = 403535464,
/// Store snapshot to the nearest multi region GCS bucket, relative to the originating disk. No additional parameters are needed.
NearestMultiRegion = 212467515,
/// Store snapshot in the specific locations, as specified by the user. The list of regions to store must be defined under the `locations` field.
SpecificLocations = 280093809,
StorageLocationPolicyUnspecified = 250644592,
}
impl Policy {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Policy::UndefinedPolicy => "UNDEFINED_POLICY",
Policy::LocalRegion => "LOCAL_REGION",
Policy::NearestMultiRegion => "NEAREST_MULTI_REGION",
Policy::SpecificLocations => "SPECIFIC_LOCATIONS",
Policy::StorageLocationPolicyUnspecified => {
"STORAGE_LOCATION_POLICY_UNSPECIFIED"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_POLICY" => Some(Self::UndefinedPolicy),
"LOCAL_REGION" => Some(Self::LocalRegion),
"NEAREST_MULTI_REGION" => Some(Self::NearestMultiRegion),
"SPECIFIC_LOCATIONS" => Some(Self::SpecificLocations),
"STORAGE_LOCATION_POLICY_UNSPECIFIED" => {
Some(Self::StorageLocationPolicyUnspecified)
}
_ => None,
}
}
}
}
/// A structure for specifying storage locations.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SnapshotSettingsStorageLocationSettingsStorageLocationPreference {
/// Name of the location. It should be one of the GCS buckets.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SourceDiskEncryptionKey {
/// The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
#[prost(message, optional, tag = "271660677")]
pub disk_encryption_key: ::core::option::Option<CustomerEncryptionKey>,
/// URL of the disk attached to the source instance. This can be a full or valid partial URL. For example, the following are valid values: - <https://www.googleapis.com/compute/v1/projects/project/zones/zone> /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
#[prost(string, optional, tag = "451753793")]
pub source_disk: ::core::option::Option<::prost::alloc::string::String>,
}
/// A specification of the parameters to use when creating the instance template from a source instance.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SourceInstanceParams {
/// Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.
#[prost(message, repeated, tag = "235580623")]
pub disk_configs: ::prost::alloc::vec::Vec<DiskInstantiationConfig>,
}
/// DEPRECATED: Please use compute#instanceProperties instead. New properties will not be added to this field.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SourceInstanceProperties {
/// Enables instances created based on this machine image to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify true. If unsure, leave this set to false. See the Enable IP forwarding documentation for more information.
#[prost(bool, optional, tag = "467731324")]
pub can_ip_forward: ::core::option::Option<bool>,
/// Whether the instance created from this machine image should be protected against deletion.
#[prost(bool, optional, tag = "458014698")]
pub deletion_protection: ::core::option::Option<bool>,
/// An optional text description for the instances that are created from this machine image.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// An array of disks that are associated with the instances that are created from this machine image.
#[prost(message, repeated, tag = "95594102")]
pub disks: ::prost::alloc::vec::Vec<SavedAttachedDisk>,
/// A list of guest accelerator cards' type and count to use for instances created from this machine image.
#[prost(message, repeated, tag = "463595119")]
pub guest_accelerators: ::prost::alloc::vec::Vec<AcceleratorConfig>,
/// KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified.
/// Check the KeyRevocationActionType enum for the list of possible values.
#[prost(string, optional, tag = "235941474")]
pub key_revocation_action_type: ::core::option::Option<
::prost::alloc::string::String,
>,
/// Labels to apply to instances that are created from this machine image.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// The machine type to use for instances that are created from this machine image.
#[prost(string, optional, tag = "227711026")]
pub machine_type: ::core::option::Option<::prost::alloc::string::String>,
/// The metadata key/value pairs to assign to instances that are created from this machine image. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.
#[prost(message, optional, tag = "86866735")]
pub metadata: ::core::option::Option<Metadata>,
/// Minimum cpu/platform to be used by instances created from this machine image. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.
#[prost(string, optional, tag = "242912759")]
pub min_cpu_platform: ::core::option::Option<::prost::alloc::string::String>,
/// An array of network access configurations for this interface.
#[prost(message, repeated, tag = "52735243")]
pub network_interfaces: ::prost::alloc::vec::Vec<NetworkInterface>,
/// Specifies the scheduling options for the instances that are created from this machine image.
#[prost(message, optional, tag = "386688404")]
pub scheduling: ::core::option::Option<Scheduling>,
/// A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from this machine image. Use metadata queries to obtain the access tokens for these instances.
#[prost(message, repeated, tag = "277537328")]
pub service_accounts: ::prost::alloc::vec::Vec<ServiceAccount>,
/// A list of tags to apply to the instances that are created from this machine image. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035.
#[prost(message, optional, tag = "3552281")]
pub tags: ::core::option::Option<Tags>,
}
/// Nested message and enum types in `SourceInstanceProperties`.
pub mod source_instance_properties {
/// KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum KeyRevocationActionType {
/// A value indicating that the enum field is not set.
UndefinedKeyRevocationActionType = 0,
/// Default value. This value is unused.
Unspecified = 467110106,
/// Indicates user chose no operation.
None = 2402104,
/// Indicates user chose to opt for VM shutdown on key revocation.
Stop = 2555906,
}
impl KeyRevocationActionType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
KeyRevocationActionType::UndefinedKeyRevocationActionType => {
"UNDEFINED_KEY_REVOCATION_ACTION_TYPE"
}
KeyRevocationActionType::Unspecified => {
"KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED"
}
KeyRevocationActionType::None => "NONE",
KeyRevocationActionType::Stop => "STOP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_KEY_REVOCATION_ACTION_TYPE" => {
Some(Self::UndefinedKeyRevocationActionType)
}
"KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"NONE" => Some(Self::None),
"STOP" => Some(Self::Stop),
_ => None,
}
}
}
}
/// Represents an SSL certificate resource. Google Compute Engine has two SSL certificate resources: * [Global](/compute/docs/reference/rest/v1/sslCertificates) * [Regional](/compute/docs/reference/rest/v1/regionSslCertificates) The global SSL certificates (sslCertificates) are used by: - Global external Application Load Balancers - Classic Application Load Balancers - Proxy Network Load Balancers (with target SSL proxies) The regional SSL certificates (regionSslCertificates) are used by: - Regional external Application Load Balancers - Regional internal Application Load Balancers Optionally, certificate file contents that you upload can contain a set of up to five PEM-encoded certificates. The API call creates an object (sslCertificate) that holds this data. You can use SSL keys and certificates to secure connections to a load balancer. For more information, read Creating and using SSL certificates, SSL certificates quotas and limits, and Troubleshooting SSL certificates.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SslCertificate {
/// A value read into memory from a certificate file. The certificate file must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert.
#[prost(string, optional, tag = "341787031")]
pub certificate: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Expire time of the certificate. RFC3339
#[prost(string, optional, tag = "440691181")]
pub expire_time: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#sslCertificate for SSL certificates.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Configuration and status of a managed SSL certificate.
#[prost(message, optional, tag = "298389407")]
pub managed: ::core::option::Option<SslCertificateManagedSslCertificate>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// A value read into memory from a write-only private key file. The private key file must be in PEM format. For security, only insert requests include this field.
#[prost(string, optional, tag = "361331107")]
pub private_key: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the region where the regional SSL Certificate resides. This field is not applicable to global SSL Certificate.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// Configuration and status of a self-managed SSL certificate.
#[prost(message, optional, tag = "329284012")]
pub self_managed: ::core::option::Option<SslCertificateSelfManagedSslCertificate>,
/// \[Output Only\] Domains associated with the certificate via Subject Alternative Name.
#[prost(string, repeated, tag = "528807907")]
pub subject_alternative_names: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED". If not specified, the certificate is self-managed and the fields certificate and private_key are used.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `SslCertificate`.
pub mod ssl_certificate {
/// (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED". If not specified, the certificate is self-managed and the fields certificate and private_key are used.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
/// Google-managed SSLCertificate.
Managed = 479501183,
/// Certificate uploaded by user.
SelfManaged = 434437516,
Unspecified = 437714322,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::Managed => "MANAGED",
Type::SelfManaged => "SELF_MANAGED",
Type::Unspecified => "TYPE_UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"MANAGED" => Some(Self::Managed),
"SELF_MANAGED" => Some(Self::SelfManaged),
"TYPE_UNSPECIFIED" => Some(Self::Unspecified),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SslCertificateAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of SslCertificatesScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
SslCertificatesScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#sslCertificateAggregatedList for lists of SSL Certificates.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of SslCertificate resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SslCertificateList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of SslCertificate resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<SslCertificate>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Configuration and status of a managed SSL certificate.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SslCertificateManagedSslCertificate {
/// \[Output only\] Detailed statuses of the domains specified for managed certificate resource.
#[prost(btree_map = "string, string", tag = "360305613")]
pub domain_status: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// The domains for which a managed SSL certificate will be generated. Each Google-managed SSL certificate supports up to the [maximum number of domains per Google-managed SSL certificate](/load-balancing/docs/quotas#ssl_certificates).
#[prost(string, repeated, tag = "226935855")]
pub domains: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output only\] Status of the managed certificate resource.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `SslCertificateManagedSslCertificate`.
pub mod ssl_certificate_managed_ssl_certificate {
/// \[Output only\] Status of the managed certificate resource.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// The certificate management is working, and a certificate has been provisioned.
Active = 314733318,
ManagedCertificateStatusUnspecified = 474800850,
/// The certificate management is working. GCP will attempt to provision the first certificate.
Provisioning = 290896621,
/// Certificate provisioning failed due to an issue with the DNS or load balancing configuration. For details of which domain failed, consult domain_status field.
ProvisioningFailed = 76813775,
/// Certificate provisioning failed due to an issue with the DNS or load balancing configuration. It won't be retried. To try again delete and create a new managed SslCertificate resource. For details of which domain failed, consult domain_status field.
ProvisioningFailedPermanently = 275036203,
/// Renewal of the certificate has failed due to an issue with the DNS or load balancing configuration. The existing cert is still serving; however, it will expire shortly. To provision a renewed certificate, delete and create a new managed SslCertificate resource. For details on which domain failed, consult domain_status field.
RenewalFailed = 434659076,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Active => "ACTIVE",
Status::ManagedCertificateStatusUnspecified => {
"MANAGED_CERTIFICATE_STATUS_UNSPECIFIED"
}
Status::Provisioning => "PROVISIONING",
Status::ProvisioningFailed => "PROVISIONING_FAILED",
Status::ProvisioningFailedPermanently => {
"PROVISIONING_FAILED_PERMANENTLY"
}
Status::RenewalFailed => "RENEWAL_FAILED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"ACTIVE" => Some(Self::Active),
"MANAGED_CERTIFICATE_STATUS_UNSPECIFIED" => {
Some(Self::ManagedCertificateStatusUnspecified)
}
"PROVISIONING" => Some(Self::Provisioning),
"PROVISIONING_FAILED" => Some(Self::ProvisioningFailed),
"PROVISIONING_FAILED_PERMANENTLY" => {
Some(Self::ProvisioningFailedPermanently)
}
"RENEWAL_FAILED" => Some(Self::RenewalFailed),
_ => None,
}
}
}
}
/// Configuration and status of a self-managed SSL certificate.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SslCertificateSelfManagedSslCertificate {
/// A local certificate file. The certificate must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert.
#[prost(string, optional, tag = "341787031")]
pub certificate: ::core::option::Option<::prost::alloc::string::String>,
/// A write-only private key in PEM format. Only insert requests will include this field.
#[prost(string, optional, tag = "361331107")]
pub private_key: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SslCertificatesScopedList {
/// List of SslCertificates contained in this scope.
#[prost(message, repeated, tag = "366006543")]
pub ssl_certificates: ::prost::alloc::vec::Vec<SslCertificate>,
/// Informational warning which replaces the list of backend services when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SslPoliciesAggregatedList {
#[prost(string, optional, tag = "3123477")]
pub etag: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of SslPoliciesScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
SslPoliciesScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#sslPolicyAggregatedList for lists of SSL Policies.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SslPoliciesList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of SslPolicy resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<SslPolicy>,
/// \[Output Only\] Type of the resource. Always compute#sslPoliciesList for lists of sslPolicies.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SslPoliciesListAvailableFeaturesResponse {
#[prost(string, repeated, tag = "246211645")]
pub features: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SslPoliciesScopedList {
/// A list of SslPolicies contained in this scope.
#[prost(message, repeated, tag = "209941027")]
pub ssl_policies: ::prost::alloc::vec::Vec<SslPolicy>,
/// Informational warning which replaces the list of SSL policies when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represents an SSL Policy resource. Use SSL policies to control SSL features, such as versions and cipher suites, that are offered by Application Load Balancers and proxy Network Load Balancers. For more information, read SSL policies overview.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SslPolicy {
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// A list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM.
#[prost(string, repeated, tag = "34789707")]
pub custom_features: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The list of features enabled in the SSL policy.
#[prost(string, repeated, tag = "469017467")]
pub enabled_features: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an SslPolicy.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output only\] Type of the resource. Always compute#sslPolicyfor SSL policies.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2.
/// Check the MinTlsVersion enum for the list of possible values.
#[prost(string, optional, tag = "8155943")]
pub min_tls_version: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field.
/// Check the Profile enum for the list of possible values.
#[prost(string, optional, tag = "227445161")]
pub profile: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
#[prost(message, repeated, tag = "498091095")]
pub warnings: ::prost::alloc::vec::Vec<Warnings>,
}
/// Nested message and enum types in `SslPolicy`.
pub mod ssl_policy {
/// The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum MinTlsVersion {
/// A value indicating that the enum field is not set.
UndefinedMinTlsVersion = 0,
/// TLS 1.0
Tls10 = 33116734,
/// TLS 1.1
Tls11 = 33116735,
/// TLS 1.2
Tls12 = 33116736,
}
impl MinTlsVersion {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
MinTlsVersion::UndefinedMinTlsVersion => "UNDEFINED_MIN_TLS_VERSION",
MinTlsVersion::Tls10 => "TLS_1_0",
MinTlsVersion::Tls11 => "TLS_1_1",
MinTlsVersion::Tls12 => "TLS_1_2",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_MIN_TLS_VERSION" => Some(Self::UndefinedMinTlsVersion),
"TLS_1_0" => Some(Self::Tls10),
"TLS_1_1" => Some(Self::Tls11),
"TLS_1_2" => Some(Self::Tls12),
_ => None,
}
}
}
/// Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Profile {
/// A value indicating that the enum field is not set.
UndefinedProfile = 0,
/// Compatible profile. Allows the broadset set of clients, even those which support only out-of-date SSL features to negotiate with the load balancer.
Compatible = 179357396,
/// Custom profile. Allow only the set of allowed SSL features specified in the customFeatures field.
Custom = 388595569,
/// Modern profile. Supports a wide set of SSL features, allowing modern clients to negotiate SSL with the load balancer.
Modern = 132013855,
/// Restricted profile. Supports a reduced set of SSL features, intended to meet stricter compliance requirements.
Restricted = 261551195,
}
impl Profile {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Profile::UndefinedProfile => "UNDEFINED_PROFILE",
Profile::Compatible => "COMPATIBLE",
Profile::Custom => "CUSTOM",
Profile::Modern => "MODERN",
Profile::Restricted => "RESTRICTED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PROFILE" => Some(Self::UndefinedProfile),
"COMPATIBLE" => Some(Self::Compatible),
"CUSTOM" => Some(Self::Custom),
"MODERN" => Some(Self::Modern),
"RESTRICTED" => Some(Self::Restricted),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SslPolicyReference {
/// URL of the SSL policy resource. Set this to empty string to clear any existing SSL policy associated with the target proxy resource.
#[prost(string, optional, tag = "295190213")]
pub ssl_policy: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Disks.StartAsyncReplication. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartAsyncReplicationDiskRequest {
/// The name of the persistent disk.
#[prost(string, tag = "3083677")]
pub disk: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "470814554")]
pub disks_start_async_replication_request_resource: ::core::option::Option<
DisksStartAsyncReplicationRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionDisks.StartAsyncReplication. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartAsyncReplicationRegionDiskRequest {
/// The name of the persistent disk.
#[prost(string, tag = "3083677")]
pub disk: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "474326021")]
pub region_disks_start_async_replication_request_resource: ::core::option::Option<
RegionDisksStartAsyncReplicationRequest,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Instances.Start. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartInstanceRequest {
/// Name of the instance resource to start.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Instances.StartWithEncryptionKey. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartWithEncryptionKeyInstanceRequest {
/// Name of the instance resource to start.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "441712511")]
pub instances_start_with_encryption_key_request_resource: ::core::option::Option<
InstancesStartWithEncryptionKeyRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StatefulPolicy {
#[prost(message, optional, tag = "2634026")]
pub preserved_state: ::core::option::Option<StatefulPolicyPreservedState>,
}
/// Configuration of preserved resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StatefulPolicyPreservedState {
/// Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.
#[prost(btree_map = "string, message", tag = "95594102")]
pub disks: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
StatefulPolicyPreservedStateDiskDevice,
>,
/// External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.
#[prost(btree_map = "string, message", tag = "532687245")]
pub external_i_ps: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
StatefulPolicyPreservedStateNetworkIp,
>,
/// Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.
#[prost(btree_map = "string, message", tag = "215731675")]
pub internal_i_ps: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
StatefulPolicyPreservedStateNetworkIp,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StatefulPolicyPreservedStateDiskDevice {
/// These stateful disks will never be deleted during autohealing, update or VM instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted.
/// Check the AutoDelete enum for the list of possible values.
#[prost(string, optional, tag = "464761403")]
pub auto_delete: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `StatefulPolicyPreservedStateDiskDevice`.
pub mod stateful_policy_preserved_state_disk_device {
/// These stateful disks will never be deleted during autohealing, update or VM instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum AutoDelete {
/// A value indicating that the enum field is not set.
UndefinedAutoDelete = 0,
Never = 74175084,
OnPermanentInstanceDeletion = 95727719,
}
impl AutoDelete {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
AutoDelete::UndefinedAutoDelete => "UNDEFINED_AUTO_DELETE",
AutoDelete::Never => "NEVER",
AutoDelete::OnPermanentInstanceDeletion => {
"ON_PERMANENT_INSTANCE_DELETION"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_AUTO_DELETE" => Some(Self::UndefinedAutoDelete),
"NEVER" => Some(Self::Never),
"ON_PERMANENT_INSTANCE_DELETION" => {
Some(Self::OnPermanentInstanceDeletion)
}
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StatefulPolicyPreservedStateNetworkIp {
/// These stateful IPs will never be released during autohealing, update or VM instance recreate operations. This flag is used to configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted.
/// Check the AutoDelete enum for the list of possible values.
#[prost(string, optional, tag = "464761403")]
pub auto_delete: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `StatefulPolicyPreservedStateNetworkIp`.
pub mod stateful_policy_preserved_state_network_ip {
/// These stateful IPs will never be released during autohealing, update or VM instance recreate operations. This flag is used to configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum AutoDelete {
/// A value indicating that the enum field is not set.
UndefinedAutoDelete = 0,
Never = 74175084,
OnPermanentInstanceDeletion = 95727719,
}
impl AutoDelete {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
AutoDelete::UndefinedAutoDelete => "UNDEFINED_AUTO_DELETE",
AutoDelete::Never => "NEVER",
AutoDelete::OnPermanentInstanceDeletion => {
"ON_PERMANENT_INSTANCE_DELETION"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_AUTO_DELETE" => Some(Self::UndefinedAutoDelete),
"NEVER" => Some(Self::Never),
"ON_PERMANENT_INSTANCE_DELETION" => {
Some(Self::OnPermanentInstanceDeletion)
}
_ => None,
}
}
}
}
/// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](<https://github.com/grpc>). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](<https://cloud.google.com/apis/design/errors>).
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Status {
/// The status code, which should be an enum value of google.rpc.Code.
#[prost(int32, optional, tag = "3059181")]
pub code: ::core::option::Option<i32>,
/// A list of messages that carry the error details. There is a common set of message types for APIs to use.
#[prost(message, repeated, tag = "483979842")]
pub details: ::prost::alloc::vec::Vec<::prost_types::Any>,
/// A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
#[prost(string, optional, tag = "418054151")]
pub message: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Disks.StopAsyncReplication. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopAsyncReplicationDiskRequest {
/// The name of the persistent disk.
#[prost(string, tag = "3083677")]
pub disk: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionDisks.StopAsyncReplication. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopAsyncReplicationRegionDiskRequest {
/// The name of the persistent disk.
#[prost(string, tag = "3083677")]
pub disk: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Disks.StopGroupAsyncReplication. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopGroupAsyncReplicationDiskRequest {
/// The body resource for this request
#[prost(message, optional, tag = "346815509")]
pub disks_stop_group_async_replication_resource_resource: ::core::option::Option<
DisksStopGroupAsyncReplicationResource,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request. This must be the zone of the primary or secondary disks in the consistency group.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionDisks.StopGroupAsyncReplication. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopGroupAsyncReplicationRegionDiskRequest {
/// The body resource for this request
#[prost(message, optional, tag = "346815509")]
pub disks_stop_group_async_replication_resource_resource: ::core::option::Option<
DisksStopGroupAsyncReplicationResource,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request. This must be the region of the primary or secondary disks in the consistency group.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Instances.Stop. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopInstanceRequest {
/// This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded.
#[prost(bool, optional, tag = "319517903")]
pub discard_local_ssd: ::core::option::Option<bool>,
/// Name of the instance resource to stop.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// Represents a Subnetwork resource. A subnetwork (also known as a subnet) is a logical partition of a Virtual Private Cloud network with one primary IP range and zero or more secondary IP ranges. For more information, read Virtual Private Cloud (VPC) Network.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Subnetwork {
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. This field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
#[prost(bool, optional, tag = "151544420")]
pub enable_flow_logs: ::core::option::Option<bool>,
/// The external IPv6 address range that is owned by this subnetwork.
#[prost(string, optional, tag = "139299190")]
pub external_ipv6_prefix: ::core::option::Option<::prost::alloc::string::String>,
/// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The gateway address for default routes to reach destination addresses outside this subnetwork.
#[prost(string, optional, tag = "459867385")]
pub gateway_address: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] The internal IPv6 address range that is assigned to this subnetwork.
#[prost(string, optional, tag = "506270056")]
pub internal_ipv6_prefix: ::core::option::Option<::prost::alloc::string::String>,
/// The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any range listed in the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
#[prost(string, optional, tag = "98117322")]
pub ip_cidr_range: ::core::option::Option<::prost::alloc::string::String>,
/// The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack.
/// Check the Ipv6AccessType enum for the list of possible values.
#[prost(string, optional, tag = "504658653")]
pub ipv6_access_type: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This field is for internal use.
#[prost(string, optional, tag = "273141258")]
pub ipv6_cidr_range: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Type of the resource. Always compute#subnetwork for Subnetwork resources.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
#[prost(message, optional, tag = "351299741")]
pub log_config: ::core::option::Option<SubnetworkLogConfig>,
/// The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. This field can be set only at resource creation time.
#[prost(string, optional, tag = "232872494")]
pub network: ::core::option::Option<::prost::alloc::string::String>,
/// Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.
#[prost(bool, optional, tag = "421491790")]
pub private_ip_google_access: ::core::option::Option<bool>,
/// This field is for internal use. This field can be both set at resource creation time and updated using patch.
/// Check the PrivateIpv6GoogleAccess enum for the list of possible values.
#[prost(string, optional, tag = "48277006")]
pub private_ipv6_google_access: ::core::option::Option<
::prost::alloc::string::String,
>,
/// The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
/// Check the Purpose enum for the list of possible values.
#[prost(string, optional, tag = "316407070")]
pub purpose: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the reserved internal range.
#[prost(string, optional, tag = "286248754")]
pub reserved_internal_range: ::core::option::Option<::prost::alloc::string::String>,
/// The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request.
/// Check the Role enum for the list of possible values.
#[prost(string, optional, tag = "3506294")]
pub role: ::core::option::Option<::prost::alloc::string::String>,
/// An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
#[prost(message, repeated, tag = "136658915")]
pub secondary_ip_ranges: ::prost::alloc::vec::Vec<SubnetworkSecondaryRange>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch.
/// Check the StackType enum for the list of possible values.
#[prost(string, optional, tag = "425908881")]
pub stack_type: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY
/// Check the State enum for the list of possible values.
#[prost(string, optional, tag = "109757585")]
pub state: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Subnetwork`.
pub mod subnetwork {
/// The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Ipv6AccessType {
/// A value indicating that the enum field is not set.
UndefinedIpv6AccessType = 0,
/// VMs on this subnet will be assigned IPv6 addresses that are accessible via the Internet, as well as the VPC network.
External = 35607499,
/// VMs on this subnet will be assigned IPv6 addresses that are only accessible over the VPC network.
Internal = 279295677,
UnspecifiedIpv6AccessType = 313080613,
}
impl Ipv6AccessType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Ipv6AccessType::UndefinedIpv6AccessType => "UNDEFINED_IPV6_ACCESS_TYPE",
Ipv6AccessType::External => "EXTERNAL",
Ipv6AccessType::Internal => "INTERNAL",
Ipv6AccessType::UnspecifiedIpv6AccessType => {
"UNSPECIFIED_IPV6_ACCESS_TYPE"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_IPV6_ACCESS_TYPE" => Some(Self::UndefinedIpv6AccessType),
"EXTERNAL" => Some(Self::External),
"INTERNAL" => Some(Self::Internal),
"UNSPECIFIED_IPV6_ACCESS_TYPE" => Some(Self::UnspecifiedIpv6AccessType),
_ => None,
}
}
}
/// This field is for internal use. This field can be both set at resource creation time and updated using patch.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum PrivateIpv6GoogleAccess {
/// A value indicating that the enum field is not set.
UndefinedPrivateIpv6GoogleAccess = 0,
/// Disable private IPv6 access to/from Google services.
DisableGoogleAccess = 450958579,
/// Bidirectional private IPv6 access to/from Google services.
EnableBidirectionalAccessToGoogle = 427975994,
/// Outbound private IPv6 access from VMs in this subnet to Google services.
EnableOutboundVmAccessToGoogle = 288210263,
}
impl PrivateIpv6GoogleAccess {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
PrivateIpv6GoogleAccess::UndefinedPrivateIpv6GoogleAccess => {
"UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS"
}
PrivateIpv6GoogleAccess::DisableGoogleAccess => "DISABLE_GOOGLE_ACCESS",
PrivateIpv6GoogleAccess::EnableBidirectionalAccessToGoogle => {
"ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE"
}
PrivateIpv6GoogleAccess::EnableOutboundVmAccessToGoogle => {
"ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS" => {
Some(Self::UndefinedPrivateIpv6GoogleAccess)
}
"DISABLE_GOOGLE_ACCESS" => Some(Self::DisableGoogleAccess),
"ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE" => {
Some(Self::EnableBidirectionalAccessToGoogle)
}
"ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE" => {
Some(Self::EnableOutboundVmAccessToGoogle)
}
_ => None,
}
}
}
/// The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Purpose {
/// A value indicating that the enum field is not set.
UndefinedPurpose = 0,
/// Subnet reserved for Global Envoy-based Load Balancing.
GlobalManagedProxy = 236463602,
/// Subnet reserved for Internal HTTP(S) Load Balancing. This is a legacy purpose, please use REGIONAL_MANAGED_PROXY instead.
InternalHttpsLoadBalancer = 248748889,
/// Regular user created or automatically created subnet.
Private = 403485027,
/// Subnetwork used as source range for Private NAT Gateways.
PrivateNat = 367764517,
/// Regular user created or automatically created subnet.
PrivateRfc1918 = 254902107,
/// Subnetworks created for Private Service Connect in the producer network.
PrivateServiceConnect = 48134724,
/// Subnetwork used for Regional Envoy-based Load Balancing.
RegionalManagedProxy = 153049966,
}
impl Purpose {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Purpose::UndefinedPurpose => "UNDEFINED_PURPOSE",
Purpose::GlobalManagedProxy => "GLOBAL_MANAGED_PROXY",
Purpose::InternalHttpsLoadBalancer => "INTERNAL_HTTPS_LOAD_BALANCER",
Purpose::Private => "PRIVATE",
Purpose::PrivateNat => "PRIVATE_NAT",
Purpose::PrivateRfc1918 => "PRIVATE_RFC_1918",
Purpose::PrivateServiceConnect => "PRIVATE_SERVICE_CONNECT",
Purpose::RegionalManagedProxy => "REGIONAL_MANAGED_PROXY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PURPOSE" => Some(Self::UndefinedPurpose),
"GLOBAL_MANAGED_PROXY" => Some(Self::GlobalManagedProxy),
"INTERNAL_HTTPS_LOAD_BALANCER" => Some(Self::InternalHttpsLoadBalancer),
"PRIVATE" => Some(Self::Private),
"PRIVATE_NAT" => Some(Self::PrivateNat),
"PRIVATE_RFC_1918" => Some(Self::PrivateRfc1918),
"PRIVATE_SERVICE_CONNECT" => Some(Self::PrivateServiceConnect),
"REGIONAL_MANAGED_PROXY" => Some(Self::RegionalManagedProxy),
_ => None,
}
}
}
/// The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Role {
/// A value indicating that the enum field is not set.
UndefinedRole = 0,
/// The ACTIVE subnet that is currently used.
Active = 314733318,
/// The BACKUP subnet that could be promoted to ACTIVE.
Backup = 341010882,
}
impl Role {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Role::UndefinedRole => "UNDEFINED_ROLE",
Role::Active => "ACTIVE",
Role::Backup => "BACKUP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ROLE" => Some(Self::UndefinedRole),
"ACTIVE" => Some(Self::Active),
"BACKUP" => Some(Self::Backup),
_ => None,
}
}
}
/// The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum StackType {
/// A value indicating that the enum field is not set.
UndefinedStackType = 0,
/// New VMs in this subnet can have both IPv4 and IPv6 addresses.
Ipv4Ipv6 = 22197249,
/// New VMs in this subnet will only be assigned IPv4 addresses.
Ipv4Only = 22373798,
UnspecifiedStackType = 298084569,
}
impl StackType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
StackType::UndefinedStackType => "UNDEFINED_STACK_TYPE",
StackType::Ipv4Ipv6 => "IPV4_IPV6",
StackType::Ipv4Only => "IPV4_ONLY",
StackType::UnspecifiedStackType => "UNSPECIFIED_STACK_TYPE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STACK_TYPE" => Some(Self::UndefinedStackType),
"IPV4_IPV6" => Some(Self::Ipv4Ipv6),
"IPV4_ONLY" => Some(Self::Ipv4Only),
"UNSPECIFIED_STACK_TYPE" => Some(Self::UnspecifiedStackType),
_ => None,
}
}
}
/// \[Output Only\] The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// A value indicating that the enum field is not set.
UndefinedState = 0,
/// Subnetwork is being drained.
Draining = 480455402,
/// Subnetwork is ready for use.
Ready = 77848963,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::UndefinedState => "UNDEFINED_STATE",
State::Draining => "DRAINING",
State::Ready => "READY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATE" => Some(Self::UndefinedState),
"DRAINING" => Some(Self::Draining),
"READY" => Some(Self::Ready),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SubnetworkAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of SubnetworksScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
SubnetworksScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#subnetworkAggregatedList for aggregated lists of subnetworks.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of Subnetwork resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SubnetworkList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Subnetwork resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Subnetwork>,
/// \[Output Only\] Type of resource. Always compute#subnetworkList for lists of subnetworks.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// The available logging options for this subnetwork.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SubnetworkLogConfig {
/// Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
/// Check the AggregationInterval enum for the list of possible values.
#[prost(string, optional, tag = "174919042")]
pub aggregation_interval: ::core::option::Option<::prost::alloc::string::String>,
/// Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
#[prost(bool, optional, tag = "311764355")]
pub enable: ::core::option::Option<bool>,
/// Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
#[prost(string, optional, tag = "183374428")]
pub filter_expr: ::core::option::Option<::prost::alloc::string::String>,
/// Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in \[0, 1\]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
#[prost(float, optional, tag = "530150360")]
pub flow_sampling: ::core::option::Option<f32>,
/// Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
/// Check the Metadata enum for the list of possible values.
#[prost(string, optional, tag = "86866735")]
pub metadata: ::core::option::Option<::prost::alloc::string::String>,
/// Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
#[prost(string, repeated, tag = "378461641")]
pub metadata_fields: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `SubnetworkLogConfig`.
pub mod subnetwork_log_config {
/// Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum AggregationInterval {
/// A value indicating that the enum field is not set.
UndefinedAggregationInterval = 0,
Interval10Min = 487155916,
Interval15Min = 491773521,
Interval1Min = 69052714,
Interval30Sec = 7548937,
Interval5Min = 72746798,
Interval5Sec = 72752429,
}
impl AggregationInterval {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
AggregationInterval::UndefinedAggregationInterval => {
"UNDEFINED_AGGREGATION_INTERVAL"
}
AggregationInterval::Interval10Min => "INTERVAL_10_MIN",
AggregationInterval::Interval15Min => "INTERVAL_15_MIN",
AggregationInterval::Interval1Min => "INTERVAL_1_MIN",
AggregationInterval::Interval30Sec => "INTERVAL_30_SEC",
AggregationInterval::Interval5Min => "INTERVAL_5_MIN",
AggregationInterval::Interval5Sec => "INTERVAL_5_SEC",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_AGGREGATION_INTERVAL" => {
Some(Self::UndefinedAggregationInterval)
}
"INTERVAL_10_MIN" => Some(Self::Interval10Min),
"INTERVAL_15_MIN" => Some(Self::Interval15Min),
"INTERVAL_1_MIN" => Some(Self::Interval1Min),
"INTERVAL_30_SEC" => Some(Self::Interval30Sec),
"INTERVAL_5_MIN" => Some(Self::Interval5Min),
"INTERVAL_5_SEC" => Some(Self::Interval5Sec),
_ => None,
}
}
}
/// Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Metadata {
/// A value indicating that the enum field is not set.
UndefinedMetadata = 0,
CustomMetadata = 62450749,
ExcludeAllMetadata = 334519954,
IncludeAllMetadata = 164619908,
}
impl Metadata {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Metadata::UndefinedMetadata => "UNDEFINED_METADATA",
Metadata::CustomMetadata => "CUSTOM_METADATA",
Metadata::ExcludeAllMetadata => "EXCLUDE_ALL_METADATA",
Metadata::IncludeAllMetadata => "INCLUDE_ALL_METADATA",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_METADATA" => Some(Self::UndefinedMetadata),
"CUSTOM_METADATA" => Some(Self::CustomMetadata),
"EXCLUDE_ALL_METADATA" => Some(Self::ExcludeAllMetadata),
"INCLUDE_ALL_METADATA" => Some(Self::IncludeAllMetadata),
_ => None,
}
}
}
}
/// Represents a secondary IP range of a subnetwork.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SubnetworkSecondaryRange {
/// The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.
#[prost(string, optional, tag = "98117322")]
pub ip_cidr_range: ::core::option::Option<::prost::alloc::string::String>,
/// The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
#[prost(string, optional, tag = "332216397")]
pub range_name: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the reserved internal range.
#[prost(string, optional, tag = "286248754")]
pub reserved_internal_range: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SubnetworksExpandIpCidrRangeRequest {
/// The IP (in CIDR format or netmask) of internal addresses that are legal on this Subnetwork. This range should be disjoint from other subnetworks within this network. This range can only be larger than (i.e. a superset of) the range previously defined before the update.
#[prost(string, optional, tag = "98117322")]
pub ip_cidr_range: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SubnetworksScopedList {
/// A list of subnetworks contained in this scope.
#[prost(message, repeated, tag = "415853125")]
pub subnetworks: ::prost::alloc::vec::Vec<Subnetwork>,
/// An informational warning that appears when the list of addresses is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SubnetworksSetPrivateIpGoogleAccessRequest {
#[prost(bool, optional, tag = "421491790")]
pub private_ip_google_access: ::core::option::Option<bool>,
}
/// Subsetting configuration for this BackendService. Currently this is applicable only for Internal TCP/UDP load balancing, Internal HTTP(S) load balancing and Traffic Director.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Subsetting {
///
/// Check the Policy enum for the list of possible values.
#[prost(string, optional, tag = "91071794")]
pub policy: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Subsetting`.
pub mod subsetting {
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Policy {
/// A value indicating that the enum field is not set.
UndefinedPolicy = 0,
/// Subsetting based on consistent hashing. For Traffic Director, the number of backends per backend group (the subset size) is based on the `subset_size` parameter. For Internal HTTP(S) load balancing, the number of backends per backend group (the subset size) is dynamically adjusted in two cases: - As the number of proxy instances participating in Internal HTTP(S) load balancing increases, the subset size decreases. - When the total number of backends in a network exceeds the capacity of a single proxy instance, subset sizes are reduced automatically for each service that has backend subsetting enabled.
ConsistentHashSubsetting = 108989492,
/// No Subsetting. Clients may open connections and send traffic to all backends of this backend service. This can lead to performance issues if there is substantial imbalance in the count of clients and backends.
None = 2402104,
}
impl Policy {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Policy::UndefinedPolicy => "UNDEFINED_POLICY",
Policy::ConsistentHashSubsetting => "CONSISTENT_HASH_SUBSETTING",
Policy::None => "NONE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_POLICY" => Some(Self::UndefinedPolicy),
"CONSISTENT_HASH_SUBSETTING" => Some(Self::ConsistentHashSubsetting),
"NONE" => Some(Self::None),
_ => None,
}
}
}
}
/// A request message for Instances.Suspend. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SuspendInstanceRequest {
/// This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded.
#[prost(bool, optional, tag = "319517903")]
pub discard_local_ssd: ::core::option::Option<bool>,
/// Name of the instance resource to suspend.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Networks.SwitchToCustomMode. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SwitchToCustomModeNetworkRequest {
/// Name of the network to be updated.
#[prost(string, tag = "232872494")]
pub network: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TcpHealthCheck {
/// The TCP port number to which the health check prober sends packets. The default value is 80. Valid values are 1 through 65535.
#[prost(int32, optional, tag = "3446913")]
pub port: ::core::option::Option<i32>,
/// Not supported.
#[prost(string, optional, tag = "41534345")]
pub port_name: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports.
/// Check the PortSpecification enum for the list of possible values.
#[prost(string, optional, tag = "51590597")]
pub port_specification: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
/// Check the ProxyHeader enum for the list of possible values.
#[prost(string, optional, tag = "160374142")]
pub proxy_header: ::core::option::Option<::prost::alloc::string::String>,
/// Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, after establishing the TCP connection.
#[prost(string, optional, tag = "21951119")]
pub request: ::core::option::Option<::prost::alloc::string::String>,
/// Creates a content-based TCP health check. In addition to establishing a TCP connection, you can configure the health check to pass only when the backend sends this exact response ASCII string, up to 1024 bytes in length. For details, see: <https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp>
#[prost(string, optional, tag = "196547649")]
pub response: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `TCPHealthCheck`.
pub mod tcp_health_check {
/// Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum PortSpecification {
/// A value indicating that the enum field is not set.
UndefinedPortSpecification = 0,
/// The port number in the health check's port is used for health checking. Applies to network endpoint group and instance group backends.
UseFixedPort = 190235748,
/// Not supported.
UseNamedPort = 349300671,
/// For network endpoint group backends, the health check uses the port number specified on each endpoint in the network endpoint group. For instance group backends, the health check uses the port number specified for the backend service's named port defined in the instance group's named ports.
UseServingPort = 362637516,
}
impl PortSpecification {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
PortSpecification::UndefinedPortSpecification => {
"UNDEFINED_PORT_SPECIFICATION"
}
PortSpecification::UseFixedPort => "USE_FIXED_PORT",
PortSpecification::UseNamedPort => "USE_NAMED_PORT",
PortSpecification::UseServingPort => "USE_SERVING_PORT",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PORT_SPECIFICATION" => Some(Self::UndefinedPortSpecification),
"USE_FIXED_PORT" => Some(Self::UseFixedPort),
"USE_NAMED_PORT" => Some(Self::UseNamedPort),
"USE_SERVING_PORT" => Some(Self::UseServingPort),
_ => None,
}
}
}
/// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ProxyHeader {
/// A value indicating that the enum field is not set.
UndefinedProxyHeader = 0,
None = 2402104,
ProxyV1 = 334352940,
}
impl ProxyHeader {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ProxyHeader::UndefinedProxyHeader => "UNDEFINED_PROXY_HEADER",
ProxyHeader::None => "NONE",
ProxyHeader::ProxyV1 => "PROXY_V1",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PROXY_HEADER" => Some(Self::UndefinedProxyHeader),
"NONE" => Some(Self::None),
"PROXY_V1" => Some(Self::ProxyV1),
_ => None,
}
}
}
}
/// A set of instance tags.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Tags {
/// Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update tags. You must always provide an up-to-date fingerprint hash in order to update or change tags. To see the latest fingerprint, make get() request to the instance.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
#[prost(string, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Represents a Target gRPC Proxy resource. A target gRPC proxy is a component of load balancers intended for load balancing gRPC traffic. Only global forwarding rules with load balancing scheme INTERNAL_SELF_MANAGED can reference a target gRPC proxy. The target gRPC Proxy references a URL map that specifies how traffic is routed to gRPC backend services.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetGrpcProxy {
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetGrpcProxy.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource type. The server generates this identifier.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#targetGrpcProxy for target grpc proxies.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL with id for the resource.
#[prost(string, optional, tag = "44520962")]
pub self_link_with_id: ::core::option::Option<::prost::alloc::string::String>,
/// URL to the UrlMap resource that defines the mapping from URL to the BackendService. The protocol field in the BackendService must be set to GRPC.
#[prost(string, optional, tag = "367020684")]
pub url_map: ::core::option::Option<::prost::alloc::string::String>,
/// If true, indicates that the BackendServices referenced by the urlMap may be accessed by gRPC applications without using a sidecar proxy. This will enable configuration checks on urlMap and its referenced BackendServices to not allow unsupported features. A gRPC application must use "xds:///" scheme in the target URI of the service it is connecting to. If false, indicates that the BackendServices referenced by the urlMap will be accessed by gRPC applications via a sidecar proxy. In this case, a gRPC application must not use "xds:///" scheme in the target URI of the service it is connecting to
#[prost(bool, optional, tag = "101822888")]
pub validate_for_proxyless: ::core::option::Option<bool>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetGrpcProxyList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of TargetGrpcProxy resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<TargetGrpcProxy>,
/// \[Output Only\] Type of the resource. Always compute#targetGrpcProxy for target grpc proxies.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetHttpProxiesScopedList {
/// A list of TargetHttpProxies contained in this scope.
#[prost(message, repeated, tag = "162147011")]
pub target_http_proxies: ::prost::alloc::vec::Vec<TargetHttpProxy>,
/// Informational warning which replaces the list of backend services when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represents a Target HTTP Proxy resource. Google Compute Engine has two Target HTTP Proxy resources: * [Global](/compute/docs/reference/rest/v1/targetHttpProxies) * [Regional](/compute/docs/reference/rest/v1/regionTargetHttpProxies) A target HTTP proxy is a component of Google Cloud HTTP load balancers. * targetHttpProxies are used by global external Application Load Balancers, classic Application Load Balancers, cross-region internal Application Load Balancers, and Traffic Director. * regionTargetHttpProxies are used by regional internal Application Load Balancers and regional external Application Load Balancers. Forwarding rules reference a target HTTP proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies and Forwarding rule concepts.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetHttpProxy {
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a TargetHttpProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetHttpProxy.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies how long to keep a connection open, after completing a response, while there is no matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 seconds) will be used. For global external Application Load Balancers, the minimum allowed value is 5 seconds and the maximum allowed value is 1200 seconds. For classic Application Load Balancers, this option is not supported.
#[prost(int32, optional, tag = "447326046")]
pub http_keep_alive_timeout_sec: ::core::option::Option<i32>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of resource. Always compute#targetHttpProxy for target HTTP proxies.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false.
#[prost(bool, optional, tag = "286025582")]
pub proxy_bind: ::core::option::Option<bool>,
/// \[Output Only\] URL of the region where the regional Target HTTP Proxy resides. This field is not applicable to global Target HTTP Proxies.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// URL to the UrlMap resource that defines the mapping from URL to the BackendService.
#[prost(string, optional, tag = "367020684")]
pub url_map: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetHttpProxyAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of TargetHttpProxiesScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
TargetHttpProxiesScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#targetHttpProxyAggregatedList for lists of Target HTTP Proxies.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// A list of TargetHttpProxy resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetHttpProxyList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of TargetHttpProxy resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<TargetHttpProxy>,
/// Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetHttpsProxiesScopedList {
/// A list of TargetHttpsProxies contained in this scope.
#[prost(message, repeated, tag = "366607882")]
pub target_https_proxies: ::prost::alloc::vec::Vec<TargetHttpsProxy>,
/// Informational warning which replaces the list of backend services when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetHttpsProxiesSetCertificateMapRequest {
/// URL of the Certificate Map to associate with this TargetHttpsProxy. Accepted format is //certificatemanager.googleapis.com/projects/{project }/locations/{location}/certificateMaps/{resourceName}.
#[prost(string, optional, tag = "156463796")]
pub certificate_map: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetHttpsProxiesSetQuicOverrideRequest {
/// QUIC policy for the TargetHttpsProxy resource.
/// Check the QuicOverride enum for the list of possible values.
#[prost(string, optional, tag = "456577197")]
pub quic_override: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `TargetHttpsProxiesSetQuicOverrideRequest`.
pub mod target_https_proxies_set_quic_override_request {
/// QUIC policy for the TargetHttpsProxy resource.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum QuicOverride {
/// A value indicating that the enum field is not set.
UndefinedQuicOverride = 0,
/// The load balancer will not attempt to negotiate QUIC with clients.
Disable = 241807048,
/// The load balancer will attempt to negotiate QUIC with clients.
Enable = 438835587,
/// No overrides to the default QUIC policy. This option is implicit if no QUIC override has been specified in the request.
None = 2402104,
}
impl QuicOverride {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
QuicOverride::UndefinedQuicOverride => "UNDEFINED_QUIC_OVERRIDE",
QuicOverride::Disable => "DISABLE",
QuicOverride::Enable => "ENABLE",
QuicOverride::None => "NONE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_QUIC_OVERRIDE" => Some(Self::UndefinedQuicOverride),
"DISABLE" => Some(Self::Disable),
"ENABLE" => Some(Self::Enable),
"NONE" => Some(Self::None),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetHttpsProxiesSetSslCertificatesRequest {
/// New set of SslCertificate resources to associate with this TargetHttpsProxy resource. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates.
#[prost(string, repeated, tag = "366006543")]
pub ssl_certificates: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Represents a Target HTTPS Proxy resource. Google Compute Engine has two Target HTTPS Proxy resources: * [Global](/compute/docs/reference/rest/v1/targetHttpsProxies) * [Regional](/compute/docs/reference/rest/v1/regionTargetHttpsProxies) A target HTTPS proxy is a component of GCP HTTPS load balancers. * targetHttpProxies are used by global external Application Load Balancers, classic Application Load Balancers, cross-region internal Application Load Balancers, and Traffic Director. * regionTargetHttpProxies are used by regional internal Application Load Balancers and regional external Application Load Balancers. Forwarding rules reference a target HTTPS proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies and Forwarding rule concepts.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetHttpsProxy {
/// Optional. A URL referring to a networksecurity.AuthorizationPolicy resource that describes how the proxy should authorize inbound traffic. If left blank, access will not be restricted by an authorization policy. Refer to the AuthorizationPolicy resource for additional details. authorizationPolicy only applies to a global TargetHttpsProxy attached to globalForwardingRules with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. Note: This field currently has no impact.
#[prost(string, optional, tag = "33945528")]
pub authorization_policy: ::core::option::Option<::prost::alloc::string::String>,
/// URL of a certificate map that identifies a certificate map associated with the given target proxy. This field can only be set for global target proxies. If set, sslCertificates will be ignored. Accepted format is //certificatemanager.googleapis.com/projects/{project }/locations/{location}/certificateMaps/{resourceName}.
#[prost(string, optional, tag = "156463796")]
pub certificate_map: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a TargetHttpsProxy. An up-to-date fingerprint must be provided in order to patch the TargetHttpsProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetHttpsProxy.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies how long to keep a connection open, after completing a response, while there is no matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 seconds) will be used. For global external Application Load Balancers, the minimum allowed value is 5 seconds and the maximum allowed value is 1200 seconds. For classic Application Load Balancers, this option is not supported.
#[prost(int32, optional, tag = "447326046")]
pub http_keep_alive_timeout_sec: ::core::option::Option<i32>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of resource. Always compute#targetHttpsProxy for target HTTPS proxies.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false.
#[prost(bool, optional, tag = "286025582")]
pub proxy_bind: ::core::option::Option<bool>,
/// Specifies the QUIC override policy for this TargetHttpsProxy resource. This setting determines whether the load balancer attempts to negotiate QUIC with clients. You can specify NONE, ENABLE, or DISABLE. - When quic-override is set to NONE, Google manages whether QUIC is used. - When quic-override is set to ENABLE, the load balancer uses QUIC when possible. - When quic-override is set to DISABLE, the load balancer doesn't use QUIC. - If the quic-override flag is not specified, NONE is implied.
/// Check the QuicOverride enum for the list of possible values.
#[prost(string, optional, tag = "456577197")]
pub quic_override: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the region where the regional TargetHttpsProxy resides. This field is not applicable to global TargetHttpsProxies.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the proxy should authenticate inbound traffic. serverTlsPolicy only applies to a global TargetHttpsProxy attached to globalForwardingRules with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL or EXTERNAL_MANAGED. For details which ServerTlsPolicy resources are accepted with INTERNAL_SELF_MANAGED and which with EXTERNAL, EXTERNAL_MANAGED loadBalancingScheme consult ServerTlsPolicy documentation. If left blank, communications are not encrypted.
#[prost(string, optional, tag = "295825266")]
pub server_tls_policy: ::core::option::Option<::prost::alloc::string::String>,
/// URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. sslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED.
#[prost(string, repeated, tag = "366006543")]
pub ssl_certificates: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// URL of SslPolicy resource that will be associated with the TargetHttpsProxy resource. If not set, the TargetHttpsProxy resource has no SSL policy configured.
#[prost(string, optional, tag = "295190213")]
pub ssl_policy: ::core::option::Option<::prost::alloc::string::String>,
/// A fully-qualified or valid partial URL to the UrlMap resource that defines the mapping from URL to the BackendService. For example, the following are all valid URLs for specifying a URL map: - <https://www.googleapis.compute/v1/projects/project/global/urlMaps/> url-map - projects/project/global/urlMaps/url-map - global/urlMaps/url-map
#[prost(string, optional, tag = "367020684")]
pub url_map: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `TargetHttpsProxy`.
pub mod target_https_proxy {
/// Specifies the QUIC override policy for this TargetHttpsProxy resource. This setting determines whether the load balancer attempts to negotiate QUIC with clients. You can specify NONE, ENABLE, or DISABLE. - When quic-override is set to NONE, Google manages whether QUIC is used. - When quic-override is set to ENABLE, the load balancer uses QUIC when possible. - When quic-override is set to DISABLE, the load balancer doesn't use QUIC. - If the quic-override flag is not specified, NONE is implied.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum QuicOverride {
/// A value indicating that the enum field is not set.
UndefinedQuicOverride = 0,
/// The load balancer will not attempt to negotiate QUIC with clients.
Disable = 241807048,
/// The load balancer will attempt to negotiate QUIC with clients.
Enable = 438835587,
/// No overrides to the default QUIC policy. This option is implicit if no QUIC override has been specified in the request.
None = 2402104,
}
impl QuicOverride {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
QuicOverride::UndefinedQuicOverride => "UNDEFINED_QUIC_OVERRIDE",
QuicOverride::Disable => "DISABLE",
QuicOverride::Enable => "ENABLE",
QuicOverride::None => "NONE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_QUIC_OVERRIDE" => Some(Self::UndefinedQuicOverride),
"DISABLE" => Some(Self::Disable),
"ENABLE" => Some(Self::Enable),
"NONE" => Some(Self::None),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetHttpsProxyAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of TargetHttpsProxiesScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
TargetHttpsProxiesScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#targetHttpsProxyAggregatedList for lists of Target HTTP Proxies.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of TargetHttpsProxy resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetHttpsProxyList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of TargetHttpsProxy resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<TargetHttpsProxy>,
/// Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represents a Target Instance resource. You can use a target instance to handle traffic for one or more forwarding rules, which is ideal for forwarding protocol traffic that is managed by a single source. For example, ESP, AH, TCP, or UDP. For more information, read Target instances.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetInstance {
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// A URL to the virtual machine instance that handles traffic for this target instance. When creating a target instance, you can provide the fully-qualified URL or a valid partial URL to the desired virtual machine. For example, the following are all valid URLs: - <https://www.googleapis.com/compute/v1/projects/project/zones/zone> /instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/instance
#[prost(string, optional, tag = "18257045")]
pub instance: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The type of the resource. Always compute#targetInstance for target instances.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the destination IP address of the forwarding rule referencing the target instance.
/// Check the NatPolicy enum for the list of possible values.
#[prost(string, optional, tag = "509780496")]
pub nat_policy: ::core::option::Option<::prost::alloc::string::String>,
/// The URL of the network this target instance uses to forward traffic. If not specified, the traffic will be forwarded to the network that the default network interface belongs to.
#[prost(string, optional, tag = "232872494")]
pub network: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The resource URL for the security policy associated with this target instance.
#[prost(string, optional, tag = "171082513")]
pub security_policy: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the zone where the target instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "3744684")]
pub zone: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `TargetInstance`.
pub mod target_instance {
/// Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the destination IP address of the forwarding rule referencing the target instance.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum NatPolicy {
/// A value indicating that the enum field is not set.
UndefinedNatPolicy = 0,
/// No NAT performed.
NoNat = 161455491,
}
impl NatPolicy {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
NatPolicy::UndefinedNatPolicy => "UNDEFINED_NAT_POLICY",
NatPolicy::NoNat => "NO_NAT",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_NAT_POLICY" => Some(Self::UndefinedNatPolicy),
"NO_NAT" => Some(Self::NoNat),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetInstanceAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of TargetInstance resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
TargetInstancesScopedList,
>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of TargetInstance resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetInstanceList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of TargetInstance resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<TargetInstance>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetInstancesScopedList {
/// A list of target instances contained in this scope.
#[prost(message, repeated, tag = "392915280")]
pub target_instances: ::prost::alloc::vec::Vec<TargetInstance>,
/// Informational warning which replaces the list of addresses when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represents a Target Pool resource. Target pools are used with external passthrough Network Load Balancers. A target pool references member instances, an associated legacy HttpHealthCheck resource, and, optionally, a backup target pool. For more information, read Using target pools.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetPool {
/// The server-defined URL for the resource. This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is properly set to a value between \[0, 1\]. backupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.
#[prost(string, optional, tag = "45884537")]
pub backup_pool: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value of the field must be in \[0, 1\]. If set, backupPool must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio is not set or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.
#[prost(float, optional, tag = "212667006")]
pub failover_ratio: ::core::option::Option<f32>,
/// The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one health check may be specified.
#[prost(string, repeated, tag = "448370606")]
pub health_checks: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool.
#[prost(string, repeated, tag = "29097598")]
pub instances: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Type of the resource. Always compute#targetPool for target pools.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the region where the target pool resides.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The resource URL for the security policy associated with this target pool.
#[prost(string, optional, tag = "171082513")]
pub security_policy: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy.
/// Check the SessionAffinity enum for the list of possible values.
#[prost(string, optional, tag = "463888561")]
pub session_affinity: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `TargetPool`.
pub mod target_pool {
/// Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum SessionAffinity {
/// A value indicating that the enum field is not set.
UndefinedSessionAffinity = 0,
/// 2-tuple hash on packet's source and destination IP addresses. Connections from the same source IP address to the same destination IP address will be served by the same backend VM while that VM remains healthy.
ClientIp = 345665051,
/// 1-tuple hash only on packet's source IP address. Connections from the same source IP address will be served by the same backend VM while that VM remains healthy. This option can only be used for Internal TCP/UDP Load Balancing.
ClientIpNoDestination = 106122516,
/// 5-tuple hash on packet's source and destination IP addresses, IP protocol, and source and destination ports. Connections for the same IP protocol from the same source IP address and port to the same destination IP address and port will be served by the same backend VM while that VM remains healthy. This option cannot be used for HTTP(S) load balancing.
ClientIpPortProto = 221722926,
/// 3-tuple hash on packet's source and destination IP addresses, and IP protocol. Connections for the same IP protocol from the same source IP address to the same destination IP address will be served by the same backend VM while that VM remains healthy. This option cannot be used for HTTP(S) load balancing.
ClientIpProto = 25322148,
/// Hash based on a cookie generated by the L7 loadbalancer. Only valid for HTTP(S) load balancing.
GeneratedCookie = 370321204,
/// The hash is based on a user specified header field.
HeaderField = 200737960,
/// The hash is based on a user provided cookie.
HttpCookie = 494981627,
/// No session affinity. Connections from the same client IP may go to any instance in the pool.
None = 2402104,
}
impl SessionAffinity {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
SessionAffinity::UndefinedSessionAffinity => "UNDEFINED_SESSION_AFFINITY",
SessionAffinity::ClientIp => "CLIENT_IP",
SessionAffinity::ClientIpNoDestination => "CLIENT_IP_NO_DESTINATION",
SessionAffinity::ClientIpPortProto => "CLIENT_IP_PORT_PROTO",
SessionAffinity::ClientIpProto => "CLIENT_IP_PROTO",
SessionAffinity::GeneratedCookie => "GENERATED_COOKIE",
SessionAffinity::HeaderField => "HEADER_FIELD",
SessionAffinity::HttpCookie => "HTTP_COOKIE",
SessionAffinity::None => "NONE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_SESSION_AFFINITY" => Some(Self::UndefinedSessionAffinity),
"CLIENT_IP" => Some(Self::ClientIp),
"CLIENT_IP_NO_DESTINATION" => Some(Self::ClientIpNoDestination),
"CLIENT_IP_PORT_PROTO" => Some(Self::ClientIpPortProto),
"CLIENT_IP_PROTO" => Some(Self::ClientIpProto),
"GENERATED_COOKIE" => Some(Self::GeneratedCookie),
"HEADER_FIELD" => Some(Self::HeaderField),
"HTTP_COOKIE" => Some(Self::HttpCookie),
"NONE" => Some(Self::None),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetPoolAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of TargetPool resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
TargetPoolsScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#targetPoolAggregatedList for aggregated lists of target pools.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetPoolInstanceHealth {
#[prost(message, repeated, tag = "380545845")]
pub health_status: ::prost::alloc::vec::Vec<HealthStatus>,
/// \[Output Only\] Type of resource. Always compute#targetPoolInstanceHealth when checking the health of an instance.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
}
/// Contains a list of TargetPool resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetPoolList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of TargetPool resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<TargetPool>,
/// \[Output Only\] Type of resource. Always compute#targetPoolList for lists of target pools.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetPoolsAddHealthCheckRequest {
/// The HttpHealthCheck to add to the target pool.
#[prost(message, repeated, tag = "448370606")]
pub health_checks: ::prost::alloc::vec::Vec<HealthCheckReference>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetPoolsAddInstanceRequest {
/// A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs: - <https://www.googleapis.com/compute/v1/projects/project-id/zones/zone> /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name
#[prost(message, repeated, tag = "29097598")]
pub instances: ::prost::alloc::vec::Vec<InstanceReference>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetPoolsRemoveHealthCheckRequest {
/// Health check URL to be removed. This can be a full or valid partial URL. For example, the following are valid URLs: - <https://www.googleapis.com/compute/beta/projects/project> /global/httpHealthChecks/health-check - projects/project/global/httpHealthChecks/health-check - global/httpHealthChecks/health-check
#[prost(message, repeated, tag = "448370606")]
pub health_checks: ::prost::alloc::vec::Vec<HealthCheckReference>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetPoolsRemoveInstanceRequest {
/// URLs of the instances to be removed from target pool.
#[prost(message, repeated, tag = "29097598")]
pub instances: ::prost::alloc::vec::Vec<InstanceReference>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetPoolsScopedList {
/// A list of target pools contained in this scope.
#[prost(message, repeated, tag = "336072617")]
pub target_pools: ::prost::alloc::vec::Vec<TargetPool>,
/// Informational warning which replaces the list of addresses when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetReference {
#[prost(string, optional, tag = "192835985")]
pub target: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetSslProxiesSetBackendServiceRequest {
/// The URL of the new BackendService resource for the targetSslProxy.
#[prost(string, optional, tag = "373540533")]
pub service: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetSslProxiesSetCertificateMapRequest {
/// URL of the Certificate Map to associate with this TargetSslProxy. Accepted format is //certificatemanager.googleapis.com/projects/{project }/locations/{location}/certificateMaps/{resourceName}.
#[prost(string, optional, tag = "156463796")]
pub certificate_map: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetSslProxiesSetProxyHeaderRequest {
/// The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed.
/// Check the ProxyHeader enum for the list of possible values.
#[prost(string, optional, tag = "160374142")]
pub proxy_header: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `TargetSslProxiesSetProxyHeaderRequest`.
pub mod target_ssl_proxies_set_proxy_header_request {
/// The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ProxyHeader {
/// A value indicating that the enum field is not set.
UndefinedProxyHeader = 0,
None = 2402104,
ProxyV1 = 334352940,
}
impl ProxyHeader {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ProxyHeader::UndefinedProxyHeader => "UNDEFINED_PROXY_HEADER",
ProxyHeader::None => "NONE",
ProxyHeader::ProxyV1 => "PROXY_V1",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PROXY_HEADER" => Some(Self::UndefinedProxyHeader),
"NONE" => Some(Self::None),
"PROXY_V1" => Some(Self::ProxyV1),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetSslProxiesSetSslCertificatesRequest {
/// New set of URLs to SslCertificate resources to associate with this TargetSslProxy. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates.
#[prost(string, repeated, tag = "366006543")]
pub ssl_certificates: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Represents a Target SSL Proxy resource. A target SSL proxy is a component of a Proxy Network Load Balancer. The forwarding rule references the target SSL proxy, and the target proxy then references a backend service. For more information, read Proxy Network Load Balancer overview.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetSslProxy {
/// URL of a certificate map that identifies a certificate map associated with the given target proxy. This field can only be set for global target proxies. If set, sslCertificates will be ignored. Accepted format is //certificatemanager.googleapis.com/projects/{project }/locations/{location}/certificateMaps/{resourceName}.
#[prost(string, optional, tag = "156463796")]
pub certificate_map: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#targetSslProxy for target SSL proxies.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
/// Check the ProxyHeader enum for the list of possible values.
#[prost(string, optional, tag = "160374142")]
pub proxy_header: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// URL to the BackendService resource.
#[prost(string, optional, tag = "373540533")]
pub service: ::core::option::Option<::prost::alloc::string::String>,
/// URLs to SslCertificate resources that are used to authenticate connections to Backends. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. sslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED.
#[prost(string, repeated, tag = "366006543")]
pub ssl_certificates: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// URL of SslPolicy resource that will be associated with the TargetSslProxy resource. If not set, the TargetSslProxy resource will not have any SSL policy configured.
#[prost(string, optional, tag = "295190213")]
pub ssl_policy: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `TargetSslProxy`.
pub mod target_ssl_proxy {
/// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ProxyHeader {
/// A value indicating that the enum field is not set.
UndefinedProxyHeader = 0,
None = 2402104,
ProxyV1 = 334352940,
}
impl ProxyHeader {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ProxyHeader::UndefinedProxyHeader => "UNDEFINED_PROXY_HEADER",
ProxyHeader::None => "NONE",
ProxyHeader::ProxyV1 => "PROXY_V1",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PROXY_HEADER" => Some(Self::UndefinedProxyHeader),
"NONE" => Some(Self::None),
"PROXY_V1" => Some(Self::ProxyV1),
_ => None,
}
}
}
}
/// Contains a list of TargetSslProxy resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetSslProxyList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of TargetSslProxy resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<TargetSslProxy>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetTcpProxiesScopedList {
/// A list of TargetTcpProxies contained in this scope.
#[prost(message, repeated, tag = "262056832")]
pub target_tcp_proxies: ::prost::alloc::vec::Vec<TargetTcpProxy>,
/// Informational warning which replaces the list of backend services when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetTcpProxiesSetBackendServiceRequest {
/// The URL of the new BackendService resource for the targetTcpProxy.
#[prost(string, optional, tag = "373540533")]
pub service: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetTcpProxiesSetProxyHeaderRequest {
/// The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed.
/// Check the ProxyHeader enum for the list of possible values.
#[prost(string, optional, tag = "160374142")]
pub proxy_header: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `TargetTcpProxiesSetProxyHeaderRequest`.
pub mod target_tcp_proxies_set_proxy_header_request {
/// The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ProxyHeader {
/// A value indicating that the enum field is not set.
UndefinedProxyHeader = 0,
None = 2402104,
ProxyV1 = 334352940,
}
impl ProxyHeader {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ProxyHeader::UndefinedProxyHeader => "UNDEFINED_PROXY_HEADER",
ProxyHeader::None => "NONE",
ProxyHeader::ProxyV1 => "PROXY_V1",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PROXY_HEADER" => Some(Self::UndefinedProxyHeader),
"NONE" => Some(Self::None),
"PROXY_V1" => Some(Self::ProxyV1),
_ => None,
}
}
}
}
/// Represents a Target TCP Proxy resource. A target TCP proxy is a component of a Proxy Network Load Balancer. The forwarding rule references the target TCP proxy, and the target proxy then references a backend service. For more information, read Proxy Network Load Balancer overview.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetTcpProxy {
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#targetTcpProxy for target TCP proxies.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false.
#[prost(bool, optional, tag = "286025582")]
pub proxy_bind: ::core::option::Option<bool>,
/// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
/// Check the ProxyHeader enum for the list of possible values.
#[prost(string, optional, tag = "160374142")]
pub proxy_header: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the region where the regional TCP proxy resides. This field is not applicable to global TCP proxy.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// URL to the BackendService resource.
#[prost(string, optional, tag = "373540533")]
pub service: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `TargetTcpProxy`.
pub mod target_tcp_proxy {
/// Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ProxyHeader {
/// A value indicating that the enum field is not set.
UndefinedProxyHeader = 0,
None = 2402104,
ProxyV1 = 334352940,
}
impl ProxyHeader {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ProxyHeader::UndefinedProxyHeader => "UNDEFINED_PROXY_HEADER",
ProxyHeader::None => "NONE",
ProxyHeader::ProxyV1 => "PROXY_V1",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PROXY_HEADER" => Some(Self::UndefinedProxyHeader),
"NONE" => Some(Self::None),
"PROXY_V1" => Some(Self::ProxyV1),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetTcpProxyAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of TargetTcpProxiesScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
TargetTcpProxiesScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#targetTcpProxyAggregatedList for lists of Target TCP Proxies.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of TargetTcpProxy resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetTcpProxyList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of TargetTcpProxy resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<TargetTcpProxy>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represents a Target VPN Gateway resource. The target VPN gateway resource represents a Classic Cloud VPN gateway. For more information, read the the Cloud VPN Overview.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetVpnGateway {
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A list of URLs to the ForwardingRule resources. ForwardingRules are created using compute.forwardingRules.insert and associated with a VPN gateway.
#[prost(string, repeated, tag = "315821365")]
pub forwarding_rules: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of resource. Always compute#targetVpnGateway for target VPN gateways.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// A fingerprint for the labels being applied to this TargetVpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a TargetVpnGateway.
#[prost(string, optional, tag = "178124825")]
pub label_fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the network to which this VPN gateway is attached. Provided by the client when the VPN gateway is created.
#[prost(string, optional, tag = "232872494")]
pub network: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the region where the target VPN gateway resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The status of the VPN gateway, which can be one of the following: CREATING, READY, FAILED, or DELETING.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A list of URLs to VpnTunnel resources. VpnTunnels are created using the compute.vpntunnels.insert method and associated with a VPN gateway.
#[prost(string, repeated, tag = "104561931")]
pub tunnels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `TargetVpnGateway`.
pub mod target_vpn_gateway {
/// \[Output Only\] The status of the VPN gateway, which can be one of the following: CREATING, READY, FAILED, or DELETING.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
Creating = 455564985,
Deleting = 528602024,
Failed = 455706685,
Ready = 77848963,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Creating => "CREATING",
Status::Deleting => "DELETING",
Status::Failed => "FAILED",
Status::Ready => "READY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"CREATING" => Some(Self::Creating),
"DELETING" => Some(Self::Deleting),
"FAILED" => Some(Self::Failed),
"READY" => Some(Self::Ready),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetVpnGatewayAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of TargetVpnGateway resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
TargetVpnGatewaysScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#targetVpnGateway for target VPN gateways.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of TargetVpnGateway resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetVpnGatewayList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of TargetVpnGateway resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<TargetVpnGateway>,
/// \[Output Only\] Type of resource. Always compute#targetVpnGateway for target VPN gateways.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetVpnGatewaysScopedList {
/// \[Output Only\] A list of target VPN gateways contained in this scope.
#[prost(message, repeated, tag = "401770888")]
pub target_vpn_gateways: ::prost::alloc::vec::Vec<TargetVpnGateway>,
/// \[Output Only\] Informational warning which replaces the list of addresses when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestFailure {
/// The actual output URL evaluated by a load balancer containing the scheme, host, path and query parameters.
#[prost(string, optional, tag = "287075458")]
pub actual_output_url: ::core::option::Option<::prost::alloc::string::String>,
/// Actual HTTP status code for rule with `urlRedirect` calculated by load balancer
#[prost(int32, optional, tag = "42926553")]
pub actual_redirect_response_code: ::core::option::Option<i32>,
/// BackendService or BackendBucket returned by load balancer.
#[prost(string, optional, tag = "440379652")]
pub actual_service: ::core::option::Option<::prost::alloc::string::String>,
/// The expected output URL evaluated by a load balancer containing the scheme, host, path and query parameters.
#[prost(string, optional, tag = "433967384")]
pub expected_output_url: ::core::option::Option<::prost::alloc::string::String>,
/// Expected HTTP status code for rule with `urlRedirect` calculated by load balancer
#[prost(int32, optional, tag = "18888047")]
pub expected_redirect_response_code: ::core::option::Option<i32>,
/// Expected BackendService or BackendBucket resource the given URL should be mapped to.
#[prost(string, optional, tag = "133987374")]
pub expected_service: ::core::option::Option<::prost::alloc::string::String>,
/// HTTP headers of the request.
#[prost(message, repeated, tag = "258436998")]
pub headers: ::prost::alloc::vec::Vec<UrlMapTestHeader>,
/// Host portion of the URL.
#[prost(string, optional, tag = "3208616")]
pub host: ::core::option::Option<::prost::alloc::string::String>,
/// Path portion including query parameters in the URL.
#[prost(string, optional, tag = "3433509")]
pub path: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for BackendBuckets.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsBackendBucketRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for BackendServices.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsBackendServiceRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for Disks.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsDiskRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for ExternalVpnGateways.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsExternalVpnGatewayRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for FirewallPolicies.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsFirewallPolicyRequest {
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for Images.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsImageRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for Instances.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsInstanceRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for InstanceTemplates.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsInstanceTemplateRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for InstantSnapshots.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsInstantSnapshotRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for LicenseCodes.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsLicenseCodeRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for Licenses.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsLicenseRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for MachineImages.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsMachineImageRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for NetworkAttachments.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsNetworkAttachmentRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for NetworkEndpointGroups.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsNetworkEndpointGroupRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for NetworkFirewallPolicies.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsNetworkFirewallPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for NodeGroups.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsNodeGroupRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for NodeTemplates.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsNodeTemplateRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for PacketMirrorings.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsPacketMirroringRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for RegionBackendServices.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsRegionBackendServiceRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for RegionDisks.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsRegionDiskRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for RegionInstantSnapshots.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsRegionInstantSnapshotRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for RegionNetworkFirewallPolicies.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsRegionNetworkFirewallPolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for Reservations.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsReservationRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for ResourcePolicies.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsResourcePolicyRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for ServiceAttachments.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsServiceAttachmentRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for Snapshots.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsSnapshotRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for Subnetworks.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsSubnetworkRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
/// A request message for VpnGateways.TestIamPermissions. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestIamPermissionsVpnGatewayRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// Name or id of the resource for this request.
#[prost(string, tag = "195806222")]
pub resource: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "439214758")]
pub test_permissions_request_resource: ::core::option::Option<
TestPermissionsRequest,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestPermissionsRequest {
/// The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed.
#[prost(string, repeated, tag = "59962500")]
pub permissions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestPermissionsResponse {
/// A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
#[prost(string, repeated, tag = "59962500")]
pub permissions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Uint128 {
#[prost(uint64, optional, tag = "3202466")]
pub high: ::core::option::Option<u64>,
#[prost(uint64, optional, tag = "107348")]
pub low: ::core::option::Option<u64>,
}
/// Upcoming Maintenance notification information.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpcomingMaintenance {
/// Indicates if the maintenance can be customer triggered.
#[prost(bool, optional, tag = "95981977")]
pub can_reschedule: ::core::option::Option<bool>,
/// The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
#[prost(string, optional, tag = "128032129")]
pub latest_window_start_time: ::core::option::Option<::prost::alloc::string::String>,
///
/// Check the MaintenanceStatus enum for the list of possible values.
#[prost(string, optional, tag = "81645214")]
pub maintenance_status: ::core::option::Option<::prost::alloc::string::String>,
/// Defines the type of maintenance.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
/// The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
#[prost(string, optional, tag = "271816480")]
pub window_end_time: ::core::option::Option<::prost::alloc::string::String>,
/// The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
#[prost(string, optional, tag = "473061433")]
pub window_start_time: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `UpcomingMaintenance`.
pub mod upcoming_maintenance {
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum MaintenanceStatus {
/// A value indicating that the enum field is not set.
UndefinedMaintenanceStatus = 0,
/// There is ongoing maintenance on this VM.
Ongoing = 473158491,
/// There is pending maintenance.
Pending = 35394935,
/// Unknown maintenance status. Do not use this value.
Unknown = 433141802,
}
impl MaintenanceStatus {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
MaintenanceStatus::UndefinedMaintenanceStatus => {
"UNDEFINED_MAINTENANCE_STATUS"
}
MaintenanceStatus::Ongoing => "ONGOING",
MaintenanceStatus::Pending => "PENDING",
MaintenanceStatus::Unknown => "UNKNOWN",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_MAINTENANCE_STATUS" => Some(Self::UndefinedMaintenanceStatus),
"ONGOING" => Some(Self::Ongoing),
"PENDING" => Some(Self::Pending),
"UNKNOWN" => Some(Self::Unknown),
_ => None,
}
}
}
/// Defines the type of maintenance.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
/// Scheduled maintenance (e.g. maintenance after uptime guarantee is complete).
Scheduled = 478400653,
/// No type specified. Do not use this value.
UnknownType = 490705455,
/// Unscheduled maintenance (e.g. emergency maintenance during uptime guarantee).
Unscheduled = 450077204,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::Scheduled => "SCHEDULED",
Type::UnknownType => "UNKNOWN_TYPE",
Type::Unscheduled => "UNSCHEDULED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"SCHEDULED" => Some(Self::Scheduled),
"UNKNOWN_TYPE" => Some(Self::UnknownType),
"UNSCHEDULED" => Some(Self::Unscheduled),
_ => None,
}
}
}
}
/// A request message for Instances.UpdateAccessConfig. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateAccessConfigInstanceRequest {
/// The body resource for this request
#[prost(message, optional, tag = "387825552")]
pub access_config_resource: ::core::option::Option<AccessConfig>,
/// The instance name for this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// The name of the network interface where the access config is attached.
#[prost(string, tag = "365387880")]
pub network_interface: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Autoscalers.Update. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateAutoscalerRequest {
/// Name of the autoscaler to update.
#[prost(string, optional, tag = "517258967")]
pub autoscaler: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "207616118")]
pub autoscaler_resource: ::core::option::Option<Autoscaler>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for BackendBuckets.Update. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateBackendBucketRequest {
/// Name of the BackendBucket resource to update.
#[prost(string, tag = "91714037")]
pub backend_bucket: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "380757784")]
pub backend_bucket_resource: ::core::option::Option<BackendBucket>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for BackendServices.Update. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateBackendServiceRequest {
/// Name of the BackendService resource to update.
#[prost(string, tag = "306946058")]
pub backend_service: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "347586723")]
pub backend_service_resource: ::core::option::Option<BackendService>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Disks.Update. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateDiskRequest {
/// The disk name for this request.
#[prost(string, tag = "3083677")]
pub disk: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "25880688")]
pub disk_resource: ::core::option::Option<Disk>,
#[prost(string, optional, tag = "106438894")]
pub paths: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// update_mask indicates fields to be updated as part of this request.
#[prost(string, optional, tag = "500079778")]
pub update_mask: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Instances.UpdateDisplayDevice. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateDisplayDeviceInstanceRequest {
/// The body resource for this request
#[prost(message, optional, tag = "289686106")]
pub display_device_resource: ::core::option::Option<DisplayDevice>,
/// Name of the instance scoping this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Firewalls.Update. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateFirewallRequest {
/// Name of the firewall rule to update.
#[prost(string, tag = "511016192")]
pub firewall: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "41425005")]
pub firewall_resource: ::core::option::Option<Firewall>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for HealthChecks.Update. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateHealthCheckRequest {
/// Name of the HealthCheck resource to update.
#[prost(string, tag = "308876645")]
pub health_check: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "201925032")]
pub health_check_resource: ::core::option::Option<HealthCheck>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for Instances.Update. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateInstanceRequest {
/// Name of the instance resource to update.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "215988344")]
pub instance_resource: ::core::option::Option<Instance>,
/// Specifies the action to take when updating an instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the updated properties require.
/// Check the MinimalAction enum for the list of possible values.
#[prost(string, optional, tag = "270567060")]
pub minimal_action: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART.
/// Check the MostDisruptiveAllowedAction enum for the list of possible values.
#[prost(string, optional, tag = "66103053")]
pub most_disruptive_allowed_action: ::core::option::Option<
::prost::alloc::string::String,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// Nested message and enum types in `UpdateInstanceRequest`.
pub mod update_instance_request {
/// Specifies the action to take when updating an instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the updated properties require.
/// Additional supported values which may be not listed in the enum directly due to technical reasons:
/// INVALID
/// NO_EFFECT
/// REFRESH
/// RESTART
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum MinimalAction {
/// A value indicating that the enum field is not set.
UndefinedMinimalAction = 0,
}
impl MinimalAction {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
MinimalAction::UndefinedMinimalAction => "UNDEFINED_MINIMAL_ACTION",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_MINIMAL_ACTION" => Some(Self::UndefinedMinimalAction),
_ => None,
}
}
}
/// Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART.
/// Additional supported values which may be not listed in the enum directly due to technical reasons:
/// INVALID
/// NO_EFFECT
/// REFRESH
/// RESTART
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum MostDisruptiveAllowedAction {
/// A value indicating that the enum field is not set.
UndefinedMostDisruptiveAllowedAction = 0,
}
impl MostDisruptiveAllowedAction {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
MostDisruptiveAllowedAction::UndefinedMostDisruptiveAllowedAction => {
"UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION" => {
Some(Self::UndefinedMostDisruptiveAllowedAction)
}
_ => None,
}
}
}
}
/// A request message for Instances.UpdateNetworkInterface. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateNetworkInterfaceInstanceRequest {
/// The instance name for this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// The name of the network interface to update.
#[prost(string, tag = "365387880")]
pub network_interface: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "325814789")]
pub network_interface_resource: ::core::option::Option<NetworkInterface>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Networks.UpdatePeering. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdatePeeringNetworkRequest {
/// Name of the network resource which the updated peering is belonging to.
#[prost(string, tag = "232872494")]
pub network: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "224433497")]
pub networks_update_peering_request_resource: ::core::option::Option<
NetworksUpdatePeeringRequest,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for InstanceGroupManagers.UpdatePerInstanceConfigs. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdatePerInstanceConfigsInstanceGroupManagerRequest {
/// The name of the managed instance group. It should conform to RFC1035.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "141402302")]
pub instance_group_managers_update_per_instance_configs_req_resource: ::core::option::Option<
InstanceGroupManagersUpdatePerInstanceConfigsReq,
>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the zone where the managed instance group is located. It should conform to RFC1035.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for RegionInstanceGroupManagers.UpdatePerInstanceConfigs. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest {
/// The name of the managed instance group. It should conform to RFC1035.
#[prost(string, tag = "249363395")]
pub instance_group_manager: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request, should conform to RFC1035.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "89036583")]
pub region_instance_group_manager_update_instance_config_req_resource: ::core::option::Option<
RegionInstanceGroupManagerUpdateInstanceConfigReq,
>,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionAutoscalers.Update. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateRegionAutoscalerRequest {
/// Name of the autoscaler to update.
#[prost(string, optional, tag = "517258967")]
pub autoscaler: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "207616118")]
pub autoscaler_resource: ::core::option::Option<Autoscaler>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionBackendServices.Update. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateRegionBackendServiceRequest {
/// Name of the BackendService resource to update.
#[prost(string, tag = "306946058")]
pub backend_service: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "347586723")]
pub backend_service_resource: ::core::option::Option<BackendService>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionCommitments.Update. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateRegionCommitmentRequest {
/// Name of the commitment for which auto renew is being updated.
#[prost(string, tag = "482134805")]
pub commitment: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "244240888")]
pub commitment_resource: ::core::option::Option<Commitment>,
#[prost(string, optional, tag = "106438894")]
pub paths: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// update_mask indicates fields to be updated as part of this request.
#[prost(string, optional, tag = "500079778")]
pub update_mask: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionDisks.Update. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateRegionDiskRequest {
/// The disk name for this request.
#[prost(string, tag = "3083677")]
pub disk: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "25880688")]
pub disk_resource: ::core::option::Option<Disk>,
#[prost(string, optional, tag = "106438894")]
pub paths: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// update_mask indicates fields to be updated as part of this request.
#[prost(string, optional, tag = "500079778")]
pub update_mask: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionHealthChecks.Update. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateRegionHealthCheckRequest {
/// Name of the HealthCheck resource to update.
#[prost(string, tag = "308876645")]
pub health_check: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "201925032")]
pub health_check_resource: ::core::option::Option<HealthCheck>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionUrlMaps.Update. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateRegionUrlMapRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the UrlMap resource to update.
#[prost(string, tag = "367020684")]
pub url_map: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "168675425")]
pub url_map_resource: ::core::option::Option<UrlMap>,
}
/// A request message for Reservations.Update. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateReservationRequest {
#[prost(string, optional, tag = "106438894")]
pub paths: ::core::option::Option<::prost::alloc::string::String>,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the reservation to update.
#[prost(string, tag = "47530956")]
pub reservation: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "285030177")]
pub reservation_resource: ::core::option::Option<Reservation>,
/// Update_mask indicates fields to be updated as part of this request.
#[prost(string, optional, tag = "500079778")]
pub update_mask: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for Routers.Update. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateRouterRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the Router resource to update.
#[prost(string, tag = "148608841")]
pub router: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "155222084")]
pub router_resource: ::core::option::Option<Router>,
}
/// A request message for Instances.UpdateShieldedInstanceConfig. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateShieldedInstanceConfigInstanceRequest {
/// Name or id of the instance scoping this request.
#[prost(string, tag = "18257045")]
pub instance: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// The body resource for this request
#[prost(message, optional, tag = "272059224")]
pub shielded_instance_config_resource: ::core::option::Option<
ShieldedInstanceConfig,
>,
/// The name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// A request message for UrlMaps.Update. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateUrlMapRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the UrlMap resource to update.
#[prost(string, tag = "367020684")]
pub url_map: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "168675425")]
pub url_map_resource: ::core::option::Option<UrlMap>,
}
/// Represents a URL Map resource. Compute Engine has two URL Map resources: * [Global](/compute/docs/reference/rest/v1/urlMaps) * [Regional](/compute/docs/reference/rest/v1/regionUrlMaps) A URL map resource is a component of certain types of cloud load balancers and Traffic Director: * urlMaps are used by global external Application Load Balancers, classic Application Load Balancers, and cross-region internal Application Load Balancers. * regionUrlMaps are used by internal Application Load Balancers, regional external Application Load Balancers and regional internal Application Load Balancers. For a list of supported URL map features by the load balancer type, see the Load balancing features: Routing and traffic management table. For a list of supported URL map features for Traffic Director, see the Traffic Director features: Routing and traffic management table. This resource defines mappings from hostnames and URL paths to either a backend service or a backend bucket. To use the global urlMaps resource, the backend service must have a loadBalancingScheme of either EXTERNAL or INTERNAL_SELF_MANAGED. To use the regionUrlMaps resource, the backend service must have a loadBalancingScheme of INTERNAL_MANAGED. For more information, read URL Map Concepts.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UrlMap {
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
#[prost(message, optional, tag = "378919466")]
pub default_route_action: ::core::option::Option<HttpRouteAction>,
/// The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
#[prost(string, optional, tag = "370242231")]
pub default_service: ::core::option::Option<::prost::alloc::string::String>,
/// When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
#[prost(message, optional, tag = "359503338")]
pub default_url_redirect: ::core::option::Option<HttpRedirectAction>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a UrlMap.
#[prost(string, optional, tag = "234678500")]
pub fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
#[prost(message, optional, tag = "328077352")]
pub header_action: ::core::option::Option<HttpHeaderAction>,
/// The list of host rules to use against the URL.
#[prost(message, repeated, tag = "311804832")]
pub host_rules: ::prost::alloc::vec::Vec<HostRule>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#urlMaps for url maps.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The list of named PathMatchers to use against the URL.
#[prost(message, repeated, tag = "271664219")]
pub path_matchers: ::prost::alloc::vec::Vec<PathMatcher>,
/// \[Output Only\] URL of the region where the regional URL map resides. This field is not applicable to global URL maps. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
#[prost(message, repeated, tag = "110251553")]
pub tests: ::prost::alloc::vec::Vec<UrlMapTest>,
}
/// Contains a list of UrlMap resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UrlMapList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of UrlMap resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<UrlMap>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UrlMapReference {
#[prost(string, optional, tag = "367020684")]
pub url_map: ::core::option::Option<::prost::alloc::string::String>,
}
/// Message for the expected URL mappings.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UrlMapTest {
/// Description of this test case.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified.
#[prost(string, optional, tag = "433967384")]
pub expected_output_url: ::core::option::Option<::prost::alloc::string::String>,
/// For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set when service is set.
#[prost(int32, optional, tag = "18888047")]
pub expected_redirect_response_code: ::core::option::Option<i32>,
/// HTTP headers for this request. If headers contains a host header, then host must also match the header value.
#[prost(message, repeated, tag = "258436998")]
pub headers: ::prost::alloc::vec::Vec<UrlMapTestHeader>,
/// Host portion of the URL. If headers contains a host header, then host must also match the header value.
#[prost(string, optional, tag = "3208616")]
pub host: ::core::option::Option<::prost::alloc::string::String>,
/// Path portion of the URL.
#[prost(string, optional, tag = "3433509")]
pub path: ::core::option::Option<::prost::alloc::string::String>,
/// Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.
#[prost(string, optional, tag = "373540533")]
pub service: ::core::option::Option<::prost::alloc::string::String>,
}
/// HTTP headers used in UrlMapTests.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UrlMapTestHeader {
/// Header name.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Header value.
#[prost(string, optional, tag = "111972721")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
/// Message representing the validation result for a UrlMap.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UrlMapValidationResult {
#[prost(string, repeated, tag = "310147300")]
pub load_errors: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the reasons.
#[prost(bool, optional, tag = "128326216")]
pub load_succeeded: ::core::option::Option<bool>,
#[prost(message, repeated, tag = "505934134")]
pub test_failures: ::prost::alloc::vec::Vec<TestFailure>,
/// If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's indicate the reason of failure.
#[prost(bool, optional, tag = "192708797")]
pub test_passed: ::core::option::Option<bool>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UrlMapsAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of UrlMapsScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
UrlMapsScopedList,
>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UrlMapsScopedList {
/// A list of UrlMaps contained in this scope.
#[prost(message, repeated, tag = "103352167")]
pub url_maps: ::prost::alloc::vec::Vec<UrlMap>,
/// Informational warning which replaces the list of backend services when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UrlMapsValidateRequest {
/// Specifies the load balancer type(s) this validation request is for. Use EXTERNAL_MANAGED for global external Application Load Balancers and regional external Application Load Balancers. Use EXTERNAL for classic Application Load Balancers. Use INTERNAL_MANAGED for internal Application Load Balancers. For more information, refer to Choosing a load balancer. If unspecified, the load balancing scheme will be inferred from the backend service resources this URL map references. If that can not be inferred (for example, this URL map only references backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any backends), EXTERNAL will be used as the default type. If specified, the scheme(s) must not conflict with the load balancing scheme of the backend service resources this Url map references.
/// Check the LoadBalancingSchemes enum for the list of possible values.
#[prost(string, repeated, tag = "6308527")]
pub load_balancing_schemes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Content of the UrlMap to be validated.
#[prost(message, optional, tag = "195806222")]
pub resource: ::core::option::Option<UrlMap>,
}
/// Nested message and enum types in `UrlMapsValidateRequest`.
pub mod url_maps_validate_request {
///
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum LoadBalancingSchemes {
/// A value indicating that the enum field is not set.
UndefinedLoadBalancingSchemes = 0,
/// Signifies that this will be used for classic Application Load Balancers.
External = 35607499,
/// Signifies that this will be used for Envoy-based global external Application Load Balancers.
ExternalManaged = 512006923,
/// If unspecified, the validation will try to infer the scheme from the backend service resources this Url map references. If the inference is not possible, EXTERNAL will be used as the default type.
LoadBalancingSchemeUnspecified = 526507452,
}
impl LoadBalancingSchemes {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
LoadBalancingSchemes::UndefinedLoadBalancingSchemes => {
"UNDEFINED_LOAD_BALANCING_SCHEMES"
}
LoadBalancingSchemes::External => "EXTERNAL",
LoadBalancingSchemes::ExternalManaged => "EXTERNAL_MANAGED",
LoadBalancingSchemes::LoadBalancingSchemeUnspecified => {
"LOAD_BALANCING_SCHEME_UNSPECIFIED"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_LOAD_BALANCING_SCHEMES" => {
Some(Self::UndefinedLoadBalancingSchemes)
}
"EXTERNAL" => Some(Self::External),
"EXTERNAL_MANAGED" => Some(Self::ExternalManaged),
"LOAD_BALANCING_SCHEME_UNSPECIFIED" => {
Some(Self::LoadBalancingSchemeUnspecified)
}
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UrlMapsValidateResponse {
#[prost(message, optional, tag = "139315229")]
pub result: ::core::option::Option<UrlMapValidationResult>,
}
/// The spec for modifying the path before sending the request to the matched backend service.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UrlRewrite {
/// Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
#[prost(string, optional, tag = "159819253")]
pub host_rewrite: ::core::option::Option<::prost::alloc::string::String>,
/// Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
#[prost(string, optional, tag = "41186361")]
pub path_prefix_rewrite: ::core::option::Option<::prost::alloc::string::String>,
/// If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax. A corresponding path_template_match must be specified. Any template variables must exist in the path_template_match field. - -At least one variable must be specified in the path_template_match field - You can omit variables from the rewritten URL - The * and ** operators cannot be matched unless they have a corresponding variable name - e.g. {format=*} or {var=**}. For example, a path_template_match of /static/{format=**} could be rewritten as /static/content/{format} to prefix /content to the URL. Variables can also be re-ordered in a rewrite, so that /{country}/{format}/{suffix=**} can be rewritten as /content/{format}/{country}/{suffix}. At least one non-empty routeRules\[\].matchRules\[\].path_template_match is required. Only one of path_prefix_rewrite or path_template_rewrite may be specified.
#[prost(string, optional, tag = "423409569")]
pub path_template_rewrite: ::core::option::Option<::prost::alloc::string::String>,
}
/// Subnetwork which the current user has compute.subnetworks.use permission on.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UsableSubnetwork {
/// \[Output Only\] The external IPv6 address range that is assigned to this subnetwork.
#[prost(string, optional, tag = "139299190")]
pub external_ipv6_prefix: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The internal IPv6 address range that is assigned to this subnetwork.
#[prost(string, optional, tag = "506270056")]
pub internal_ipv6_prefix: ::core::option::Option<::prost::alloc::string::String>,
/// The range of internal addresses that are owned by this subnetwork.
#[prost(string, optional, tag = "98117322")]
pub ip_cidr_range: ::core::option::Option<::prost::alloc::string::String>,
/// The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack.
/// Check the Ipv6AccessType enum for the list of possible values.
#[prost(string, optional, tag = "504658653")]
pub ipv6_access_type: ::core::option::Option<::prost::alloc::string::String>,
/// Network URL.
#[prost(string, optional, tag = "232872494")]
pub network: ::core::option::Option<::prost::alloc::string::String>,
/// The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
/// Check the Purpose enum for the list of possible values.
#[prost(string, optional, tag = "316407070")]
pub purpose: ::core::option::Option<::prost::alloc::string::String>,
/// The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request.
/// Check the Role enum for the list of possible values.
#[prost(string, optional, tag = "3506294")]
pub role: ::core::option::Option<::prost::alloc::string::String>,
/// Secondary IP ranges.
#[prost(message, repeated, tag = "136658915")]
pub secondary_ip_ranges: ::prost::alloc::vec::Vec<UsableSubnetworkSecondaryRange>,
/// The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch.
/// Check the StackType enum for the list of possible values.
#[prost(string, optional, tag = "425908881")]
pub stack_type: ::core::option::Option<::prost::alloc::string::String>,
/// Subnetwork URL.
#[prost(string, optional, tag = "307827694")]
pub subnetwork: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `UsableSubnetwork`.
pub mod usable_subnetwork {
/// The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Ipv6AccessType {
/// A value indicating that the enum field is not set.
UndefinedIpv6AccessType = 0,
/// VMs on this subnet will be assigned IPv6 addresses that are accessible via the Internet, as well as the VPC network.
External = 35607499,
/// VMs on this subnet will be assigned IPv6 addresses that are only accessible over the VPC network.
Internal = 279295677,
}
impl Ipv6AccessType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Ipv6AccessType::UndefinedIpv6AccessType => "UNDEFINED_IPV6_ACCESS_TYPE",
Ipv6AccessType::External => "EXTERNAL",
Ipv6AccessType::Internal => "INTERNAL",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_IPV6_ACCESS_TYPE" => Some(Self::UndefinedIpv6AccessType),
"EXTERNAL" => Some(Self::External),
"INTERNAL" => Some(Self::Internal),
_ => None,
}
}
}
/// The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Purpose {
/// A value indicating that the enum field is not set.
UndefinedPurpose = 0,
/// Subnet reserved for Global Envoy-based Load Balancing.
GlobalManagedProxy = 236463602,
/// Subnet reserved for Internal HTTP(S) Load Balancing. This is a legacy purpose, please use REGIONAL_MANAGED_PROXY instead.
InternalHttpsLoadBalancer = 248748889,
/// Regular user created or automatically created subnet.
Private = 403485027,
/// Subnetwork used as source range for Private NAT Gateways.
PrivateNat = 367764517,
/// Regular user created or automatically created subnet.
PrivateRfc1918 = 254902107,
/// Subnetworks created for Private Service Connect in the producer network.
PrivateServiceConnect = 48134724,
/// Subnetwork used for Regional Envoy-based Load Balancing.
RegionalManagedProxy = 153049966,
}
impl Purpose {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Purpose::UndefinedPurpose => "UNDEFINED_PURPOSE",
Purpose::GlobalManagedProxy => "GLOBAL_MANAGED_PROXY",
Purpose::InternalHttpsLoadBalancer => "INTERNAL_HTTPS_LOAD_BALANCER",
Purpose::Private => "PRIVATE",
Purpose::PrivateNat => "PRIVATE_NAT",
Purpose::PrivateRfc1918 => "PRIVATE_RFC_1918",
Purpose::PrivateServiceConnect => "PRIVATE_SERVICE_CONNECT",
Purpose::RegionalManagedProxy => "REGIONAL_MANAGED_PROXY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_PURPOSE" => Some(Self::UndefinedPurpose),
"GLOBAL_MANAGED_PROXY" => Some(Self::GlobalManagedProxy),
"INTERNAL_HTTPS_LOAD_BALANCER" => Some(Self::InternalHttpsLoadBalancer),
"PRIVATE" => Some(Self::Private),
"PRIVATE_NAT" => Some(Self::PrivateNat),
"PRIVATE_RFC_1918" => Some(Self::PrivateRfc1918),
"PRIVATE_SERVICE_CONNECT" => Some(Self::PrivateServiceConnect),
"REGIONAL_MANAGED_PROXY" => Some(Self::RegionalManagedProxy),
_ => None,
}
}
}
/// The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Role {
/// A value indicating that the enum field is not set.
UndefinedRole = 0,
/// The ACTIVE subnet that is currently used.
Active = 314733318,
/// The BACKUP subnet that could be promoted to ACTIVE.
Backup = 341010882,
}
impl Role {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Role::UndefinedRole => "UNDEFINED_ROLE",
Role::Active => "ACTIVE",
Role::Backup => "BACKUP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_ROLE" => Some(Self::UndefinedRole),
"ACTIVE" => Some(Self::Active),
"BACKUP" => Some(Self::Backup),
_ => None,
}
}
}
/// The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum StackType {
/// A value indicating that the enum field is not set.
UndefinedStackType = 0,
/// New VMs in this subnet can have both IPv4 and IPv6 addresses.
Ipv4Ipv6 = 22197249,
/// New VMs in this subnet will only be assigned IPv4 addresses.
Ipv4Only = 22373798,
}
impl StackType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
StackType::UndefinedStackType => "UNDEFINED_STACK_TYPE",
StackType::Ipv4Ipv6 => "IPV4_IPV6",
StackType::Ipv4Only => "IPV4_ONLY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STACK_TYPE" => Some(Self::UndefinedStackType),
"IPV4_IPV6" => Some(Self::Ipv4Ipv6),
"IPV4_ONLY" => Some(Self::Ipv4Only),
_ => None,
}
}
}
}
/// Secondary IP range of a usable subnetwork.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UsableSubnetworkSecondaryRange {
/// The range of IP addresses belonging to this subnetwork secondary range.
#[prost(string, optional, tag = "98117322")]
pub ip_cidr_range: ::core::option::Option<::prost::alloc::string::String>,
/// The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
#[prost(string, optional, tag = "332216397")]
pub range_name: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UsableSubnetworksAggregatedList {
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output\] A list of usable subnetwork URLs.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<UsableSubnetwork>,
/// \[Output Only\] Type of resource. Always compute#usableSubnetworksAggregatedList for aggregated lists of usable subnetworks.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. In special cases listUsable may return 0 subnetworks and nextPageToken which still should be used to get the next page of results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// The location in Cloud Storage and naming method of the daily usage report. Contains bucket_name and report_name prefix.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UsageExportLocation {
/// The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the bucket name by itself, such as example-bucket, or the bucket name with gs:// or <https://storage.googleapis.com/> in front of it, such as gs://example-bucket.
#[prost(string, optional, tag = "283610048")]
pub bucket_name: ::core::option::Option<::prost::alloc::string::String>,
/// An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage_gce. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions.
#[prost(string, optional, tag = "320198715")]
pub report_name_prefix: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for RegionUrlMaps.Validate. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateRegionUrlMapRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region scoping this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "56632858")]
pub region_url_maps_validate_request_resource: ::core::option::Option<
RegionUrlMapsValidateRequest,
>,
/// Name of the UrlMap resource to be validated as.
#[prost(string, tag = "367020684")]
pub url_map: ::prost::alloc::string::String,
}
/// A request message for UrlMaps.Validate. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateUrlMapRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the UrlMap resource to be validated as.
#[prost(string, tag = "367020684")]
pub url_map: ::prost::alloc::string::String,
/// The body resource for this request
#[prost(message, optional, tag = "395913455")]
pub url_maps_validate_request_resource: ::core::option::Option<
UrlMapsValidateRequest,
>,
}
/// Contain information of Nat mapping for a VM endpoint (i.e., NIC).
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VmEndpointNatMappings {
/// Name of the VM instance which the endpoint belongs to
#[prost(string, optional, tag = "227947509")]
pub instance_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, repeated, tag = "256196617")]
pub interface_nat_mappings: ::prost::alloc::vec::Vec<
VmEndpointNatMappingsInterfaceNatMappings,
>,
}
/// Contain information of Nat mapping for an interface of this endpoint.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VmEndpointNatMappingsInterfaceNatMappings {
/// List of all drain IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: \["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"\].
#[prost(string, repeated, tag = "395440577")]
pub drain_nat_ip_port_ranges: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// A list of all IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: \["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"\].
#[prost(string, repeated, tag = "531830810")]
pub nat_ip_port_ranges: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Total number of drain ports across all NAT IPs allocated to this interface. It equals to the aggregated port number in the field drain_nat_ip_port_ranges.
#[prost(int32, optional, tag = "335532793")]
pub num_total_drain_nat_ports: ::core::option::Option<i32>,
/// Total number of ports across all NAT IPs allocated to this interface. It equals to the aggregated port number in the field nat_ip_port_ranges.
#[prost(int32, optional, tag = "299904384")]
pub num_total_nat_ports: ::core::option::Option<i32>,
/// Information about mappings provided by rules in this NAT.
#[prost(message, repeated, tag = "486192968")]
pub rule_mappings: ::prost::alloc::vec::Vec<
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings,
>,
/// Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP range. Examples: "10.33.4.55/32", or "192.168.5.0/24".
#[prost(string, optional, tag = "440340952")]
pub source_alias_ip_range: ::core::option::Option<::prost::alloc::string::String>,
/// Primary IP of the VM for this NIC.
#[prost(string, optional, tag = "149836159")]
pub source_virtual_ip: ::core::option::Option<::prost::alloc::string::String>,
}
/// Contains information of NAT Mappings provided by a NAT Rule.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings {
/// List of all drain IP:port-range mappings assigned to this interface by this rule. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: \["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"\].
#[prost(string, repeated, tag = "395440577")]
pub drain_nat_ip_port_ranges: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// A list of all IP:port-range mappings assigned to this interface by this rule. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: \["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"\].
#[prost(string, repeated, tag = "531830810")]
pub nat_ip_port_ranges: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Total number of drain ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges.
#[prost(int32, optional, tag = "335532793")]
pub num_total_drain_nat_ports: ::core::option::Option<i32>,
/// Total number of ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field nat_ip_port_ranges.
#[prost(int32, optional, tag = "299904384")]
pub num_total_nat_ports: ::core::option::Option<i32>,
/// Rule number of the NAT Rule.
#[prost(int32, optional, tag = "535211500")]
pub rule_number: ::core::option::Option<i32>,
}
/// Contains a list of VmEndpointNatMappings.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VmEndpointNatMappingsList {
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A list of Nat mapping information of VM endpoints.
#[prost(message, repeated, tag = "139315229")]
pub result: ::prost::alloc::vec::Vec<VmEndpointNatMappings>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represents a HA VPN gateway. HA VPN is a high-availability (HA) Cloud VPN solution that lets you securely connect your on-premises network to your Google Cloud Virtual Private Cloud network through an IPsec VPN connection in a single region. For more information about Cloud HA VPN solutions, see Cloud VPN topologies .
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VpnGateway {
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will be used.
/// Check the GatewayIpVersion enum for the list of possible values.
#[prost(string, optional, tag = "65074843")]
pub gateway_ip_version: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of resource. Always compute#vpnGateway for VPN gateways.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a VpnGateway.
#[prost(string, optional, tag = "178124825")]
pub label_fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the network to which this VPN gateway is attached. Provided by the client when the VPN gateway is created.
#[prost(string, optional, tag = "232872494")]
pub network: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the region where the VPN gateway resides.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6. If not specified, IPV4_ONLY will be used.
/// Check the StackType enum for the list of possible values.
#[prost(string, optional, tag = "425908881")]
pub stack_type: ::core::option::Option<::prost::alloc::string::String>,
/// The list of VPN interfaces associated with this VPN gateway.
#[prost(message, repeated, tag = "91842181")]
pub vpn_interfaces: ::prost::alloc::vec::Vec<VpnGatewayVpnGatewayInterface>,
}
/// Nested message and enum types in `VpnGateway`.
pub mod vpn_gateway {
/// The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will be used.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum GatewayIpVersion {
/// A value indicating that the enum field is not set.
UndefinedGatewayIpVersion = 0,
/// Every HA-VPN gateway interface is configured with an IPv4 address.
Ipv4 = 2254341,
/// Every HA-VPN gateway interface is configured with an IPv6 address.
Ipv6 = 2254343,
}
impl GatewayIpVersion {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
GatewayIpVersion::UndefinedGatewayIpVersion => {
"UNDEFINED_GATEWAY_IP_VERSION"
}
GatewayIpVersion::Ipv4 => "IPV4",
GatewayIpVersion::Ipv6 => "IPV6",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_GATEWAY_IP_VERSION" => Some(Self::UndefinedGatewayIpVersion),
"IPV4" => Some(Self::Ipv4),
"IPV6" => Some(Self::Ipv6),
_ => None,
}
}
}
/// The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6. If not specified, IPV4_ONLY will be used.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum StackType {
/// A value indicating that the enum field is not set.
UndefinedStackType = 0,
/// Enable VPN gateway with both IPv4 and IPv6 protocols.
Ipv4Ipv6 = 22197249,
/// Enable VPN gateway with only IPv4 protocol.
Ipv4Only = 22373798,
}
impl StackType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
StackType::UndefinedStackType => "UNDEFINED_STACK_TYPE",
StackType::Ipv4Ipv6 => "IPV4_IPV6",
StackType::Ipv4Only => "IPV4_ONLY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STACK_TYPE" => Some(Self::UndefinedStackType),
"IPV4_IPV6" => Some(Self::Ipv4Ipv6),
"IPV4_ONLY" => Some(Self::Ipv4Only),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VpnGatewayAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of VpnGateway resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
VpnGatewaysScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#vpnGateway for VPN gateways.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of VpnGateway resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VpnGatewayList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of VpnGateway resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<VpnGateway>,
/// \[Output Only\] Type of resource. Always compute#vpnGateway for VPN gateways.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VpnGatewayStatus {
/// List of VPN connection for this VpnGateway.
#[prost(message, repeated, tag = "439334538")]
pub vpn_connections: ::prost::alloc::vec::Vec<VpnGatewayStatusVpnConnection>,
}
/// Describes the high availability requirement state for the VPN connection between this Cloud VPN gateway and a peer gateway.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VpnGatewayStatusHighAvailabilityRequirementState {
/// Indicates the high availability requirement state for the VPN connection. Valid values are CONNECTION_REDUNDANCY_MET, CONNECTION_REDUNDANCY_NOT_MET.
/// Check the State enum for the list of possible values.
#[prost(string, optional, tag = "109757585")]
pub state: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates the reason why the VPN connection does not meet the high availability redundancy criteria/requirement. Valid values is INCOMPLETE_TUNNELS_COVERAGE.
/// Check the UnsatisfiedReason enum for the list of possible values.
#[prost(string, optional, tag = "55016330")]
pub unsatisfied_reason: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `VpnGatewayStatusHighAvailabilityRequirementState`.
pub mod vpn_gateway_status_high_availability_requirement_state {
/// Indicates the high availability requirement state for the VPN connection. Valid values are CONNECTION_REDUNDANCY_MET, CONNECTION_REDUNDANCY_NOT_MET.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// A value indicating that the enum field is not set.
UndefinedState = 0,
/// VPN tunnels are configured with adequate redundancy from Cloud VPN gateway to the peer VPN gateway. For both GCP-to-non-GCP and GCP-to-GCP connections, the adequate redundancy is a pre-requirement for users to get 99.99% availability on GCP side; please note that for any connection, end-to-end 99.99% availability is subject to proper configuration on the peer VPN gateway.
ConnectionRedundancyMet = 505242907,
/// VPN tunnels are not configured with adequate redundancy from the Cloud VPN gateway to the peer gateway
ConnectionRedundancyNotMet = 511863311,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::UndefinedState => "UNDEFINED_STATE",
State::ConnectionRedundancyMet => "CONNECTION_REDUNDANCY_MET",
State::ConnectionRedundancyNotMet => "CONNECTION_REDUNDANCY_NOT_MET",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATE" => Some(Self::UndefinedState),
"CONNECTION_REDUNDANCY_MET" => Some(Self::ConnectionRedundancyMet),
"CONNECTION_REDUNDANCY_NOT_MET" => Some(Self::ConnectionRedundancyNotMet),
_ => None,
}
}
}
/// Indicates the reason why the VPN connection does not meet the high availability redundancy criteria/requirement. Valid values is INCOMPLETE_TUNNELS_COVERAGE.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum UnsatisfiedReason {
/// A value indicating that the enum field is not set.
UndefinedUnsatisfiedReason = 0,
IncompleteTunnelsCoverage = 55917437,
}
impl UnsatisfiedReason {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
UnsatisfiedReason::UndefinedUnsatisfiedReason => {
"UNDEFINED_UNSATISFIED_REASON"
}
UnsatisfiedReason::IncompleteTunnelsCoverage => {
"INCOMPLETE_TUNNELS_COVERAGE"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_UNSATISFIED_REASON" => Some(Self::UndefinedUnsatisfiedReason),
"INCOMPLETE_TUNNELS_COVERAGE" => Some(Self::IncompleteTunnelsCoverage),
_ => None,
}
}
}
}
/// Contains some information about a VPN tunnel.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VpnGatewayStatusTunnel {
/// The VPN gateway interface this VPN tunnel is associated with.
#[prost(uint32, optional, tag = "158764330")]
pub local_gateway_interface: ::core::option::Option<u32>,
/// The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway.
#[prost(uint32, optional, tag = "214380385")]
pub peer_gateway_interface: ::core::option::Option<u32>,
/// URL reference to the VPN tunnel.
#[prost(string, optional, tag = "78975256")]
pub tunnel_url: ::core::option::Option<::prost::alloc::string::String>,
}
/// A VPN connection contains all VPN tunnels connected from this VpnGateway to the same peer gateway. The peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VpnGatewayStatusVpnConnection {
/// URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
#[prost(string, optional, tag = "384956173")]
pub peer_external_gateway: ::core::option::Option<::prost::alloc::string::String>,
/// URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
#[prost(string, optional, tag = "281867452")]
pub peer_gcp_gateway: ::core::option::Option<::prost::alloc::string::String>,
/// HighAvailabilityRequirementState for the VPN connection.
#[prost(message, optional, tag = "109757585")]
pub state: ::core::option::Option<VpnGatewayStatusHighAvailabilityRequirementState>,
/// List of VPN tunnels that are in this VPN connection.
#[prost(message, repeated, tag = "104561931")]
pub tunnels: ::prost::alloc::vec::Vec<VpnGatewayStatusTunnel>,
}
/// A VPN gateway interface.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VpnGatewayVpnGatewayInterface {
/// \[Output Only\] Numeric identifier for this VPN interface associated with the VPN gateway.
#[prost(uint32, optional, tag = "3355")]
pub id: ::core::option::Option<u32>,
/// URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.
#[prost(string, optional, tag = "308135284")]
pub interconnect_attachment: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.
#[prost(string, optional, tag = "406272220")]
pub ip_address: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
#[prost(string, optional, tag = "341563804")]
pub ipv6_address: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VpnGatewaysGetStatusResponse {
#[prost(message, optional, tag = "139315229")]
pub result: ::core::option::Option<VpnGatewayStatus>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VpnGatewaysScopedList {
/// \[Output Only\] A list of VPN gateways contained in this scope.
#[prost(message, repeated, tag = "259177882")]
pub vpn_gateways: ::prost::alloc::vec::Vec<VpnGateway>,
/// \[Output Only\] Informational warning which replaces the list of addresses when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Represents a Cloud VPN Tunnel resource. For more information about VPN, read the the Cloud VPN Overview.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VpnTunnel {
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// An optional description of this resource. Provide this property when you create the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Detailed status message for the VPN tunnel.
#[prost(string, optional, tag = "333501025")]
pub detailed_status: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. Acceptable IKE versions are 1 or 2. The default version is 2.
#[prost(int32, optional, tag = "218376220")]
pub ike_version: ::core::option::Option<i32>,
/// \[Output Only\] Type of resource. Always compute#vpnTunnel for VPN tunnels.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a VpnTunnel.
#[prost(string, optional, tag = "178124825")]
pub label_fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported.
#[prost(string, repeated, tag = "317314613")]
pub local_traffic_selector: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](\[-a-z0-9\]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field is exclusive with the field peerGcpGateway.
#[prost(string, optional, tag = "384956173")]
pub peer_external_gateway: ::core::option::Option<::prost::alloc::string::String>,
/// The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. Possible values are: `0`, `1`, `2`, `3`. The number of IDs in use depends on the external VPN gateway redundancy type.
#[prost(int32, optional, tag = "452768391")]
pub peer_external_gateway_interface: ::core::option::Option<i32>,
/// URL of the peer side HA VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field can be used when creating highly available VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer Google Cloud VPN gateway.
#[prost(string, optional, tag = "281867452")]
pub peer_gcp_gateway: ::core::option::Option<::prost::alloc::string::String>,
/// IP address of the peer VPN gateway. Only IPv4 is supported.
#[prost(string, optional, tag = "383249700")]
pub peer_ip: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] URL of the region where the VPN tunnel resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.
#[prost(string, repeated, tag = "358887098")]
pub remote_traffic_selector: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// URL of the router resource to be used for dynamic routing.
#[prost(string, optional, tag = "148608841")]
pub router: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
#[prost(string, optional, tag = "381932490")]
pub shared_secret: ::core::option::Option<::prost::alloc::string::String>,
/// Hash of the shared secret.
#[prost(string, optional, tag = "398881891")]
pub shared_secret_hash: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel configuration was rejected, can be result of being denied access. - ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created.
#[prost(string, optional, tag = "532512843")]
pub target_vpn_gateway: ::core::option::Option<::prost::alloc::string::String>,
/// URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High Availability VPN gateway resource is created.
#[prost(string, optional, tag = "406684153")]
pub vpn_gateway: ::core::option::Option<::prost::alloc::string::String>,
/// The interface ID of the VPN gateway with which this VPN tunnel is associated. Possible values are: `0`, `1`.
#[prost(int32, optional, tag = "95979123")]
pub vpn_gateway_interface: ::core::option::Option<i32>,
}
/// Nested message and enum types in `VpnTunnel`.
pub mod vpn_tunnel {
/// \[Output Only\] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel configuration was rejected, can be result of being denied access. - ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
/// Cloud VPN is in the process of allocating all required resources (specifically, a borg task).
AllocatingResources = 320922816,
/// Auth error (e.g. bad shared secret).
AuthorizationError = 23580290,
/// Resources is being deallocated for the VPN tunnel.
Deprovisioning = 428935662,
/// Secure session is successfully established with peer VPN.
Established = 88852344,
/// Tunnel creation has failed and the tunnel is not ready to be used.
Failed = 455706685,
/// Successful first handshake with peer VPN.
FirstHandshake = 191393000,
/// Handshake failed.
NegotiationFailure = 360325868,
/// Deprecated, replaced by NO_INCOMING_PACKETS
NetworkError = 193912951,
/// No incoming packets from peer
NoIncomingPackets = 119983216,
/// Resource is being allocated for the VPN tunnel.
Provisioning = 290896621,
/// Tunnel configuration was rejected, can be result of being denylisted.
Rejected = 174130302,
/// Tunnel is stopped due to its Forwarding Rules being deleted.
Stopped = 444276141,
/// Waiting to receive all VPN-related configs from user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule and Route resources are needed to setup VPN tunnel.
WaitingForFullConfig = 41640522,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::AllocatingResources => "ALLOCATING_RESOURCES",
Status::AuthorizationError => "AUTHORIZATION_ERROR",
Status::Deprovisioning => "DEPROVISIONING",
Status::Established => "ESTABLISHED",
Status::Failed => "FAILED",
Status::FirstHandshake => "FIRST_HANDSHAKE",
Status::NegotiationFailure => "NEGOTIATION_FAILURE",
Status::NetworkError => "NETWORK_ERROR",
Status::NoIncomingPackets => "NO_INCOMING_PACKETS",
Status::Provisioning => "PROVISIONING",
Status::Rejected => "REJECTED",
Status::Stopped => "STOPPED",
Status::WaitingForFullConfig => "WAITING_FOR_FULL_CONFIG",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"ALLOCATING_RESOURCES" => Some(Self::AllocatingResources),
"AUTHORIZATION_ERROR" => Some(Self::AuthorizationError),
"DEPROVISIONING" => Some(Self::Deprovisioning),
"ESTABLISHED" => Some(Self::Established),
"FAILED" => Some(Self::Failed),
"FIRST_HANDSHAKE" => Some(Self::FirstHandshake),
"NEGOTIATION_FAILURE" => Some(Self::NegotiationFailure),
"NETWORK_ERROR" => Some(Self::NetworkError),
"NO_INCOMING_PACKETS" => Some(Self::NoIncomingPackets),
"PROVISIONING" => Some(Self::Provisioning),
"REJECTED" => Some(Self::Rejected),
"STOPPED" => Some(Self::Stopped),
"WAITING_FOR_FULL_CONFIG" => Some(Self::WaitingForFullConfig),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VpnTunnelAggregatedList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of VpnTunnelsScopedList resources.
#[prost(btree_map = "string, message", tag = "100526016")]
pub items: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
VpnTunnelsScopedList,
>,
/// \[Output Only\] Type of resource. Always compute#vpnTunnel for VPN tunnels.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Unreachable resources.
#[prost(string, repeated, tag = "243372063")]
pub unreachables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Contains a list of VpnTunnel resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VpnTunnelList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of VpnTunnel resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<VpnTunnel>,
/// \[Output Only\] Type of resource. Always compute#vpnTunnel for VPN tunnels.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VpnTunnelsScopedList {
/// A list of VPN tunnels contained in this scope.
#[prost(message, repeated, tag = "163494080")]
pub vpn_tunnels: ::prost::alloc::vec::Vec<VpnTunnel>,
/// Informational warning which replaces the list of addresses when the list is empty.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WafExpressionSet {
/// A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" is particularly useful if a policy likes to avail newer set of expressions without having to change the policy. A given alias name can't be used for more than one entity set.
#[prost(string, repeated, tag = "159207166")]
pub aliases: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// List of available expressions.
#[prost(message, repeated, tag = "175554779")]
pub expressions: ::prost::alloc::vec::Vec<WafExpressionSetExpression>,
/// Google specified expression set ID. The format should be: - E.g. XSS-20170329 required
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WafExpressionSetExpression {
/// Expression ID should uniquely identify the origin of the expression. E.g. owasp-crs-v020901-id973337 identifies Owasp core rule set version 2.9.1 rule id 973337. The ID could be used to determine the individual attack definition that has been detected. It could also be used to exclude it from the policy in case of false positive. required
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// The sensitivity value associated with the WAF rule ID. This corresponds to the ModSecurity paranoia level, ranging from 1 to 4. 0 is reserved for opt-in only rules.
#[prost(int32, optional, tag = "27532959")]
pub sensitivity: ::core::option::Option<i32>,
}
/// A request message for GlobalOperations.Wait. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WaitGlobalOperationRequest {
/// Name of the Operations resource to return.
#[prost(string, tag = "52090215")]
pub operation: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
}
/// A request message for RegionOperations.Wait. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WaitRegionOperationRequest {
/// Name of the Operations resource to return.
#[prost(string, tag = "52090215")]
pub operation: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the region for this request.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
}
/// A request message for ZoneOperations.Wait. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WaitZoneOperationRequest {
/// Name of the Operations resource to return.
#[prost(string, tag = "52090215")]
pub operation: ::prost::alloc::string::String,
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// Name of the zone for this request.
#[prost(string, tag = "3744684")]
pub zone: ::prost::alloc::string::String,
}
/// \[Output Only\] Informational warning message.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Warning {
/// \[Output Only\] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
/// Check the Code enum for the list of possible values.
#[prost(string, optional, tag = "3059181")]
pub code: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
#[prost(message, repeated, tag = "3076010")]
pub data: ::prost::alloc::vec::Vec<Data>,
/// \[Output Only\] A human-readable description of the warning code.
#[prost(string, optional, tag = "418054151")]
pub message: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Warning`.
pub mod warning {
/// \[Output Only\] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Code {
/// A value indicating that the enum field is not set.
UndefinedCode = 0,
/// Warning about failed cleanup of transient changes made by a failed operation.
CleanupFailed = 150308440,
/// A link to a deprecated resource was created.
DeprecatedResourceUsed = 391835586,
/// When deploying and at least one of the resources has a type marked as deprecated
DeprecatedTypeUsed = 346526230,
/// The user created a boot disk that is larger than image size.
DiskSizeLargerThanImageSize = 369442967,
/// When deploying and at least one of the resources has a type marked as experimental
ExperimentalTypeUsed = 451954443,
/// Warning that is present in an external api call
ExternalApiWarning = 175546307,
/// Warning that value of a field has been overridden. Deprecated unused field.
FieldValueOverriden = 329669423,
/// The operation involved use of an injected kernel, which is deprecated.
InjectedKernelsDeprecated = 417377419,
/// A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.
InvalidHealthCheckForDynamicWieghtedLb = 401542606,
/// When deploying a deployment with a exceedingly large number of resources
LargeDeploymentWarning = 481440678,
/// Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.
ListOverheadQuotaExceed = 47618117,
/// A resource depends on a missing type
MissingTypeDependency = 344505463,
/// The route's nextHopIp address is not assigned to an instance on the network.
NextHopAddressNotAssigned = 324964999,
/// The route's next hop instance cannot ip forward.
NextHopCannotIpForward = 383382887,
/// The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.
NextHopInstanceHasNoIpv6Interface = 146748434,
/// The route's nextHopInstance URL refers to an instance that does not exist.
NextHopInstanceNotFound = 464250446,
/// The route's nextHopInstance URL refers to an instance that is not on the same network as the route.
NextHopInstanceNotOnNetwork = 243758146,
/// The route's next hop instance does not have a status of RUNNING.
NextHopNotRunning = 417081265,
/// Error which is not critical. We decided to continue the process despite the mentioned error.
NotCriticalError = 105763924,
/// No results are present on a particular list page.
NoResultsOnPage = 30036744,
/// Success is reported, but some results may be missing due to errors
PartialSuccess = 39966469,
/// The user attempted to use a resource that requires a TOS they have not accepted.
RequiredTosAgreement = 3745539,
/// Warning that a resource is in use.
ResourceInUseByOtherResourceWarning = 496728641,
/// One or more of the resources set to auto-delete could not be deleted because they were in use.
ResourceNotDeleted = 168598460,
/// When a resource schema validation is ignored.
SchemaValidationIgnored = 275245642,
/// Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.
SingleInstancePropertyTemplate = 268305617,
/// When undeclared properties in the schema are present
UndeclaredProperties = 390513439,
/// A given scope cannot be reached.
Unreachable = 13328052,
}
impl Code {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Code::UndefinedCode => "UNDEFINED_CODE",
Code::CleanupFailed => "CLEANUP_FAILED",
Code::DeprecatedResourceUsed => "DEPRECATED_RESOURCE_USED",
Code::DeprecatedTypeUsed => "DEPRECATED_TYPE_USED",
Code::DiskSizeLargerThanImageSize => "DISK_SIZE_LARGER_THAN_IMAGE_SIZE",
Code::ExperimentalTypeUsed => "EXPERIMENTAL_TYPE_USED",
Code::ExternalApiWarning => "EXTERNAL_API_WARNING",
Code::FieldValueOverriden => "FIELD_VALUE_OVERRIDEN",
Code::InjectedKernelsDeprecated => "INJECTED_KERNELS_DEPRECATED",
Code::InvalidHealthCheckForDynamicWieghtedLb => {
"INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB"
}
Code::LargeDeploymentWarning => "LARGE_DEPLOYMENT_WARNING",
Code::ListOverheadQuotaExceed => "LIST_OVERHEAD_QUOTA_EXCEED",
Code::MissingTypeDependency => "MISSING_TYPE_DEPENDENCY",
Code::NextHopAddressNotAssigned => "NEXT_HOP_ADDRESS_NOT_ASSIGNED",
Code::NextHopCannotIpForward => "NEXT_HOP_CANNOT_IP_FORWARD",
Code::NextHopInstanceHasNoIpv6Interface => {
"NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE"
}
Code::NextHopInstanceNotFound => "NEXT_HOP_INSTANCE_NOT_FOUND",
Code::NextHopInstanceNotOnNetwork => "NEXT_HOP_INSTANCE_NOT_ON_NETWORK",
Code::NextHopNotRunning => "NEXT_HOP_NOT_RUNNING",
Code::NotCriticalError => "NOT_CRITICAL_ERROR",
Code::NoResultsOnPage => "NO_RESULTS_ON_PAGE",
Code::PartialSuccess => "PARTIAL_SUCCESS",
Code::RequiredTosAgreement => "REQUIRED_TOS_AGREEMENT",
Code::ResourceInUseByOtherResourceWarning => {
"RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING"
}
Code::ResourceNotDeleted => "RESOURCE_NOT_DELETED",
Code::SchemaValidationIgnored => "SCHEMA_VALIDATION_IGNORED",
Code::SingleInstancePropertyTemplate => {
"SINGLE_INSTANCE_PROPERTY_TEMPLATE"
}
Code::UndeclaredProperties => "UNDECLARED_PROPERTIES",
Code::Unreachable => "UNREACHABLE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_CODE" => Some(Self::UndefinedCode),
"CLEANUP_FAILED" => Some(Self::CleanupFailed),
"DEPRECATED_RESOURCE_USED" => Some(Self::DeprecatedResourceUsed),
"DEPRECATED_TYPE_USED" => Some(Self::DeprecatedTypeUsed),
"DISK_SIZE_LARGER_THAN_IMAGE_SIZE" => {
Some(Self::DiskSizeLargerThanImageSize)
}
"EXPERIMENTAL_TYPE_USED" => Some(Self::ExperimentalTypeUsed),
"EXTERNAL_API_WARNING" => Some(Self::ExternalApiWarning),
"FIELD_VALUE_OVERRIDEN" => Some(Self::FieldValueOverriden),
"INJECTED_KERNELS_DEPRECATED" => Some(Self::InjectedKernelsDeprecated),
"INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" => {
Some(Self::InvalidHealthCheckForDynamicWieghtedLb)
}
"LARGE_DEPLOYMENT_WARNING" => Some(Self::LargeDeploymentWarning),
"LIST_OVERHEAD_QUOTA_EXCEED" => Some(Self::ListOverheadQuotaExceed),
"MISSING_TYPE_DEPENDENCY" => Some(Self::MissingTypeDependency),
"NEXT_HOP_ADDRESS_NOT_ASSIGNED" => Some(Self::NextHopAddressNotAssigned),
"NEXT_HOP_CANNOT_IP_FORWARD" => Some(Self::NextHopCannotIpForward),
"NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" => {
Some(Self::NextHopInstanceHasNoIpv6Interface)
}
"NEXT_HOP_INSTANCE_NOT_FOUND" => Some(Self::NextHopInstanceNotFound),
"NEXT_HOP_INSTANCE_NOT_ON_NETWORK" => {
Some(Self::NextHopInstanceNotOnNetwork)
}
"NEXT_HOP_NOT_RUNNING" => Some(Self::NextHopNotRunning),
"NOT_CRITICAL_ERROR" => Some(Self::NotCriticalError),
"NO_RESULTS_ON_PAGE" => Some(Self::NoResultsOnPage),
"PARTIAL_SUCCESS" => Some(Self::PartialSuccess),
"REQUIRED_TOS_AGREEMENT" => Some(Self::RequiredTosAgreement),
"RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" => {
Some(Self::ResourceInUseByOtherResourceWarning)
}
"RESOURCE_NOT_DELETED" => Some(Self::ResourceNotDeleted),
"SCHEMA_VALIDATION_IGNORED" => Some(Self::SchemaValidationIgnored),
"SINGLE_INSTANCE_PROPERTY_TEMPLATE" => {
Some(Self::SingleInstancePropertyTemplate)
}
"UNDECLARED_PROPERTIES" => Some(Self::UndeclaredProperties),
"UNREACHABLE" => Some(Self::Unreachable),
_ => None,
}
}
}
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Warnings {
/// \[Output Only\] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
/// Check the Code enum for the list of possible values.
#[prost(string, optional, tag = "3059181")]
pub code: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
#[prost(message, repeated, tag = "3076010")]
pub data: ::prost::alloc::vec::Vec<Data>,
/// \[Output Only\] A human-readable description of the warning code.
#[prost(string, optional, tag = "418054151")]
pub message: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `Warnings`.
pub mod warnings {
/// \[Output Only\] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Code {
/// A value indicating that the enum field is not set.
UndefinedCode = 0,
/// Warning about failed cleanup of transient changes made by a failed operation.
CleanupFailed = 150308440,
/// A link to a deprecated resource was created.
DeprecatedResourceUsed = 391835586,
/// When deploying and at least one of the resources has a type marked as deprecated
DeprecatedTypeUsed = 346526230,
/// The user created a boot disk that is larger than image size.
DiskSizeLargerThanImageSize = 369442967,
/// When deploying and at least one of the resources has a type marked as experimental
ExperimentalTypeUsed = 451954443,
/// Warning that is present in an external api call
ExternalApiWarning = 175546307,
/// Warning that value of a field has been overridden. Deprecated unused field.
FieldValueOverriden = 329669423,
/// The operation involved use of an injected kernel, which is deprecated.
InjectedKernelsDeprecated = 417377419,
/// A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.
InvalidHealthCheckForDynamicWieghtedLb = 401542606,
/// When deploying a deployment with a exceedingly large number of resources
LargeDeploymentWarning = 481440678,
/// Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.
ListOverheadQuotaExceed = 47618117,
/// A resource depends on a missing type
MissingTypeDependency = 344505463,
/// The route's nextHopIp address is not assigned to an instance on the network.
NextHopAddressNotAssigned = 324964999,
/// The route's next hop instance cannot ip forward.
NextHopCannotIpForward = 383382887,
/// The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.
NextHopInstanceHasNoIpv6Interface = 146748434,
/// The route's nextHopInstance URL refers to an instance that does not exist.
NextHopInstanceNotFound = 464250446,
/// The route's nextHopInstance URL refers to an instance that is not on the same network as the route.
NextHopInstanceNotOnNetwork = 243758146,
/// The route's next hop instance does not have a status of RUNNING.
NextHopNotRunning = 417081265,
/// Error which is not critical. We decided to continue the process despite the mentioned error.
NotCriticalError = 105763924,
/// No results are present on a particular list page.
NoResultsOnPage = 30036744,
/// Success is reported, but some results may be missing due to errors
PartialSuccess = 39966469,
/// The user attempted to use a resource that requires a TOS they have not accepted.
RequiredTosAgreement = 3745539,
/// Warning that a resource is in use.
ResourceInUseByOtherResourceWarning = 496728641,
/// One or more of the resources set to auto-delete could not be deleted because they were in use.
ResourceNotDeleted = 168598460,
/// When a resource schema validation is ignored.
SchemaValidationIgnored = 275245642,
/// Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.
SingleInstancePropertyTemplate = 268305617,
/// When undeclared properties in the schema are present
UndeclaredProperties = 390513439,
/// A given scope cannot be reached.
Unreachable = 13328052,
}
impl Code {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Code::UndefinedCode => "UNDEFINED_CODE",
Code::CleanupFailed => "CLEANUP_FAILED",
Code::DeprecatedResourceUsed => "DEPRECATED_RESOURCE_USED",
Code::DeprecatedTypeUsed => "DEPRECATED_TYPE_USED",
Code::DiskSizeLargerThanImageSize => "DISK_SIZE_LARGER_THAN_IMAGE_SIZE",
Code::ExperimentalTypeUsed => "EXPERIMENTAL_TYPE_USED",
Code::ExternalApiWarning => "EXTERNAL_API_WARNING",
Code::FieldValueOverriden => "FIELD_VALUE_OVERRIDEN",
Code::InjectedKernelsDeprecated => "INJECTED_KERNELS_DEPRECATED",
Code::InvalidHealthCheckForDynamicWieghtedLb => {
"INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB"
}
Code::LargeDeploymentWarning => "LARGE_DEPLOYMENT_WARNING",
Code::ListOverheadQuotaExceed => "LIST_OVERHEAD_QUOTA_EXCEED",
Code::MissingTypeDependency => "MISSING_TYPE_DEPENDENCY",
Code::NextHopAddressNotAssigned => "NEXT_HOP_ADDRESS_NOT_ASSIGNED",
Code::NextHopCannotIpForward => "NEXT_HOP_CANNOT_IP_FORWARD",
Code::NextHopInstanceHasNoIpv6Interface => {
"NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE"
}
Code::NextHopInstanceNotFound => "NEXT_HOP_INSTANCE_NOT_FOUND",
Code::NextHopInstanceNotOnNetwork => "NEXT_HOP_INSTANCE_NOT_ON_NETWORK",
Code::NextHopNotRunning => "NEXT_HOP_NOT_RUNNING",
Code::NotCriticalError => "NOT_CRITICAL_ERROR",
Code::NoResultsOnPage => "NO_RESULTS_ON_PAGE",
Code::PartialSuccess => "PARTIAL_SUCCESS",
Code::RequiredTosAgreement => "REQUIRED_TOS_AGREEMENT",
Code::ResourceInUseByOtherResourceWarning => {
"RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING"
}
Code::ResourceNotDeleted => "RESOURCE_NOT_DELETED",
Code::SchemaValidationIgnored => "SCHEMA_VALIDATION_IGNORED",
Code::SingleInstancePropertyTemplate => {
"SINGLE_INSTANCE_PROPERTY_TEMPLATE"
}
Code::UndeclaredProperties => "UNDECLARED_PROPERTIES",
Code::Unreachable => "UNREACHABLE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_CODE" => Some(Self::UndefinedCode),
"CLEANUP_FAILED" => Some(Self::CleanupFailed),
"DEPRECATED_RESOURCE_USED" => Some(Self::DeprecatedResourceUsed),
"DEPRECATED_TYPE_USED" => Some(Self::DeprecatedTypeUsed),
"DISK_SIZE_LARGER_THAN_IMAGE_SIZE" => {
Some(Self::DiskSizeLargerThanImageSize)
}
"EXPERIMENTAL_TYPE_USED" => Some(Self::ExperimentalTypeUsed),
"EXTERNAL_API_WARNING" => Some(Self::ExternalApiWarning),
"FIELD_VALUE_OVERRIDEN" => Some(Self::FieldValueOverriden),
"INJECTED_KERNELS_DEPRECATED" => Some(Self::InjectedKernelsDeprecated),
"INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" => {
Some(Self::InvalidHealthCheckForDynamicWieghtedLb)
}
"LARGE_DEPLOYMENT_WARNING" => Some(Self::LargeDeploymentWarning),
"LIST_OVERHEAD_QUOTA_EXCEED" => Some(Self::ListOverheadQuotaExceed),
"MISSING_TYPE_DEPENDENCY" => Some(Self::MissingTypeDependency),
"NEXT_HOP_ADDRESS_NOT_ASSIGNED" => Some(Self::NextHopAddressNotAssigned),
"NEXT_HOP_CANNOT_IP_FORWARD" => Some(Self::NextHopCannotIpForward),
"NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" => {
Some(Self::NextHopInstanceHasNoIpv6Interface)
}
"NEXT_HOP_INSTANCE_NOT_FOUND" => Some(Self::NextHopInstanceNotFound),
"NEXT_HOP_INSTANCE_NOT_ON_NETWORK" => {
Some(Self::NextHopInstanceNotOnNetwork)
}
"NEXT_HOP_NOT_RUNNING" => Some(Self::NextHopNotRunning),
"NOT_CRITICAL_ERROR" => Some(Self::NotCriticalError),
"NO_RESULTS_ON_PAGE" => Some(Self::NoResultsOnPage),
"PARTIAL_SUCCESS" => Some(Self::PartialSuccess),
"REQUIRED_TOS_AGREEMENT" => Some(Self::RequiredTosAgreement),
"RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" => {
Some(Self::ResourceInUseByOtherResourceWarning)
}
"RESOURCE_NOT_DELETED" => Some(Self::ResourceNotDeleted),
"SCHEMA_VALIDATION_IGNORED" => Some(Self::SchemaValidationIgnored),
"SINGLE_INSTANCE_PROPERTY_TEMPLATE" => {
Some(Self::SingleInstancePropertyTemplate)
}
"UNDECLARED_PROPERTIES" => Some(Self::UndeclaredProperties),
"UNREACHABLE" => Some(Self::Unreachable),
_ => None,
}
}
}
}
/// In contrast to a single BackendService in HttpRouteAction to which all matching traffic is directed to, WeightedBackendService allows traffic to be split across multiple backend services. The volume of traffic for each backend service is proportional to the weight specified in each WeightedBackendService
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WeightedBackendService {
/// The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
#[prost(string, optional, tag = "306946058")]
pub backend_service: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
#[prost(message, optional, tag = "328077352")]
pub header_action: ::core::option::Option<HttpHeaderAction>,
/// Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
#[prost(uint32, optional, tag = "282149496")]
pub weight: ::core::option::Option<u32>,
}
/// A request message for PublicAdvertisedPrefixes.Withdraw. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WithdrawPublicAdvertisedPrefixeRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the public advertised prefix. It should comply with RFC1035.
#[prost(string, tag = "101874590")]
pub public_advertised_prefix: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A request message for PublicDelegatedPrefixes.Withdraw. See the method description for details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WithdrawPublicDelegatedPrefixeRequest {
/// Project ID for this request.
#[prost(string, tag = "227560217")]
pub project: ::prost::alloc::string::String,
/// The name of the public delegated prefix. It should comply with RFC1035.
#[prost(string, tag = "204238440")]
pub public_delegated_prefix: ::prost::alloc::string::String,
/// The name of the region where the public delegated prefix is located. It should comply with RFC1035.
#[prost(string, tag = "138946292")]
pub region: ::prost::alloc::string::String,
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
#[prost(string, optional, tag = "37109963")]
pub request_id: ::core::option::Option<::prost::alloc::string::String>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct XpnHostList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] A list of shared VPC host project URLs.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Project>,
/// \[Output Only\] Type of resource. Always compute#xpnHostList for lists of shared VPC hosts.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
/// Service resource (a.k.a service project) ID.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct XpnResourceId {
/// The ID of the service resource. In the case of projects, this field supports project id (e.g., my-project-123) and project number (e.g. 12345678).
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// The type of the service resource.
/// Check the Type enum for the list of possible values.
#[prost(string, optional, tag = "3575610")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `XpnResourceId`.
pub mod xpn_resource_id {
/// The type of the service resource.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// A value indicating that the enum field is not set.
UndefinedType = 0,
Project = 408671993,
XpnResourceTypeUnspecified = 151607034,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::UndefinedType => "UNDEFINED_TYPE",
Type::Project => "PROJECT",
Type::XpnResourceTypeUnspecified => "XPN_RESOURCE_TYPE_UNSPECIFIED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_TYPE" => Some(Self::UndefinedType),
"PROJECT" => Some(Self::Project),
"XPN_RESOURCE_TYPE_UNSPECIFIED" => Some(Self::XpnResourceTypeUnspecified),
_ => None,
}
}
}
}
/// Represents a Zone resource. A zone is a deployment area. These deployment areas are subsets of a region. For example the zone us-east1-a is located in the us-east1 region. For more information, read Regions and Zones.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Zone {
/// \[Output Only\] Available cpu/platform selections for the zone.
#[prost(string, repeated, tag = "175536531")]
pub available_cpu_platforms: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// \[Output Only\] Creation timestamp in RFC3339 text format.
#[prost(string, optional, tag = "30525366")]
pub creation_timestamp: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The deprecation status associated with this zone.
#[prost(message, optional, tag = "515138995")]
pub deprecated: ::core::option::Option<DeprecationStatus>,
/// \[Output Only\] Textual description of the resource.
#[prost(string, optional, tag = "422937596")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] The unique identifier for the resource. This identifier is defined by the server.
#[prost(uint64, optional, tag = "3355")]
pub id: ::core::option::Option<u64>,
/// \[Output Only\] Type of the resource. Always compute#zone for zones.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Name of the resource.
#[prost(string, optional, tag = "3373707")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Full URL reference to the region which hosts the zone.
#[prost(string, optional, tag = "138946292")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for the resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Status of the zone, either UP or DOWN.
/// Check the Status enum for the list of possible values.
#[prost(string, optional, tag = "181260274")]
pub status: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Reserved for future use.
#[prost(bool, optional, tag = "83983214")]
pub supports_pzs: ::core::option::Option<bool>,
}
/// Nested message and enum types in `Zone`.
pub mod zone {
/// \[Output Only\] Status of the zone, either UP or DOWN.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// A value indicating that the enum field is not set.
UndefinedStatus = 0,
Down = 2104482,
Up = 2715,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::UndefinedStatus => "UNDEFINED_STATUS",
Status::Down => "DOWN",
Status::Up => "UP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED_STATUS" => Some(Self::UndefinedStatus),
"DOWN" => Some(Self::Down),
"UP" => Some(Self::Up),
_ => None,
}
}
}
}
/// Contains a list of zone resources.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ZoneList {
/// \[Output Only\] Unique identifier for the resource; defined by the server.
#[prost(string, optional, tag = "3355")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of Zone resources.
#[prost(message, repeated, tag = "100526016")]
pub items: ::prost::alloc::vec::Vec<Zone>,
/// Type of resource.
#[prost(string, optional, tag = "3292052")]
pub kind: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
#[prost(string, optional, tag = "79797525")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Server-defined URL for this resource.
#[prost(string, optional, tag = "456214797")]
pub self_link: ::core::option::Option<::prost::alloc::string::String>,
/// \[Output Only\] Informational warning message.
#[prost(message, optional, tag = "50704284")]
pub warning: ::core::option::Option<Warning>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ZoneSetLabelsRequest {
/// The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint.
#[prost(string, optional, tag = "178124825")]
pub label_fingerprint: ::core::option::Option<::prost::alloc::string::String>,
/// The labels to set for this resource.
#[prost(btree_map = "string, string", tag = "500195327")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ZoneSetPolicyRequest {
/// Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify bindings.
#[prost(message, repeated, tag = "403251854")]
pub bindings: ::prost::alloc::vec::Vec<Binding>,
/// Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.
#[prost(string, optional, tag = "3123477")]
pub etag: ::core::option::Option<::prost::alloc::string::String>,
/// REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them.
#[prost(message, optional, tag = "91071794")]
pub policy: ::core::option::Option<Policy>,
}
/// Generated client implementations.
pub mod accelerator_types_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
///
/// Services
///
/// The AcceleratorTypes API.
#[derive(Debug, Clone)]
pub struct AcceleratorTypesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> AcceleratorTypesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> AcceleratorTypesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
AcceleratorTypesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of accelerator types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<
super::AggregatedListAcceleratorTypesRequest,
>,
) -> std::result::Result<
tonic::Response<super::AcceleratorTypeAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.AcceleratorTypes/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.AcceleratorTypes",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified accelerator type.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetAcceleratorTypeRequest>,
) -> std::result::Result<
tonic::Response<super::AcceleratorType>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.AcceleratorTypes/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.AcceleratorTypes", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of accelerator types that are available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListAcceleratorTypesRequest>,
) -> std::result::Result<
tonic::Response<super::AcceleratorTypeList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.AcceleratorTypes/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.AcceleratorTypes", "List"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod addresses_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The Addresses API.
#[derive(Debug, Clone)]
pub struct AddressesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> AddressesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> AddressesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
AddressesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of addresses. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListAddressesRequest>,
) -> std::result::Result<
tonic::Response<super::AddressAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Addresses/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Addresses",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified address resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteAddressRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Addresses/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Addresses", "Delete"));
self.inner.unary(req, path, codec).await
}
/// Returns the specified address resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetAddressRequest>,
) -> std::result::Result<tonic::Response<super::Address>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Addresses/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Addresses", "Get"));
self.inner.unary(req, path, codec).await
}
/// Creates an address resource in the specified project by using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertAddressRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Addresses/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Addresses", "Insert"));
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of addresses contained within the specified region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListAddressesRequest>,
) -> std::result::Result<tonic::Response<super::AddressList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Addresses/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Addresses", "List"));
self.inner.unary(req, path, codec).await
}
/// Moves the specified address resource.
pub async fn r#move(
&mut self,
request: impl tonic::IntoRequest<super::MoveAddressRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Addresses/Move",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Addresses", "Move"));
self.inner.unary(req, path, codec).await
}
/// Sets the labels on an Address. To learn more about labels, read the Labeling Resources documentation.
pub async fn set_labels(
&mut self,
request: impl tonic::IntoRequest<super::SetLabelsAddressRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Addresses/SetLabels",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Addresses", "SetLabels"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod autoscalers_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The Autoscalers API.
#[derive(Debug, Clone)]
pub struct AutoscalersClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> AutoscalersClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> AutoscalersClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
AutoscalersClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of autoscalers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListAutoscalersRequest>,
) -> std::result::Result<
tonic::Response<super::AutoscalerAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Autoscalers/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Autoscalers",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified autoscaler.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteAutoscalerRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Autoscalers/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Autoscalers", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified autoscaler resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetAutoscalerRequest>,
) -> std::result::Result<tonic::Response<super::Autoscaler>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Autoscalers/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Autoscalers", "Get"));
self.inner.unary(req, path, codec).await
}
/// Creates an autoscaler in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertAutoscalerRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Autoscalers/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Autoscalers", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of autoscalers contained within the specified zone.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListAutoscalersRequest>,
) -> std::result::Result<tonic::Response<super::AutoscalerList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Autoscalers/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Autoscalers", "List"));
self.inner.unary(req, path, codec).await
}
/// Updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchAutoscalerRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Autoscalers/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Autoscalers", "Patch"));
self.inner.unary(req, path, codec).await
}
/// Updates an autoscaler in the specified project using the data included in the request.
pub async fn update(
&mut self,
request: impl tonic::IntoRequest<super::UpdateAutoscalerRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Autoscalers/Update",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Autoscalers", "Update"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod backend_buckets_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The BackendBuckets API.
#[derive(Debug, Clone)]
pub struct BackendBucketsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> BackendBucketsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> BackendBucketsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
BackendBucketsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Adds a key for validating requests with signed URLs for this backend bucket.
pub async fn add_signed_url_key(
&mut self,
request: impl tonic::IntoRequest<super::AddSignedUrlKeyBackendBucketRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendBuckets/AddSignedUrlKey",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.BackendBuckets",
"AddSignedUrlKey",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified BackendBucket resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteBackendBucketRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendBuckets/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.BackendBuckets", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Deletes a key for validating requests with signed URLs for this backend bucket.
pub async fn delete_signed_url_key(
&mut self,
request: impl tonic::IntoRequest<
super::DeleteSignedUrlKeyBackendBucketRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendBuckets/DeleteSignedUrlKey",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.BackendBuckets",
"DeleteSignedUrlKey",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified BackendBucket resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetBackendBucketRequest>,
) -> std::result::Result<tonic::Response<super::BackendBucket>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendBuckets/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.BackendBuckets", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::GetIamPolicyBackendBucketRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendBuckets/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.BackendBuckets",
"GetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a BackendBucket resource in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertBackendBucketRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendBuckets/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.BackendBuckets", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of BackendBucket resources available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListBackendBucketsRequest>,
) -> std::result::Result<
tonic::Response<super::BackendBucketList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendBuckets/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.BackendBuckets", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Updates the specified BackendBucket resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchBackendBucketRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendBuckets/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.BackendBuckets", "Patch"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the edge security policy for the specified backend bucket.
pub async fn set_edge_security_policy(
&mut self,
request: impl tonic::IntoRequest<
super::SetEdgeSecurityPolicyBackendBucketRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendBuckets/SetEdgeSecurityPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.BackendBuckets",
"SetEdgeSecurityPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetIamPolicyBackendBucketRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendBuckets/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.BackendBuckets",
"SetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<
super::TestIamPermissionsBackendBucketRequest,
>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendBuckets/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.BackendBuckets",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates the specified BackendBucket resource with the data included in the request.
pub async fn update(
&mut self,
request: impl tonic::IntoRequest<super::UpdateBackendBucketRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendBuckets/Update",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.BackendBuckets", "Update"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod backend_services_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The BackendServices API.
#[derive(Debug, Clone)]
pub struct BackendServicesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> BackendServicesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> BackendServicesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
BackendServicesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Adds a key for validating requests with signed URLs for this backend service.
pub async fn add_signed_url_key(
&mut self,
request: impl tonic::IntoRequest<super::AddSignedUrlKeyBackendServiceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendServices/AddSignedUrlKey",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.BackendServices",
"AddSignedUrlKey",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of all BackendService resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListBackendServicesRequest>,
) -> std::result::Result<
tonic::Response<super::BackendServiceAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendServices/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.BackendServices",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified BackendService resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteBackendServiceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendServices/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.BackendServices", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Deletes a key for validating requests with signed URLs for this backend service.
pub async fn delete_signed_url_key(
&mut self,
request: impl tonic::IntoRequest<
super::DeleteSignedUrlKeyBackendServiceRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendServices/DeleteSignedUrlKey",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.BackendServices",
"DeleteSignedUrlKey",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified BackendService resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetBackendServiceRequest>,
) -> std::result::Result<tonic::Response<super::BackendService>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendServices/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.BackendServices", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Gets the most recent health check results for this BackendService. Example request body: { "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" }
pub async fn get_health(
&mut self,
request: impl tonic::IntoRequest<super::GetHealthBackendServiceRequest>,
) -> std::result::Result<
tonic::Response<super::BackendServiceGroupHealth>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendServices/GetHealth",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.BackendServices",
"GetHealth",
),
);
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::GetIamPolicyBackendServiceRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendServices/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.BackendServices",
"GetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview .
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertBackendServiceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendServices/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.BackendServices", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of BackendService resources available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListBackendServicesRequest>,
) -> std::result::Result<
tonic::Response<super::BackendServiceList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendServices/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.BackendServices", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves an aggregated list of all usable backend services in the specified project.
pub async fn list_usable(
&mut self,
request: impl tonic::IntoRequest<super::ListUsableBackendServicesRequest>,
) -> std::result::Result<
tonic::Response<super::BackendServiceListUsable>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendServices/ListUsable",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.BackendServices",
"ListUsable",
),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified BackendService resource with the data included in the request. For more information, see Backend services overview. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchBackendServiceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendServices/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.BackendServices", "Patch"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the edge security policy for the specified backend service.
pub async fn set_edge_security_policy(
&mut self,
request: impl tonic::IntoRequest<
super::SetEdgeSecurityPolicyBackendServiceRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendServices/SetEdgeSecurityPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.BackendServices",
"SetEdgeSecurityPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetIamPolicyBackendServiceRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendServices/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.BackendServices",
"SetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview
pub async fn set_security_policy(
&mut self,
request: impl tonic::IntoRequest<
super::SetSecurityPolicyBackendServiceRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendServices/SetSecurityPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.BackendServices",
"SetSecurityPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<
super::TestIamPermissionsBackendServiceRequest,
>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendServices/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.BackendServices",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates the specified BackendService resource with the data included in the request. For more information, see Backend services overview.
pub async fn update(
&mut self,
request: impl tonic::IntoRequest<super::UpdateBackendServiceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.BackendServices/Update",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.BackendServices", "Update"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod disk_types_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The DiskTypes API.
#[derive(Debug, Clone)]
pub struct DiskTypesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> DiskTypesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> DiskTypesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
DiskTypesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of disk types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListDiskTypesRequest>,
) -> std::result::Result<
tonic::Response<super::DiskTypeAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.DiskTypes/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.DiskTypes",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified disk type.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetDiskTypeRequest>,
) -> std::result::Result<tonic::Response<super::DiskType>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.DiskTypes/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.DiskTypes", "Get"));
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of disk types available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListDiskTypesRequest>,
) -> std::result::Result<tonic::Response<super::DiskTypeList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.DiskTypes/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.DiskTypes", "List"));
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod disks_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The Disks API.
#[derive(Debug, Clone)]
pub struct DisksClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> DisksClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> DisksClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
DisksClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Adds existing resource policies to a disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation.
pub async fn add_resource_policies(
&mut self,
request: impl tonic::IntoRequest<super::AddResourcePoliciesDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Disks/AddResourcePolicies",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Disks",
"AddResourcePolicies",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves an aggregated list of persistent disks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListDisksRequest>,
) -> std::result::Result<
tonic::Response<super::DiskAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Disks/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Disks", "AggregatedList"),
);
self.inner.unary(req, path, codec).await
}
/// Bulk create a set of disks.
pub async fn bulk_insert(
&mut self,
request: impl tonic::IntoRequest<super::BulkInsertDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Disks/BulkInsert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Disks", "BulkInsert"));
self.inner.unary(req, path, codec).await
}
/// Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project.
pub async fn create_snapshot(
&mut self,
request: impl tonic::IntoRequest<super::CreateSnapshotDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Disks/CreateSnapshot",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Disks", "CreateSnapshot"),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified persistent disk. Deleting a disk removes its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Disks/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Disks", "Delete"));
self.inner.unary(req, path, codec).await
}
/// Returns the specified persistent disk.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetDiskRequest>,
) -> std::result::Result<tonic::Response<super::Disk>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Disks/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Disks", "Get"));
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::GetIamPolicyDiskRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Disks/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Disks", "GetIamPolicy"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a persistent disk in the specified project using the data in the request. You can create a disk from a source (sourceImage, sourceSnapshot, or sourceDisk) or create an empty 500 GB data disk by omitting all properties. You can also create a disk that is larger than the default size by specifying the sizeGb property.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Disks/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Disks", "Insert"));
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of persistent disks contained within the specified zone.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListDisksRequest>,
) -> std::result::Result<tonic::Response<super::DiskList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Disks/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Disks", "List"));
self.inner.unary(req, path, codec).await
}
/// Removes resource policies from a disk.
pub async fn remove_resource_policies(
&mut self,
request: impl tonic::IntoRequest<super::RemoveResourcePoliciesDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Disks/RemoveResourcePolicies",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Disks",
"RemoveResourcePolicies",
),
);
self.inner.unary(req, path, codec).await
}
/// Resizes the specified persistent disk. You can only increase the size of the disk.
pub async fn resize(
&mut self,
request: impl tonic::IntoRequest<super::ResizeDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Disks/Resize",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Disks", "Resize"));
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetIamPolicyDiskRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Disks/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Disks", "SetIamPolicy"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the labels on a disk. To learn more about labels, read the Labeling Resources documentation.
pub async fn set_labels(
&mut self,
request: impl tonic::IntoRequest<super::SetLabelsDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Disks/SetLabels",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Disks", "SetLabels"));
self.inner.unary(req, path, codec).await
}
/// Starts asynchronous replication. Must be invoked on the primary disk.
pub async fn start_async_replication(
&mut self,
request: impl tonic::IntoRequest<super::StartAsyncReplicationDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Disks/StartAsyncReplication",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Disks",
"StartAsyncReplication",
),
);
self.inner.unary(req, path, codec).await
}
/// Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk.
pub async fn stop_async_replication(
&mut self,
request: impl tonic::IntoRequest<super::StopAsyncReplicationDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Disks/StopAsyncReplication",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Disks",
"StopAsyncReplication",
),
);
self.inner.unary(req, path, codec).await
}
/// Stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope.
pub async fn stop_group_async_replication(
&mut self,
request: impl tonic::IntoRequest<super::StopGroupAsyncReplicationDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Disks/StopGroupAsyncReplication",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Disks",
"StopGroupAsyncReplication",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<super::TestIamPermissionsDiskRequest>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Disks/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Disks",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates the specified disk with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license.
pub async fn update(
&mut self,
request: impl tonic::IntoRequest<super::UpdateDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Disks/Update",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Disks", "Update"));
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod external_vpn_gateways_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The ExternalVpnGateways API.
#[derive(Debug, Clone)]
pub struct ExternalVpnGatewaysClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> ExternalVpnGatewaysClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ExternalVpnGatewaysClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
ExternalVpnGatewaysClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified externalVpnGateway.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteExternalVpnGatewayRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ExternalVpnGateways/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.ExternalVpnGateways",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified externalVpnGateway. Get a list of available externalVpnGateways by making a list() request.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetExternalVpnGatewayRequest>,
) -> std::result::Result<
tonic::Response<super::ExternalVpnGateway>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ExternalVpnGateways/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.ExternalVpnGateways", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a ExternalVpnGateway in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertExternalVpnGatewayRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ExternalVpnGateways/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.ExternalVpnGateways",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of ExternalVpnGateway available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListExternalVpnGatewaysRequest>,
) -> std::result::Result<
tonic::Response<super::ExternalVpnGatewayList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ExternalVpnGateways/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.ExternalVpnGateways",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the labels on an ExternalVpnGateway. To learn more about labels, read the Labeling Resources documentation.
pub async fn set_labels(
&mut self,
request: impl tonic::IntoRequest<super::SetLabelsExternalVpnGatewayRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ExternalVpnGateways/SetLabels",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.ExternalVpnGateways",
"SetLabels",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<
super::TestIamPermissionsExternalVpnGatewayRequest,
>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ExternalVpnGateways/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.ExternalVpnGateways",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod firewall_policies_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The FirewallPolicies API.
#[derive(Debug, Clone)]
pub struct FirewallPoliciesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> FirewallPoliciesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> FirewallPoliciesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
FirewallPoliciesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Inserts an association for the specified firewall policy.
pub async fn add_association(
&mut self,
request: impl tonic::IntoRequest<super::AddAssociationFirewallPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.FirewallPolicies/AddAssociation",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.FirewallPolicies",
"AddAssociation",
),
);
self.inner.unary(req, path, codec).await
}
/// Inserts a rule into a firewall policy.
pub async fn add_rule(
&mut self,
request: impl tonic::IntoRequest<super::AddRuleFirewallPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.FirewallPolicies/AddRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.FirewallPolicies",
"AddRule",
),
);
self.inner.unary(req, path, codec).await
}
/// Copies rules to the specified firewall policy.
pub async fn clone_rules(
&mut self,
request: impl tonic::IntoRequest<super::CloneRulesFirewallPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.FirewallPolicies/CloneRules",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.FirewallPolicies",
"CloneRules",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified policy.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteFirewallPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.FirewallPolicies/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.FirewallPolicies", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified firewall policy.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetFirewallPolicyRequest>,
) -> std::result::Result<tonic::Response<super::FirewallPolicy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.FirewallPolicies/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.FirewallPolicies", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Gets an association with the specified name.
pub async fn get_association(
&mut self,
request: impl tonic::IntoRequest<super::GetAssociationFirewallPolicyRequest>,
) -> std::result::Result<
tonic::Response<super::FirewallPolicyAssociation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.FirewallPolicies/GetAssociation",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.FirewallPolicies",
"GetAssociation",
),
);
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::GetIamPolicyFirewallPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.FirewallPolicies/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.FirewallPolicies",
"GetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Gets a rule of the specified priority.
pub async fn get_rule(
&mut self,
request: impl tonic::IntoRequest<super::GetRuleFirewallPolicyRequest>,
) -> std::result::Result<
tonic::Response<super::FirewallPolicyRule>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.FirewallPolicies/GetRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.FirewallPolicies",
"GetRule",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a new policy in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertFirewallPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.FirewallPolicies/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.FirewallPolicies", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Lists all the policies that have been configured for the specified folder or organization.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListFirewallPoliciesRequest>,
) -> std::result::Result<
tonic::Response<super::FirewallPolicyList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.FirewallPolicies/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.FirewallPolicies", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Lists associations of a specified target, i.e., organization or folder.
pub async fn list_associations(
&mut self,
request: impl tonic::IntoRequest<
super::ListAssociationsFirewallPolicyRequest,
>,
) -> std::result::Result<
tonic::Response<super::FirewallPoliciesListAssociationsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.FirewallPolicies/ListAssociations",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.FirewallPolicies",
"ListAssociations",
),
);
self.inner.unary(req, path, codec).await
}
/// Moves the specified firewall policy.
pub async fn r#move(
&mut self,
request: impl tonic::IntoRequest<super::MoveFirewallPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.FirewallPolicies/Move",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.FirewallPolicies", "Move"),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified policy with the data included in the request.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchFirewallPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.FirewallPolicies/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.FirewallPolicies", "Patch"),
);
self.inner.unary(req, path, codec).await
}
/// Patches a rule of the specified priority.
pub async fn patch_rule(
&mut self,
request: impl tonic::IntoRequest<super::PatchRuleFirewallPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.FirewallPolicies/PatchRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.FirewallPolicies",
"PatchRule",
),
);
self.inner.unary(req, path, codec).await
}
/// Removes an association for the specified firewall policy.
pub async fn remove_association(
&mut self,
request: impl tonic::IntoRequest<
super::RemoveAssociationFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.FirewallPolicies/RemoveAssociation",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.FirewallPolicies",
"RemoveAssociation",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes a rule of the specified priority.
pub async fn remove_rule(
&mut self,
request: impl tonic::IntoRequest<super::RemoveRuleFirewallPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.FirewallPolicies/RemoveRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.FirewallPolicies",
"RemoveRule",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetIamPolicyFirewallPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.FirewallPolicies/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.FirewallPolicies",
"SetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<
super::TestIamPermissionsFirewallPolicyRequest,
>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.FirewallPolicies/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.FirewallPolicies",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod firewalls_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The Firewalls API.
#[derive(Debug, Clone)]
pub struct FirewallsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> FirewallsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> FirewallsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
FirewallsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified firewall.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteFirewallRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Firewalls/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Firewalls", "Delete"));
self.inner.unary(req, path, codec).await
}
/// Returns the specified firewall.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetFirewallRequest>,
) -> std::result::Result<tonic::Response<super::Firewall>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Firewalls/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Firewalls", "Get"));
self.inner.unary(req, path, codec).await
}
/// Creates a firewall rule in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertFirewallRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Firewalls/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Firewalls", "Insert"));
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of firewall rules available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListFirewallsRequest>,
) -> std::result::Result<tonic::Response<super::FirewallList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Firewalls/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Firewalls", "List"));
self.inner.unary(req, path, codec).await
}
/// Updates the specified firewall rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchFirewallRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Firewalls/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Firewalls", "Patch"));
self.inner.unary(req, path, codec).await
}
/// Updates the specified firewall rule with the data included in the request. Note that all fields will be updated if using PUT, even fields that are not specified. To update individual fields, please use PATCH instead.
pub async fn update(
&mut self,
request: impl tonic::IntoRequest<super::UpdateFirewallRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Firewalls/Update",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Firewalls", "Update"));
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod forwarding_rules_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The ForwardingRules API.
#[derive(Debug, Clone)]
pub struct ForwardingRulesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> ForwardingRulesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ForwardingRulesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
ForwardingRulesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of forwarding rules. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListForwardingRulesRequest>,
) -> std::result::Result<
tonic::Response<super::ForwardingRuleAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ForwardingRules/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.ForwardingRules",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified ForwardingRule resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteForwardingRuleRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ForwardingRules/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.ForwardingRules", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified ForwardingRule resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetForwardingRuleRequest>,
) -> std::result::Result<tonic::Response<super::ForwardingRule>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ForwardingRules/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.ForwardingRules", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a ForwardingRule resource in the specified project and region using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertForwardingRuleRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ForwardingRules/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.ForwardingRules", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of ForwardingRule resources available to the specified project and region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListForwardingRulesRequest>,
) -> std::result::Result<
tonic::Response<super::ForwardingRuleList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ForwardingRules/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.ForwardingRules", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchForwardingRuleRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ForwardingRules/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.ForwardingRules", "Patch"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the labels on the specified resource. To learn more about labels, read the Labeling Resources documentation.
pub async fn set_labels(
&mut self,
request: impl tonic::IntoRequest<super::SetLabelsForwardingRuleRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ForwardingRules/SetLabels",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.ForwardingRules",
"SetLabels",
),
);
self.inner.unary(req, path, codec).await
}
/// Changes target URL for forwarding rule. The new target should be of the same type as the old target.
pub async fn set_target(
&mut self,
request: impl tonic::IntoRequest<super::SetTargetForwardingRuleRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ForwardingRules/SetTarget",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.ForwardingRules",
"SetTarget",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod global_addresses_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The GlobalAddresses API.
#[derive(Debug, Clone)]
pub struct GlobalAddressesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> GlobalAddressesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> GlobalAddressesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
GlobalAddressesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified address resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteGlobalAddressRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalAddresses/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.GlobalAddresses", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified address resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetGlobalAddressRequest>,
) -> std::result::Result<tonic::Response<super::Address>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalAddresses/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.GlobalAddresses", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Creates an address resource in the specified project by using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertGlobalAddressRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalAddresses/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.GlobalAddresses", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of global addresses.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListGlobalAddressesRequest>,
) -> std::result::Result<tonic::Response<super::AddressList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalAddresses/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.GlobalAddresses", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Moves the specified address resource from one project to another project.
pub async fn r#move(
&mut self,
request: impl tonic::IntoRequest<super::MoveGlobalAddressRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalAddresses/Move",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.GlobalAddresses", "Move"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the labels on a GlobalAddress. To learn more about labels, read the Labeling Resources documentation.
pub async fn set_labels(
&mut self,
request: impl tonic::IntoRequest<super::SetLabelsGlobalAddressRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalAddresses/SetLabels",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalAddresses",
"SetLabels",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod global_forwarding_rules_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The GlobalForwardingRules API.
#[derive(Debug, Clone)]
pub struct GlobalForwardingRulesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> GlobalForwardingRulesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> GlobalForwardingRulesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
GlobalForwardingRulesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified GlobalForwardingRule resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteGlobalForwardingRuleRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalForwardingRules/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalForwardingRules",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by making a list() request.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetGlobalForwardingRuleRequest>,
) -> std::result::Result<tonic::Response<super::ForwardingRule>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalForwardingRules/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalForwardingRules",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a GlobalForwardingRule resource in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertGlobalForwardingRuleRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalForwardingRules/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalForwardingRules",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of GlobalForwardingRule resources available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListGlobalForwardingRulesRequest>,
) -> std::result::Result<
tonic::Response<super::ForwardingRuleList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalForwardingRules/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalForwardingRules",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchGlobalForwardingRuleRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalForwardingRules/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalForwardingRules",
"Patch",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the labels on the specified resource. To learn more about labels, read the Labeling resources documentation.
pub async fn set_labels(
&mut self,
request: impl tonic::IntoRequest<super::SetLabelsGlobalForwardingRuleRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalForwardingRules/SetLabels",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalForwardingRules",
"SetLabels",
),
);
self.inner.unary(req, path, codec).await
}
/// Changes target URL for the GlobalForwardingRule resource. The new target should be of the same type as the old target.
pub async fn set_target(
&mut self,
request: impl tonic::IntoRequest<super::SetTargetGlobalForwardingRuleRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalForwardingRules/SetTarget",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalForwardingRules",
"SetTarget",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod global_network_endpoint_groups_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The GlobalNetworkEndpointGroups API.
#[derive(Debug, Clone)]
pub struct GlobalNetworkEndpointGroupsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> GlobalNetworkEndpointGroupsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> GlobalNetworkEndpointGroupsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
GlobalNetworkEndpointGroupsClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Attach a network endpoint to the specified network endpoint group.
pub async fn attach_network_endpoints(
&mut self,
request: impl tonic::IntoRequest<
super::AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalNetworkEndpointGroups/AttachNetworkEndpoints",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalNetworkEndpointGroups",
"AttachNetworkEndpoints",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are backend services referencing it.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<
super::DeleteGlobalNetworkEndpointGroupRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalNetworkEndpointGroups/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalNetworkEndpointGroups",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Detach the network endpoint from the specified network endpoint group.
pub async fn detach_network_endpoints(
&mut self,
request: impl tonic::IntoRequest<
super::DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalNetworkEndpointGroups/DetachNetworkEndpoints",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalNetworkEndpointGroups",
"DetachNetworkEndpoints",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified network endpoint group.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetGlobalNetworkEndpointGroupRequest>,
) -> std::result::Result<
tonic::Response<super::NetworkEndpointGroup>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalNetworkEndpointGroups/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalNetworkEndpointGroups",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a network endpoint group in the specified project using the parameters that are included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<
super::InsertGlobalNetworkEndpointGroupRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalNetworkEndpointGroups/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalNetworkEndpointGroups",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of network endpoint groups that are located in the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<
super::ListGlobalNetworkEndpointGroupsRequest,
>,
) -> std::result::Result<
tonic::Response<super::NetworkEndpointGroupList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalNetworkEndpointGroups/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalNetworkEndpointGroups",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists the network endpoints in the specified network endpoint group.
pub async fn list_network_endpoints(
&mut self,
request: impl tonic::IntoRequest<
super::ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest,
>,
) -> std::result::Result<
tonic::Response<super::NetworkEndpointGroupsListNetworkEndpoints>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalNetworkEndpointGroups/ListNetworkEndpoints",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalNetworkEndpointGroups",
"ListNetworkEndpoints",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod global_operations_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The GlobalOperations API.
#[derive(Debug, Clone)]
pub struct GlobalOperationsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> GlobalOperationsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> GlobalOperationsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
GlobalOperationsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of all operations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<
super::AggregatedListGlobalOperationsRequest,
>,
) -> std::result::Result<
tonic::Response<super::OperationAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalOperations/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalOperations",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified Operations resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteGlobalOperationRequest>,
) -> std::result::Result<
tonic::Response<super::DeleteGlobalOperationResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalOperations/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.GlobalOperations", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the specified Operations resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetGlobalOperationRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalOperations/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.GlobalOperations", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of Operation resources contained within the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListGlobalOperationsRequest>,
) -> std::result::Result<tonic::Response<super::OperationList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalOperations/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.GlobalOperations", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`.
pub async fn wait(
&mut self,
request: impl tonic::IntoRequest<super::WaitGlobalOperationRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalOperations/Wait",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.GlobalOperations", "Wait"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod global_organization_operations_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The GlobalOrganizationOperations API.
#[derive(Debug, Clone)]
pub struct GlobalOrganizationOperationsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> GlobalOrganizationOperationsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> GlobalOrganizationOperationsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
GlobalOrganizationOperationsClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified Operations resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<
super::DeleteGlobalOrganizationOperationRequest,
>,
) -> std::result::Result<
tonic::Response<super::DeleteGlobalOrganizationOperationResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalOrganizationOperations/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalOrganizationOperations",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the specified Operations resource. Gets a list of operations by making a `list()` request.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<
super::GetGlobalOrganizationOperationRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalOrganizationOperations/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalOrganizationOperations",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of Operation resources contained within the specified organization.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<
super::ListGlobalOrganizationOperationsRequest,
>,
) -> std::result::Result<tonic::Response<super::OperationList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalOrganizationOperations/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalOrganizationOperations",
"List",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod global_public_delegated_prefixes_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The GlobalPublicDelegatedPrefixes API.
#[derive(Debug, Clone)]
pub struct GlobalPublicDelegatedPrefixesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> GlobalPublicDelegatedPrefixesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> GlobalPublicDelegatedPrefixesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
GlobalPublicDelegatedPrefixesClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified global PublicDelegatedPrefix.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<
super::DeleteGlobalPublicDelegatedPrefixeRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalPublicDelegatedPrefixes/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalPublicDelegatedPrefixes",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified global PublicDelegatedPrefix resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<
super::GetGlobalPublicDelegatedPrefixeRequest,
>,
) -> std::result::Result<
tonic::Response<super::PublicDelegatedPrefix>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalPublicDelegatedPrefixes/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalPublicDelegatedPrefixes",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a global PublicDelegatedPrefix in the specified project using the parameters that are included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<
super::InsertGlobalPublicDelegatedPrefixeRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalPublicDelegatedPrefixes/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalPublicDelegatedPrefixes",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists the global PublicDelegatedPrefixes for a project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<
super::ListGlobalPublicDelegatedPrefixesRequest,
>,
) -> std::result::Result<
tonic::Response<super::PublicDelegatedPrefixList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalPublicDelegatedPrefixes/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalPublicDelegatedPrefixes",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified global PublicDelegatedPrefix resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<
super::PatchGlobalPublicDelegatedPrefixeRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.GlobalPublicDelegatedPrefixes/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.GlobalPublicDelegatedPrefixes",
"Patch",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod health_checks_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The HealthChecks API.
#[derive(Debug, Clone)]
pub struct HealthChecksClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> HealthChecksClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> HealthChecksClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
HealthChecksClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves the list of all HealthCheck resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListHealthChecksRequest>,
) -> std::result::Result<
tonic::Response<super::HealthChecksAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.HealthChecks/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.HealthChecks",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified HealthCheck resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteHealthCheckRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.HealthChecks/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.HealthChecks", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified HealthCheck resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetHealthCheckRequest>,
) -> std::result::Result<tonic::Response<super::HealthCheck>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.HealthChecks/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.HealthChecks", "Get"));
self.inner.unary(req, path, codec).await
}
/// Creates a HealthCheck resource in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertHealthCheckRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.HealthChecks/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.HealthChecks", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of HealthCheck resources available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListHealthChecksRequest>,
) -> std::result::Result<
tonic::Response<super::HealthCheckList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.HealthChecks/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.HealthChecks", "List"));
self.inner.unary(req, path, codec).await
}
/// Updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchHealthCheckRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.HealthChecks/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.HealthChecks", "Patch"),
);
self.inner.unary(req, path, codec).await
}
/// Updates a HealthCheck resource in the specified project using the data included in the request.
pub async fn update(
&mut self,
request: impl tonic::IntoRequest<super::UpdateHealthCheckRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.HealthChecks/Update",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.HealthChecks", "Update"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod image_family_views_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The ImageFamilyViews API.
#[derive(Debug, Clone)]
pub struct ImageFamilyViewsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> ImageFamilyViewsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ImageFamilyViewsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
ImageFamilyViewsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Returns the latest image that is part of an image family, is not deprecated and is rolled out in the specified zone.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetImageFamilyViewRequest>,
) -> std::result::Result<
tonic::Response<super::ImageFamilyView>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ImageFamilyViews/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.ImageFamilyViews", "Get"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod images_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The Images API.
#[derive(Debug, Clone)]
pub struct ImagesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> ImagesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ImagesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
ImagesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified image.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteImageRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Images/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Images", "Delete"));
self.inner.unary(req, path, codec).await
}
/// Sets the deprecation status of an image. If an empty request body is given, clears the deprecation status instead.
pub async fn deprecate(
&mut self,
request: impl tonic::IntoRequest<super::DeprecateImageRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Images/Deprecate",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Images", "Deprecate"));
self.inner.unary(req, path, codec).await
}
/// Returns the specified image.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetImageRequest>,
) -> std::result::Result<tonic::Response<super::Image>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Images/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Images", "Get"));
self.inner.unary(req, path, codec).await
}
/// Returns the latest image that is part of an image family and is not deprecated. For more information on image families, see Public image families documentation.
pub async fn get_from_family(
&mut self,
request: impl tonic::IntoRequest<super::GetFromFamilyImageRequest>,
) -> std::result::Result<tonic::Response<super::Image>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Images/GetFromFamily",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Images", "GetFromFamily"),
);
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::GetIamPolicyImageRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Images/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Images", "GetIamPolicy"),
);
self.inner.unary(req, path, codec).await
}
/// Creates an image in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertImageRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Images/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Images", "Insert"));
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of custom images available to the specified project. Custom images are images you create that belong to your project. This method does not get any images that belong to other projects, including publicly-available images, like Debian 8. If you want to get a list of publicly-available images, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListImagesRequest>,
) -> std::result::Result<tonic::Response<super::ImageList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Images/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Images", "List"));
self.inner.unary(req, path, codec).await
}
/// Patches the specified image with the data included in the request. Only the following fields can be modified: family, description, deprecation status.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchImageRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Images/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Images", "Patch"));
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetIamPolicyImageRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Images/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Images", "SetIamPolicy"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the labels on an image. To learn more about labels, read the Labeling Resources documentation.
pub async fn set_labels(
&mut self,
request: impl tonic::IntoRequest<super::SetLabelsImageRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Images/SetLabels",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Images", "SetLabels"));
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<super::TestIamPermissionsImageRequest>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Images/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Images",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod instance_group_managers_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The InstanceGroupManagers API.
#[derive(Debug, Clone)]
pub struct InstanceGroupManagersClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> InstanceGroupManagersClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> InstanceGroupManagersClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
InstanceGroupManagersClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Flags the specified instances to be removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.
pub async fn abandon_instances(
&mut self,
request: impl tonic::IntoRequest<
super::AbandonInstancesInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/AbandonInstances",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"AbandonInstances",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of managed instance groups and groups them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<
super::AggregatedListInstanceGroupManagersRequest,
>,
) -> std::result::Result<
tonic::Response<super::InstanceGroupManagerAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Applies changes to selected instances on the managed instance group. This method can be used to apply new overrides and/or new versions.
pub async fn apply_updates_to_instances(
&mut self,
request: impl tonic::IntoRequest<
super::ApplyUpdatesToInstancesInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/ApplyUpdatesToInstances",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"ApplyUpdatesToInstances",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates instances with per-instance configurations in this managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of the creating or actions with the listmanagedinstances method.
pub async fn create_instances(
&mut self,
request: impl tonic::IntoRequest<
super::CreateInstancesInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/CreateInstances",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"CreateInstances",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified managed instance group and all of the instances in that group. Note that the instance group must not belong to a backend service. Read Deleting an instance group for more information.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteInstanceGroupManagerRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Flags the specified instances in the managed instance group for immediate deletion. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. This operation is marked as DONE when the action is scheduled even if the instances are still being deleted. You must separately verify the status of the deleting action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.
pub async fn delete_instances(
&mut self,
request: impl tonic::IntoRequest<
super::DeleteInstancesInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/DeleteInstances",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"DeleteInstances",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes selected per-instance configurations for the managed instance group.
pub async fn delete_per_instance_configs(
&mut self,
request: impl tonic::IntoRequest<
super::DeletePerInstanceConfigsInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/DeletePerInstanceConfigs",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"DeletePerInstanceConfigs",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns all of the details about the specified managed instance group.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetInstanceGroupManagerRequest>,
) -> std::result::Result<
tonic::Response<super::InstanceGroupManager>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method. A managed instance group can have up to 1000 VM instances per group. Please contact Cloud Support if you need an increase in this limit.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertInstanceGroupManagerRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of managed instance groups that are contained within the specified project and zone.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListInstanceGroupManagersRequest>,
) -> std::result::Result<
tonic::Response<super::InstanceGroupManagerList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists all errors thrown by actions on instances for a given managed instance group. The filter and orderBy query parameters are not supported.
pub async fn list_errors(
&mut self,
request: impl tonic::IntoRequest<
super::ListErrorsInstanceGroupManagersRequest,
>,
) -> std::result::Result<
tonic::Response<super::InstanceGroupManagersListErrorsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/ListErrors",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"ListErrors",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.
pub async fn list_managed_instances(
&mut self,
request: impl tonic::IntoRequest<
super::ListManagedInstancesInstanceGroupManagersRequest,
>,
) -> std::result::Result<
tonic::Response<super::InstanceGroupManagersListManagedInstancesResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/ListManagedInstances",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"ListManagedInstances",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists all of the per-instance configurations defined for the managed instance group. The orderBy query parameter is not supported.
pub async fn list_per_instance_configs(
&mut self,
request: impl tonic::IntoRequest<
super::ListPerInstanceConfigsInstanceGroupManagersRequest,
>,
) -> std::result::Result<
tonic::Response<super::InstanceGroupManagersListPerInstanceConfigsResp>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/ListPerInstanceConfigs",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"ListPerInstanceConfigs",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listManagedInstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchInstanceGroupManagerRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"Patch",
),
);
self.inner.unary(req, path, codec).await
}
/// Inserts or patches per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.
pub async fn patch_per_instance_configs(
&mut self,
request: impl tonic::IntoRequest<
super::PatchPerInstanceConfigsInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/PatchPerInstanceConfigs",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"PatchPerInstanceConfigs",
),
);
self.inner.unary(req, path, codec).await
}
/// Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.
pub async fn recreate_instances(
&mut self,
request: impl tonic::IntoRequest<
super::RecreateInstancesInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/RecreateInstances",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"RecreateInstances",
),
);
self.inner.unary(req, path, codec).await
}
/// Resizes the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes instances. The resize operation is marked DONE when the resize actions are scheduled even if the group has not yet added or deleted any instances. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method. When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. The group takes into account some VM attributes when making the selection including: + The status of the VM instance. + The health of the VM instance. + The instance template version the VM is based on. + For regional managed instance groups, the location of the VM instance. This list is subject to change. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.
pub async fn resize(
&mut self,
request: impl tonic::IntoRequest<super::ResizeInstanceGroupManagerRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/Resize",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"Resize",
),
);
self.inner.unary(req, path, codec).await
}
/// Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.
pub async fn set_instance_template(
&mut self,
request: impl tonic::IntoRequest<
super::SetInstanceTemplateInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/SetInstanceTemplate",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"SetInstanceTemplate",
),
);
self.inner.unary(req, path, codec).await
}
/// Modifies the target pools to which all instances in this managed instance group are assigned. The target pools automatically apply to all of the instances in the managed instance group. This operation is marked DONE when you make the request even if the instances have not yet been added to their target pools. The change might take some time to apply to all of the instances in the group depending on the size of the group.
pub async fn set_target_pools(
&mut self,
request: impl tonic::IntoRequest<
super::SetTargetPoolsInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/SetTargetPools",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"SetTargetPools",
),
);
self.inner.unary(req, path, codec).await
}
/// Inserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.
pub async fn update_per_instance_configs(
&mut self,
request: impl tonic::IntoRequest<
super::UpdatePerInstanceConfigsInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroupManagers/UpdatePerInstanceConfigs",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroupManagers",
"UpdatePerInstanceConfigs",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod instance_groups_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The InstanceGroups API.
#[derive(Debug, Clone)]
pub struct InstanceGroupsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> InstanceGroupsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> InstanceGroupsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
InstanceGroupsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Adds a list of instances to the specified instance group. All of the instances in the instance group must be in the same network/subnetwork. Read Adding instances for more information.
pub async fn add_instances(
&mut self,
request: impl tonic::IntoRequest<super::AddInstancesInstanceGroupRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroups/AddInstances",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroups",
"AddInstances",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of instance groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListInstanceGroupsRequest>,
) -> std::result::Result<
tonic::Response<super::InstanceGroupAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroups/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroups",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified instance group. The instances in the group are not deleted. Note that instance group must not belong to a backend service. Read Deleting an instance group for more information.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteInstanceGroupRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroups/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.InstanceGroups", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified zonal instance group. Get a list of available zonal instance groups by making a list() request. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetInstanceGroupRequest>,
) -> std::result::Result<tonic::Response<super::InstanceGroup>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroups/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.InstanceGroups", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Creates an instance group in the specified project using the parameters that are included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertInstanceGroupRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroups/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.InstanceGroups", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of zonal instance group resources contained within the specified zone. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListInstanceGroupsRequest>,
) -> std::result::Result<
tonic::Response<super::InstanceGroupList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroups/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.InstanceGroups", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Lists the instances in the specified instance group. The orderBy query parameter is not supported. The filter query parameter is supported, but only for expressions that use `eq` (equal) or `ne` (not equal) operators.
pub async fn list_instances(
&mut self,
request: impl tonic::IntoRequest<super::ListInstancesInstanceGroupsRequest>,
) -> std::result::Result<
tonic::Response<super::InstanceGroupsListInstances>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroups/ListInstances",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroups",
"ListInstances",
),
);
self.inner.unary(req, path, codec).await
}
/// Removes one or more instances from the specified instance group, but does not delete those instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration before the VM instance is removed or deleted.
pub async fn remove_instances(
&mut self,
request: impl tonic::IntoRequest<super::RemoveInstancesInstanceGroupRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroups/RemoveInstances",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroups",
"RemoveInstances",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the named ports for the specified instance group.
pub async fn set_named_ports(
&mut self,
request: impl tonic::IntoRequest<super::SetNamedPortsInstanceGroupRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceGroups/SetNamedPorts",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceGroups",
"SetNamedPorts",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod instance_templates_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The InstanceTemplates API.
#[derive(Debug, Clone)]
pub struct InstanceTemplatesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> InstanceTemplatesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> InstanceTemplatesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
InstanceTemplatesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<
super::AggregatedListInstanceTemplatesRequest,
>,
) -> std::result::Result<
tonic::Response<super::InstanceTemplateAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceTemplates/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceTemplates",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. It is not possible to delete templates that are already in use by a managed instance group.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteInstanceTemplateRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceTemplates/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceTemplates",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified instance template.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetInstanceTemplateRequest>,
) -> std::result::Result<
tonic::Response<super::InstanceTemplate>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceTemplates/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.InstanceTemplates", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::GetIamPolicyInstanceTemplateRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceTemplates/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceTemplates",
"GetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates an instance template in the specified project using the data that is included in the request. If you are creating a new template to update an existing instance group, your new instance template must use the same network or, if applicable, the same subnetwork as the original template.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertInstanceTemplateRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceTemplates/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceTemplates",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of instance templates that are contained within the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListInstanceTemplatesRequest>,
) -> std::result::Result<
tonic::Response<super::InstanceTemplateList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceTemplates/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.InstanceTemplates", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetIamPolicyInstanceTemplateRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceTemplates/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceTemplates",
"SetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<
super::TestIamPermissionsInstanceTemplateRequest,
>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstanceTemplates/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstanceTemplates",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod instances_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The Instances API.
#[derive(Debug, Clone)]
pub struct InstancesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> InstancesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> InstancesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
InstancesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Adds an access config to an instance's network interface.
pub async fn add_access_config(
&mut self,
request: impl tonic::IntoRequest<super::AddAccessConfigInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/AddAccessConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"AddAccessConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Adds existing resource policies to an instance. You can only add one policy right now which will be applied to this instance for scheduling live migrations.
pub async fn add_resource_policies(
&mut self,
request: impl tonic::IntoRequest<super::AddResourcePoliciesInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/AddResourcePolicies",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"AddResourcePolicies",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is specified on a project that has a very large number of instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListInstancesRequest>,
) -> std::result::Result<
tonic::Response<super::InstanceAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Attaches an existing Disk resource to an instance. You must first create the disk before you can attach it. It is not possible to create and attach a disk at the same time. For more information, read Adding a persistent disk to your instance.
pub async fn attach_disk(
&mut self,
request: impl tonic::IntoRequest<super::AttachDiskInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/AttachDisk",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Instances", "AttachDisk"),
);
self.inner.unary(req, path, codec).await
}
/// Creates multiple instances. Count specifies the number of instances to create. For more information, see About bulk creation of VMs.
pub async fn bulk_insert(
&mut self,
request: impl tonic::IntoRequest<super::BulkInsertInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/BulkInsert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Instances", "BulkInsert"),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified Instance resource. For more information, see Deleting an instance.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Instances", "Delete"));
self.inner.unary(req, path, codec).await
}
/// Deletes an access config from an instance's network interface.
pub async fn delete_access_config(
&mut self,
request: impl tonic::IntoRequest<super::DeleteAccessConfigInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/DeleteAccessConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"DeleteAccessConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Detaches a disk from an instance.
pub async fn detach_disk(
&mut self,
request: impl tonic::IntoRequest<super::DetachDiskInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/DetachDisk",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Instances", "DetachDisk"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified Instance resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Instance>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Instances", "Get"));
self.inner.unary(req, path, codec).await
}
/// Returns effective firewalls applied to an interface of the instance.
pub async fn get_effective_firewalls(
&mut self,
request: impl tonic::IntoRequest<super::GetEffectiveFirewallsInstanceRequest>,
) -> std::result::Result<
tonic::Response<super::InstancesGetEffectiveFirewallsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/GetEffectiveFirewalls",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"GetEffectiveFirewalls",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified guest attributes entry.
pub async fn get_guest_attributes(
&mut self,
request: impl tonic::IntoRequest<super::GetGuestAttributesInstanceRequest>,
) -> std::result::Result<
tonic::Response<super::GuestAttributes>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/GetGuestAttributes",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"GetGuestAttributes",
),
);
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::GetIamPolicyInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Instances", "GetIamPolicy"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the screenshot from the specified instance.
pub async fn get_screenshot(
&mut self,
request: impl tonic::IntoRequest<super::GetScreenshotInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Screenshot>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/GetScreenshot",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Instances", "GetScreenshot"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the last 1 MB of serial port output from the specified instance.
pub async fn get_serial_port_output(
&mut self,
request: impl tonic::IntoRequest<super::GetSerialPortOutputInstanceRequest>,
) -> std::result::Result<
tonic::Response<super::SerialPortOutput>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/GetSerialPortOutput",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"GetSerialPortOutput",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the Shielded Instance Identity of an instance
pub async fn get_shielded_instance_identity(
&mut self,
request: impl tonic::IntoRequest<
super::GetShieldedInstanceIdentityInstanceRequest,
>,
) -> std::result::Result<
tonic::Response<super::ShieldedInstanceIdentity>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/GetShieldedInstanceIdentity",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"GetShieldedInstanceIdentity",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates an instance resource in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Instances", "Insert"));
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of instances contained within the specified zone.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListInstancesRequest>,
) -> std::result::Result<tonic::Response<super::InstanceList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Instances", "List"));
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of resources that refer to the VM instance specified in the request. For example, if the VM instance is part of a managed or unmanaged instance group, the referrers list includes the instance group. For more information, read Viewing referrers to VM instances.
pub async fn list_referrers(
&mut self,
request: impl tonic::IntoRequest<super::ListReferrersInstancesRequest>,
) -> std::result::Result<
tonic::Response<super::InstanceListReferrers>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/ListReferrers",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Instances", "ListReferrers"),
);
self.inner.unary(req, path, codec).await
}
/// Perform a manual maintenance on the instance.
pub async fn perform_maintenance(
&mut self,
request: impl tonic::IntoRequest<super::PerformMaintenanceInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/PerformMaintenance",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"PerformMaintenance",
),
);
self.inner.unary(req, path, codec).await
}
/// Removes resource policies from an instance.
pub async fn remove_resource_policies(
&mut self,
request: impl tonic::IntoRequest<
super::RemoveResourcePoliciesInstanceRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/RemoveResourcePolicies",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"RemoveResourcePolicies",
),
);
self.inner.unary(req, path, codec).await
}
/// Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, see Resetting an instance.
pub async fn reset(
&mut self,
request: impl tonic::IntoRequest<super::ResetInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/Reset",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Instances", "Reset"));
self.inner.unary(req, path, codec).await
}
/// Resumes an instance that was suspended using the instances().suspend method.
pub async fn resume(
&mut self,
request: impl tonic::IntoRequest<super::ResumeInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/Resume",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Instances", "Resume"));
self.inner.unary(req, path, codec).await
}
/// Sends diagnostic interrupt to the instance.
pub async fn send_diagnostic_interrupt(
&mut self,
request: impl tonic::IntoRequest<
super::SendDiagnosticInterruptInstanceRequest,
>,
) -> std::result::Result<
tonic::Response<super::SendDiagnosticInterruptInstanceResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/SendDiagnosticInterrupt",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"SendDiagnosticInterrupt",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets deletion protection on the instance.
pub async fn set_deletion_protection(
&mut self,
request: impl tonic::IntoRequest<super::SetDeletionProtectionInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/SetDeletionProtection",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"SetDeletionProtection",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the auto-delete flag for a disk attached to an instance.
pub async fn set_disk_auto_delete(
&mut self,
request: impl tonic::IntoRequest<super::SetDiskAutoDeleteInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/SetDiskAutoDelete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"SetDiskAutoDelete",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetIamPolicyInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Instances", "SetIamPolicy"),
);
self.inner.unary(req, path, codec).await
}
/// Sets labels on an instance. To learn more about labels, read the Labeling Resources documentation.
pub async fn set_labels(
&mut self,
request: impl tonic::IntoRequest<super::SetLabelsInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/SetLabels",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Instances", "SetLabels"),
);
self.inner.unary(req, path, codec).await
}
/// Changes the number and/or type of accelerator for a stopped instance to the values specified in the request.
pub async fn set_machine_resources(
&mut self,
request: impl tonic::IntoRequest<super::SetMachineResourcesInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/SetMachineResources",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"SetMachineResources",
),
);
self.inner.unary(req, path, codec).await
}
/// Changes the machine type for a stopped instance to the machine type specified in the request.
pub async fn set_machine_type(
&mut self,
request: impl tonic::IntoRequest<super::SetMachineTypeInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/SetMachineType",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"SetMachineType",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets metadata for the specified instance to the data included in the request.
pub async fn set_metadata(
&mut self,
request: impl tonic::IntoRequest<super::SetMetadataInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/SetMetadata",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Instances", "SetMetadata"),
);
self.inner.unary(req, path, codec).await
}
/// Changes the minimum CPU platform that this instance should use. This method can only be called on a stopped instance. For more information, read Specifying a Minimum CPU Platform.
pub async fn set_min_cpu_platform(
&mut self,
request: impl tonic::IntoRequest<super::SetMinCpuPlatformInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/SetMinCpuPlatform",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"SetMinCpuPlatform",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets name of an instance.
pub async fn set_name(
&mut self,
request: impl tonic::IntoRequest<super::SetNameInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/SetName",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Instances", "SetName"));
self.inner.unary(req, path, codec).await
}
/// Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, see Set VM host maintenance policy.
pub async fn set_scheduling(
&mut self,
request: impl tonic::IntoRequest<super::SetSchedulingInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/SetScheduling",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Instances", "SetScheduling"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the Google Cloud Armor security policy for the specified instance. For more information, see Google Cloud Armor Overview
pub async fn set_security_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetSecurityPolicyInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/SetSecurityPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"SetSecurityPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the service account on the instance. For more information, read Changing the service account and access scopes for an instance.
pub async fn set_service_account(
&mut self,
request: impl tonic::IntoRequest<super::SetServiceAccountInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/SetServiceAccount",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"SetServiceAccount",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the Shielded Instance integrity policy for an instance. You can only use this method on a running instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
pub async fn set_shielded_instance_integrity_policy(
&mut self,
request: impl tonic::IntoRequest<
super::SetShieldedInstanceIntegrityPolicyInstanceRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/SetShieldedInstanceIntegrityPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"SetShieldedInstanceIntegrityPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets network tags for the specified instance to the data included in the request.
pub async fn set_tags(
&mut self,
request: impl tonic::IntoRequest<super::SetTagsInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/SetTags",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Instances", "SetTags"));
self.inner.unary(req, path, codec).await
}
/// Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance event.
pub async fn simulate_maintenance_event(
&mut self,
request: impl tonic::IntoRequest<
super::SimulateMaintenanceEventInstanceRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/SimulateMaintenanceEvent",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"SimulateMaintenanceEvent",
),
);
self.inner.unary(req, path, codec).await
}
/// Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.
pub async fn start(
&mut self,
request: impl tonic::IntoRequest<super::StartInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/Start",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Instances", "Start"));
self.inner.unary(req, path, codec).await
}
/// Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.
pub async fn start_with_encryption_key(
&mut self,
request: impl tonic::IntoRequest<
super::StartWithEncryptionKeyInstanceRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/StartWithEncryptionKey",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"StartWithEncryptionKey",
),
);
self.inner.unary(req, path, codec).await
}
/// Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur VM usage charges while they are stopped. However, resources that the VM is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, see Stopping an instance.
pub async fn stop(
&mut self,
request: impl tonic::IntoRequest<super::StopInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/Stop",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Instances", "Stop"));
self.inner.unary(req, path, codec).await
}
/// This method suspends a running instance, saving its state to persistent storage, and allows you to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), and incur only storage charges for the saved VM memory and localSSD data. Any charged resources the virtual machine was using, such as persistent disks and static IP addresses, will continue to be charged while the instance is suspended. For more information, see Suspending and resuming an instance.
pub async fn suspend(
&mut self,
request: impl tonic::IntoRequest<super::SuspendInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/Suspend",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Instances", "Suspend"));
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<super::TestIamPermissionsInstanceRequest>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates an instance only if the necessary resources are available. This method can update only a specific set of instance properties. See Updating a running instance for a list of updatable instance properties.
pub async fn update(
&mut self,
request: impl tonic::IntoRequest<super::UpdateInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/Update",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Instances", "Update"));
self.inner.unary(req, path, codec).await
}
/// Updates the specified access config from an instance's network interface with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
pub async fn update_access_config(
&mut self,
request: impl tonic::IntoRequest<super::UpdateAccessConfigInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/UpdateAccessConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"UpdateAccessConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates the Display config for a VM instance. You can only use this method on a stopped VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
pub async fn update_display_device(
&mut self,
request: impl tonic::IntoRequest<super::UpdateDisplayDeviceInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/UpdateDisplayDevice",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"UpdateDisplayDevice",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates an instance's network interface. This method can only update an interface's alias IP range and attached network. See Modifying alias IP ranges for an existing instance for instructions on changing alias IP ranges. See Migrating a VM between networks for instructions on migrating an interface. This method follows PATCH semantics.
pub async fn update_network_interface(
&mut self,
request: impl tonic::IntoRequest<
super::UpdateNetworkInterfaceInstanceRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/UpdateNetworkInterface",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"UpdateNetworkInterface",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates the Shielded Instance config for an instance. You can only use this method on a stopped instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
pub async fn update_shielded_instance_config(
&mut self,
request: impl tonic::IntoRequest<
super::UpdateShieldedInstanceConfigInstanceRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Instances/UpdateShieldedInstanceConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Instances",
"UpdateShieldedInstanceConfig",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod instant_snapshots_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The InstantSnapshots API.
#[derive(Debug, Clone)]
pub struct InstantSnapshotsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> InstantSnapshotsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> InstantSnapshotsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
InstantSnapshotsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<
super::AggregatedListInstantSnapshotsRequest,
>,
) -> std::result::Result<
tonic::Response<super::InstantSnapshotAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstantSnapshots/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstantSnapshots",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteInstantSnapshotRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstantSnapshots/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.InstantSnapshots", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified InstantSnapshot resource in the specified zone.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetInstantSnapshotRequest>,
) -> std::result::Result<
tonic::Response<super::InstantSnapshot>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstantSnapshots/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.InstantSnapshots", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::GetIamPolicyInstantSnapshotRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstantSnapshots/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstantSnapshots",
"GetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates an instant snapshot in the specified zone.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertInstantSnapshotRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstantSnapshots/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.InstantSnapshots", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of InstantSnapshot resources contained within the specified zone.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListInstantSnapshotsRequest>,
) -> std::result::Result<
tonic::Response<super::InstantSnapshotList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstantSnapshots/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.InstantSnapshots", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetIamPolicyInstantSnapshotRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstantSnapshots/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstantSnapshots",
"SetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the Labeling Resources documentation.
pub async fn set_labels(
&mut self,
request: impl tonic::IntoRequest<super::SetLabelsInstantSnapshotRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstantSnapshots/SetLabels",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstantSnapshots",
"SetLabels",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<
super::TestIamPermissionsInstantSnapshotRequest,
>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InstantSnapshots/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InstantSnapshots",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod interconnect_attachments_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The InterconnectAttachments API.
#[derive(Debug, Clone)]
pub struct InterconnectAttachmentsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> InterconnectAttachmentsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> InterconnectAttachmentsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
InterconnectAttachmentsClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of interconnect attachments. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<
super::AggregatedListInterconnectAttachmentsRequest,
>,
) -> std::result::Result<
tonic::Response<super::InterconnectAttachmentAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InterconnectAttachments/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InterconnectAttachments",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified interconnect attachment.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteInterconnectAttachmentRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InterconnectAttachments/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InterconnectAttachments",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified interconnect attachment.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetInterconnectAttachmentRequest>,
) -> std::result::Result<
tonic::Response<super::InterconnectAttachment>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InterconnectAttachments/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InterconnectAttachments",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates an InterconnectAttachment in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertInterconnectAttachmentRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InterconnectAttachments/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InterconnectAttachments",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of interconnect attachments contained within the specified region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListInterconnectAttachmentsRequest>,
) -> std::result::Result<
tonic::Response<super::InterconnectAttachmentList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InterconnectAttachments/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InterconnectAttachments",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates the specified interconnect attachment with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchInterconnectAttachmentRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InterconnectAttachments/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InterconnectAttachments",
"Patch",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling Resources documentation.
pub async fn set_labels(
&mut self,
request: impl tonic::IntoRequest<
super::SetLabelsInterconnectAttachmentRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InterconnectAttachments/SetLabels",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InterconnectAttachments",
"SetLabels",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod interconnect_locations_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The InterconnectLocations API.
#[derive(Debug, Clone)]
pub struct InterconnectLocationsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> InterconnectLocationsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> InterconnectLocationsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
InterconnectLocationsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Returns the details for the specified interconnect location. Gets a list of available interconnect locations by making a list() request.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetInterconnectLocationRequest>,
) -> std::result::Result<
tonic::Response<super::InterconnectLocation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InterconnectLocations/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InterconnectLocations",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of interconnect locations available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListInterconnectLocationsRequest>,
) -> std::result::Result<
tonic::Response<super::InterconnectLocationList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InterconnectLocations/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InterconnectLocations",
"List",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod interconnect_remote_locations_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The InterconnectRemoteLocations API.
#[derive(Debug, Clone)]
pub struct InterconnectRemoteLocationsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> InterconnectRemoteLocationsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> InterconnectRemoteLocationsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
InterconnectRemoteLocationsClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Returns the details for the specified interconnect remote location. Gets a list of available interconnect remote locations by making a list() request.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetInterconnectRemoteLocationRequest>,
) -> std::result::Result<
tonic::Response<super::InterconnectRemoteLocation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InterconnectRemoteLocations/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InterconnectRemoteLocations",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of interconnect remote locations available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<
super::ListInterconnectRemoteLocationsRequest,
>,
) -> std::result::Result<
tonic::Response<super::InterconnectRemoteLocationList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.InterconnectRemoteLocations/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.InterconnectRemoteLocations",
"List",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod interconnects_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The Interconnects API.
#[derive(Debug, Clone)]
pub struct InterconnectsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> InterconnectsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> InterconnectsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
InterconnectsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified Interconnect.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteInterconnectRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Interconnects/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Interconnects", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified Interconnect. Get a list of available Interconnects by making a list() request.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetInterconnectRequest>,
) -> std::result::Result<tonic::Response<super::Interconnect>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Interconnects/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Interconnects", "Get"));
self.inner.unary(req, path, codec).await
}
/// Returns the interconnectDiagnostics for the specified Interconnect. In the event of a global outage, do not use this API to make decisions about where to redirect your network traffic. Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global resource. A global outage can prevent this API from functioning properly.
pub async fn get_diagnostics(
&mut self,
request: impl tonic::IntoRequest<super::GetDiagnosticsInterconnectRequest>,
) -> std::result::Result<
tonic::Response<super::InterconnectsGetDiagnosticsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Interconnects/GetDiagnostics",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Interconnects",
"GetDiagnostics",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the interconnectMacsecConfig for the specified Interconnect.
pub async fn get_macsec_config(
&mut self,
request: impl tonic::IntoRequest<super::GetMacsecConfigInterconnectRequest>,
) -> std::result::Result<
tonic::Response<super::InterconnectsGetMacsecConfigResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Interconnects/GetMacsecConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Interconnects",
"GetMacsecConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates an Interconnect in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertInterconnectRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Interconnects/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Interconnects", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of Interconnects available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListInterconnectsRequest>,
) -> std::result::Result<
tonic::Response<super::InterconnectList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Interconnects/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Interconnects", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Updates the specified Interconnect with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchInterconnectRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Interconnects/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Interconnects", "Patch"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources documentation.
pub async fn set_labels(
&mut self,
request: impl tonic::IntoRequest<super::SetLabelsInterconnectRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Interconnects/SetLabels",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Interconnects", "SetLabels"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod license_codes_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The LicenseCodes API.
#[derive(Debug, Clone)]
pub struct LicenseCodesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> LicenseCodesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> LicenseCodesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
LicenseCodesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetLicenseCodeRequest>,
) -> std::result::Result<tonic::Response<super::LicenseCode>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.LicenseCodes/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.LicenseCodes", "Get"));
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<super::TestIamPermissionsLicenseCodeRequest>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.LicenseCodes/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.LicenseCodes",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod licenses_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The Licenses API.
#[derive(Debug, Clone)]
pub struct LicensesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> LicensesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> LicensesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
LicensesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified license. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteLicenseRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Licenses/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Licenses", "Delete"));
self.inner.unary(req, path, codec).await
}
/// Returns the specified License resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetLicenseRequest>,
) -> std::result::Result<tonic::Response<super::License>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Licenses/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Licenses", "Get"));
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::GetIamPolicyLicenseRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Licenses/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Licenses", "GetIamPolicy"),
);
self.inner.unary(req, path, codec).await
}
/// Create a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertLicenseRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Licenses/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Licenses", "Insert"));
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of licenses available in the specified project. This method does not get any licenses that belong to other projects, including licenses attached to publicly-available images, like Debian 9. If you want to get a list of publicly-available licenses, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListLicensesRequest>,
) -> std::result::Result<
tonic::Response<super::LicensesListResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Licenses/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Licenses", "List"));
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetIamPolicyLicenseRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Licenses/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Licenses", "SetIamPolicy"),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<super::TestIamPermissionsLicenseRequest>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Licenses/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Licenses",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod machine_images_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The MachineImages API.
#[derive(Debug, Clone)]
pub struct MachineImagesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> MachineImagesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> MachineImagesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
MachineImagesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteMachineImageRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.MachineImages/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.MachineImages", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified machine image.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetMachineImageRequest>,
) -> std::result::Result<tonic::Response<super::MachineImage>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.MachineImages/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.MachineImages", "Get"));
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::GetIamPolicyMachineImageRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.MachineImages/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.MachineImages",
"GetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a machine image in the specified project using the data that is included in the request. If you are creating a new machine image to update an existing instance, your new machine image should use the same network or, if applicable, the same subnetwork as the original instance.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertMachineImageRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.MachineImages/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.MachineImages", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of machine images that are contained within the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListMachineImagesRequest>,
) -> std::result::Result<
tonic::Response<super::MachineImageList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.MachineImages/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.MachineImages", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetIamPolicyMachineImageRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.MachineImages/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.MachineImages",
"SetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<
super::TestIamPermissionsMachineImageRequest,
>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.MachineImages/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.MachineImages",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod machine_types_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The MachineTypes API.
#[derive(Debug, Clone)]
pub struct MachineTypesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> MachineTypesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> MachineTypesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
MachineTypesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of machine types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListMachineTypesRequest>,
) -> std::result::Result<
tonic::Response<super::MachineTypeAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.MachineTypes/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.MachineTypes",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified machine type.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetMachineTypeRequest>,
) -> std::result::Result<tonic::Response<super::MachineType>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.MachineTypes/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.MachineTypes", "Get"));
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of machine types available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListMachineTypesRequest>,
) -> std::result::Result<
tonic::Response<super::MachineTypeList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.MachineTypes/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.MachineTypes", "List"));
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod network_attachments_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The NetworkAttachments API.
#[derive(Debug, Clone)]
pub struct NetworkAttachmentsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> NetworkAttachmentsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> NetworkAttachmentsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
NetworkAttachmentsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<
super::AggregatedListNetworkAttachmentsRequest,
>,
) -> std::result::Result<
tonic::Response<super::NetworkAttachmentAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkAttachments/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkAttachments",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified NetworkAttachment in the given scope
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteNetworkAttachmentRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkAttachments/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkAttachments",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified NetworkAttachment resource in the given scope.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetNetworkAttachmentRequest>,
) -> std::result::Result<
tonic::Response<super::NetworkAttachment>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkAttachments/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.NetworkAttachments", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::GetIamPolicyNetworkAttachmentRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkAttachments/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkAttachments",
"GetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a NetworkAttachment in the specified project in the given scope using the parameters that are included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertNetworkAttachmentRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkAttachments/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkAttachments",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists the NetworkAttachments for a project in the given scope.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListNetworkAttachmentsRequest>,
) -> std::result::Result<
tonic::Response<super::NetworkAttachmentList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkAttachments/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.NetworkAttachments", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified NetworkAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchNetworkAttachmentRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkAttachments/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkAttachments",
"Patch",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetIamPolicyNetworkAttachmentRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkAttachments/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkAttachments",
"SetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<
super::TestIamPermissionsNetworkAttachmentRequest,
>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkAttachments/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkAttachments",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod network_edge_security_services_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The NetworkEdgeSecurityServices API.
#[derive(Debug, Clone)]
pub struct NetworkEdgeSecurityServicesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> NetworkEdgeSecurityServicesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> NetworkEdgeSecurityServicesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
NetworkEdgeSecurityServicesClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<
super::AggregatedListNetworkEdgeSecurityServicesRequest,
>,
) -> std::result::Result<
tonic::Response<super::NetworkEdgeSecurityServiceAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkEdgeSecurityServices/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkEdgeSecurityServices",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified service.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<
super::DeleteNetworkEdgeSecurityServiceRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkEdgeSecurityServices/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkEdgeSecurityServices",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Gets a specified NetworkEdgeSecurityService.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetNetworkEdgeSecurityServiceRequest>,
) -> std::result::Result<
tonic::Response<super::NetworkEdgeSecurityService>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkEdgeSecurityServices/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkEdgeSecurityServices",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a new service in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<
super::InsertNetworkEdgeSecurityServiceRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkEdgeSecurityServices/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkEdgeSecurityServices",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified policy with the data included in the request.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<
super::PatchNetworkEdgeSecurityServiceRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkEdgeSecurityServices/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkEdgeSecurityServices",
"Patch",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod network_endpoint_groups_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The NetworkEndpointGroups API.
#[derive(Debug, Clone)]
pub struct NetworkEndpointGroupsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> NetworkEndpointGroupsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> NetworkEndpointGroupsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
NetworkEndpointGroupsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves the list of network endpoint groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<
super::AggregatedListNetworkEndpointGroupsRequest,
>,
) -> std::result::Result<
tonic::Response<super::NetworkEndpointGroupAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkEndpointGroups/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkEndpointGroups",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Attach a list of network endpoints to the specified network endpoint group.
pub async fn attach_network_endpoints(
&mut self,
request: impl tonic::IntoRequest<
super::AttachNetworkEndpointsNetworkEndpointGroupRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkEndpointGroups/AttachNetworkEndpoints",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkEndpointGroups",
"AttachNetworkEndpoints",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified network endpoint group. The network endpoints in the NEG and the VM instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot be deleted if there are backend services referencing it.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteNetworkEndpointGroupRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkEndpointGroups/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkEndpointGroups",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Detach a list of network endpoints from the specified network endpoint group.
pub async fn detach_network_endpoints(
&mut self,
request: impl tonic::IntoRequest<
super::DetachNetworkEndpointsNetworkEndpointGroupRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkEndpointGroups/DetachNetworkEndpoints",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkEndpointGroups",
"DetachNetworkEndpoints",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified network endpoint group.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetNetworkEndpointGroupRequest>,
) -> std::result::Result<
tonic::Response<super::NetworkEndpointGroup>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkEndpointGroups/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkEndpointGroups",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a network endpoint group in the specified project using the parameters that are included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertNetworkEndpointGroupRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkEndpointGroups/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkEndpointGroups",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of network endpoint groups that are located in the specified project and zone.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListNetworkEndpointGroupsRequest>,
) -> std::result::Result<
tonic::Response<super::NetworkEndpointGroupList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkEndpointGroups/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkEndpointGroups",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists the network endpoints in the specified network endpoint group.
pub async fn list_network_endpoints(
&mut self,
request: impl tonic::IntoRequest<
super::ListNetworkEndpointsNetworkEndpointGroupsRequest,
>,
) -> std::result::Result<
tonic::Response<super::NetworkEndpointGroupsListNetworkEndpoints>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkEndpointGroups/ListNetworkEndpoints",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkEndpointGroups",
"ListNetworkEndpoints",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<
super::TestIamPermissionsNetworkEndpointGroupRequest,
>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkEndpointGroups/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkEndpointGroups",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod network_firewall_policies_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The NetworkFirewallPolicies API.
#[derive(Debug, Clone)]
pub struct NetworkFirewallPoliciesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> NetworkFirewallPoliciesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> NetworkFirewallPoliciesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
NetworkFirewallPoliciesClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Inserts an association for the specified firewall policy.
pub async fn add_association(
&mut self,
request: impl tonic::IntoRequest<
super::AddAssociationNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkFirewallPolicies/AddAssociation",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkFirewallPolicies",
"AddAssociation",
),
);
self.inner.unary(req, path, codec).await
}
/// Inserts a rule into a firewall policy.
pub async fn add_rule(
&mut self,
request: impl tonic::IntoRequest<super::AddRuleNetworkFirewallPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkFirewallPolicies/AddRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkFirewallPolicies",
"AddRule",
),
);
self.inner.unary(req, path, codec).await
}
/// Copies rules to the specified firewall policy.
pub async fn clone_rules(
&mut self,
request: impl tonic::IntoRequest<
super::CloneRulesNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkFirewallPolicies/CloneRules",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkFirewallPolicies",
"CloneRules",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified policy.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteNetworkFirewallPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkFirewallPolicies/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkFirewallPolicies",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified network firewall policy.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetNetworkFirewallPolicyRequest>,
) -> std::result::Result<tonic::Response<super::FirewallPolicy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkFirewallPolicies/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkFirewallPolicies",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Gets an association with the specified name.
pub async fn get_association(
&mut self,
request: impl tonic::IntoRequest<
super::GetAssociationNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<
tonic::Response<super::FirewallPolicyAssociation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkFirewallPolicies/GetAssociation",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkFirewallPolicies",
"GetAssociation",
),
);
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<
super::GetIamPolicyNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkFirewallPolicies/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkFirewallPolicies",
"GetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Gets a rule of the specified priority.
pub async fn get_rule(
&mut self,
request: impl tonic::IntoRequest<super::GetRuleNetworkFirewallPolicyRequest>,
) -> std::result::Result<
tonic::Response<super::FirewallPolicyRule>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkFirewallPolicies/GetRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkFirewallPolicies",
"GetRule",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a new policy in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertNetworkFirewallPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkFirewallPolicies/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkFirewallPolicies",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists all the policies that have been configured for the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListNetworkFirewallPoliciesRequest>,
) -> std::result::Result<
tonic::Response<super::FirewallPolicyList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkFirewallPolicies/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkFirewallPolicies",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified policy with the data included in the request.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchNetworkFirewallPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkFirewallPolicies/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkFirewallPolicies",
"Patch",
),
);
self.inner.unary(req, path, codec).await
}
/// Patches a rule of the specified priority.
pub async fn patch_rule(
&mut self,
request: impl tonic::IntoRequest<
super::PatchRuleNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkFirewallPolicies/PatchRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkFirewallPolicies",
"PatchRule",
),
);
self.inner.unary(req, path, codec).await
}
/// Removes an association for the specified firewall policy.
pub async fn remove_association(
&mut self,
request: impl tonic::IntoRequest<
super::RemoveAssociationNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkFirewallPolicies/RemoveAssociation",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkFirewallPolicies",
"RemoveAssociation",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes a rule of the specified priority.
pub async fn remove_rule(
&mut self,
request: impl tonic::IntoRequest<
super::RemoveRuleNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkFirewallPolicies/RemoveRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkFirewallPolicies",
"RemoveRule",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<
super::SetIamPolicyNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkFirewallPolicies/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkFirewallPolicies",
"SetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<
super::TestIamPermissionsNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NetworkFirewallPolicies/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NetworkFirewallPolicies",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod networks_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The Networks API.
#[derive(Debug, Clone)]
pub struct NetworksClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> NetworksClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> NetworksClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
NetworksClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Adds a peering to the specified network.
pub async fn add_peering(
&mut self,
request: impl tonic::IntoRequest<super::AddPeeringNetworkRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Networks/AddPeering",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Networks", "AddPeering"),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified network.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteNetworkRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Networks/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Networks", "Delete"));
self.inner.unary(req, path, codec).await
}
/// Returns the specified network.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetNetworkRequest>,
) -> std::result::Result<tonic::Response<super::Network>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Networks/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Networks", "Get"));
self.inner.unary(req, path, codec).await
}
/// Returns the effective firewalls on a given network.
pub async fn get_effective_firewalls(
&mut self,
request: impl tonic::IntoRequest<super::GetEffectiveFirewallsNetworkRequest>,
) -> std::result::Result<
tonic::Response<super::NetworksGetEffectiveFirewallsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Networks/GetEffectiveFirewalls",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Networks",
"GetEffectiveFirewalls",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a network in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertNetworkRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Networks/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Networks", "Insert"));
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of networks available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListNetworksRequest>,
) -> std::result::Result<tonic::Response<super::NetworkList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Networks/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Networks", "List"));
self.inner.unary(req, path, codec).await
}
/// Lists the peering routes exchanged over peering connection.
pub async fn list_peering_routes(
&mut self,
request: impl tonic::IntoRequest<super::ListPeeringRoutesNetworksRequest>,
) -> std::result::Result<
tonic::Response<super::ExchangedPeeringRoutesList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Networks/ListPeeringRoutes",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Networks",
"ListPeeringRoutes",
),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified network with the data included in the request. Only the following fields can be modified: routingConfig.routingMode.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchNetworkRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Networks/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Networks", "Patch"));
self.inner.unary(req, path, codec).await
}
/// Removes a peering from the specified network.
pub async fn remove_peering(
&mut self,
request: impl tonic::IntoRequest<super::RemovePeeringNetworkRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Networks/RemovePeering",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Networks", "RemovePeering"),
);
self.inner.unary(req, path, codec).await
}
/// Switches the network mode from auto subnet mode to custom subnet mode.
pub async fn switch_to_custom_mode(
&mut self,
request: impl tonic::IntoRequest<super::SwitchToCustomModeNetworkRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Networks/SwitchToCustomMode",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Networks",
"SwitchToCustomMode",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates the specified network peering with the data included in the request. You can only modify the NetworkPeering.export_custom_routes field and the NetworkPeering.import_custom_routes field.
pub async fn update_peering(
&mut self,
request: impl tonic::IntoRequest<super::UpdatePeeringNetworkRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Networks/UpdatePeering",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Networks", "UpdatePeering"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod node_groups_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The NodeGroups API.
#[derive(Debug, Clone)]
pub struct NodeGroupsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> NodeGroupsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> NodeGroupsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
NodeGroupsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Adds specified number of nodes to the node group.
pub async fn add_nodes(
&mut self,
request: impl tonic::IntoRequest<super::AddNodesNodeGroupRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeGroups/AddNodes",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.NodeGroups", "AddNodes"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListNodeGroupsRequest>,
) -> std::result::Result<
tonic::Response<super::NodeGroupAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeGroups/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NodeGroups",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified NodeGroup resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteNodeGroupRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeGroups/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.NodeGroups", "Delete"));
self.inner.unary(req, path, codec).await
}
/// Deletes specified nodes from the node group.
pub async fn delete_nodes(
&mut self,
request: impl tonic::IntoRequest<super::DeleteNodesNodeGroupRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeGroups/DeleteNodes",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.NodeGroups", "DeleteNodes"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetNodeGroupRequest>,
) -> std::result::Result<tonic::Response<super::NodeGroup>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeGroups/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.NodeGroups", "Get"));
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::GetIamPolicyNodeGroupRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeGroups/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.NodeGroups", "GetIamPolicy"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a NodeGroup resource in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertNodeGroupRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeGroups/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.NodeGroups", "Insert"));
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListNodeGroupsRequest>,
) -> std::result::Result<tonic::Response<super::NodeGroupList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeGroups/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.NodeGroups", "List"));
self.inner.unary(req, path, codec).await
}
/// Lists nodes in the node group.
pub async fn list_nodes(
&mut self,
request: impl tonic::IntoRequest<super::ListNodesNodeGroupsRequest>,
) -> std::result::Result<
tonic::Response<super::NodeGroupsListNodes>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeGroups/ListNodes",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.NodeGroups", "ListNodes"),
);
self.inner.unary(req, path, codec).await
}
/// Updates the specified node group.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchNodeGroupRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeGroups/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.NodeGroups", "Patch"));
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetIamPolicyNodeGroupRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeGroups/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.NodeGroups", "SetIamPolicy"),
);
self.inner.unary(req, path, codec).await
}
/// Updates the node template of the node group.
pub async fn set_node_template(
&mut self,
request: impl tonic::IntoRequest<super::SetNodeTemplateNodeGroupRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeGroups/SetNodeTemplate",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NodeGroups",
"SetNodeTemplate",
),
);
self.inner.unary(req, path, codec).await
}
/// Simulates maintenance event on specified nodes from the node group.
pub async fn simulate_maintenance_event(
&mut self,
request: impl tonic::IntoRequest<
super::SimulateMaintenanceEventNodeGroupRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeGroups/SimulateMaintenanceEvent",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NodeGroups",
"SimulateMaintenanceEvent",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<super::TestIamPermissionsNodeGroupRequest>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeGroups/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NodeGroups",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod node_templates_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The NodeTemplates API.
#[derive(Debug, Clone)]
pub struct NodeTemplatesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> NodeTemplatesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> NodeTemplatesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
NodeTemplatesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of node templates. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListNodeTemplatesRequest>,
) -> std::result::Result<
tonic::Response<super::NodeTemplateAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeTemplates/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NodeTemplates",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified NodeTemplate resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteNodeTemplateRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeTemplates/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.NodeTemplates", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified node template.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetNodeTemplateRequest>,
) -> std::result::Result<tonic::Response<super::NodeTemplate>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeTemplates/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.NodeTemplates", "Get"));
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::GetIamPolicyNodeTemplateRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeTemplates/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NodeTemplates",
"GetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a NodeTemplate resource in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertNodeTemplateRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeTemplates/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.NodeTemplates", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of node templates available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListNodeTemplatesRequest>,
) -> std::result::Result<
tonic::Response<super::NodeTemplateList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeTemplates/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.NodeTemplates", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetIamPolicyNodeTemplateRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeTemplates/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NodeTemplates",
"SetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<
super::TestIamPermissionsNodeTemplateRequest,
>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeTemplates/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NodeTemplates",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod node_types_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The NodeTypes API.
#[derive(Debug, Clone)]
pub struct NodeTypesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> NodeTypesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> NodeTypesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
NodeTypesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of node types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListNodeTypesRequest>,
) -> std::result::Result<
tonic::Response<super::NodeTypeAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeTypes/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.NodeTypes",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified node type.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetNodeTypeRequest>,
) -> std::result::Result<tonic::Response<super::NodeType>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeTypes/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.NodeTypes", "Get"));
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of node types available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListNodeTypesRequest>,
) -> std::result::Result<tonic::Response<super::NodeTypeList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.NodeTypes/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.NodeTypes", "List"));
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod packet_mirrorings_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The PacketMirrorings API.
#[derive(Debug, Clone)]
pub struct PacketMirroringsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> PacketMirroringsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> PacketMirroringsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
PacketMirroringsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of packetMirrorings. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<
super::AggregatedListPacketMirroringsRequest,
>,
) -> std::result::Result<
tonic::Response<super::PacketMirroringAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PacketMirrorings/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.PacketMirrorings",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified PacketMirroring resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeletePacketMirroringRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PacketMirrorings/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.PacketMirrorings", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified PacketMirroring resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetPacketMirroringRequest>,
) -> std::result::Result<
tonic::Response<super::PacketMirroring>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PacketMirrorings/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.PacketMirrorings", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a PacketMirroring resource in the specified project and region using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertPacketMirroringRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PacketMirrorings/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.PacketMirrorings", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of PacketMirroring resources available to the specified project and region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListPacketMirroringsRequest>,
) -> std::result::Result<
tonic::Response<super::PacketMirroringList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PacketMirrorings/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.PacketMirrorings", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified PacketMirroring resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchPacketMirroringRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PacketMirrorings/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.PacketMirrorings", "Patch"),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<
super::TestIamPermissionsPacketMirroringRequest,
>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PacketMirrorings/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.PacketMirrorings",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod projects_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The Projects API.
#[derive(Debug, Clone)]
pub struct ProjectsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> ProjectsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ProjectsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
ProjectsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Disable this project as a shared VPC host project.
pub async fn disable_xpn_host(
&mut self,
request: impl tonic::IntoRequest<super::DisableXpnHostProjectRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Projects/DisableXpnHost",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Projects", "DisableXpnHost"),
);
self.inner.unary(req, path, codec).await
}
/// Disable a service resource (also known as service project) associated with this host project.
pub async fn disable_xpn_resource(
&mut self,
request: impl tonic::IntoRequest<super::DisableXpnResourceProjectRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Projects/DisableXpnResource",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Projects",
"DisableXpnResource",
),
);
self.inner.unary(req, path, codec).await
}
/// Enable this project as a shared VPC host project.
pub async fn enable_xpn_host(
&mut self,
request: impl tonic::IntoRequest<super::EnableXpnHostProjectRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Projects/EnableXpnHost",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Projects", "EnableXpnHost"),
);
self.inner.unary(req, path, codec).await
}
/// Enable service resource (a.k.a service project) for a host project, so that subnets in the host project can be used by instances in the service project.
pub async fn enable_xpn_resource(
&mut self,
request: impl tonic::IntoRequest<super::EnableXpnResourceProjectRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Projects/EnableXpnResource",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Projects",
"EnableXpnResource",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified Project resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetProjectRequest>,
) -> std::result::Result<tonic::Response<super::Project>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Projects/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Projects", "Get"));
self.inner.unary(req, path, codec).await
}
/// Gets the shared VPC host project that this project links to. May be empty if no link exists.
pub async fn get_xpn_host(
&mut self,
request: impl tonic::IntoRequest<super::GetXpnHostProjectRequest>,
) -> std::result::Result<tonic::Response<super::Project>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Projects/GetXpnHost",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Projects", "GetXpnHost"),
);
self.inner.unary(req, path, codec).await
}
/// Gets service resources (a.k.a service project) associated with this host project.
pub async fn get_xpn_resources(
&mut self,
request: impl tonic::IntoRequest<super::GetXpnResourcesProjectsRequest>,
) -> std::result::Result<
tonic::Response<super::ProjectsGetXpnResources>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Projects/GetXpnResources",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Projects",
"GetXpnResources",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists all shared VPC host projects visible to the user in an organization.
pub async fn list_xpn_hosts(
&mut self,
request: impl tonic::IntoRequest<super::ListXpnHostsProjectsRequest>,
) -> std::result::Result<tonic::Response<super::XpnHostList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Projects/ListXpnHosts",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Projects", "ListXpnHosts"),
);
self.inner.unary(req, path, codec).await
}
/// Moves a persistent disk from one zone to another.
pub async fn move_disk(
&mut self,
request: impl tonic::IntoRequest<super::MoveDiskProjectRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Projects/MoveDisk",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Projects", "MoveDisk"));
self.inner.unary(req, path, codec).await
}
/// Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is deprecated. See [moving instance across zones](/compute/docs/instances/moving-instance-across-zones) instead.
pub async fn move_instance(
&mut self,
request: impl tonic::IntoRequest<super::MoveInstanceProjectRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Projects/MoveInstance",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Projects", "MoveInstance"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise for more information.
pub async fn set_cloud_armor_tier(
&mut self,
request: impl tonic::IntoRequest<super::SetCloudArmorTierProjectRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Projects/SetCloudArmorTier",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Projects",
"SetCloudArmorTier",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets metadata common to all instances within the specified project using the data included in the request.
pub async fn set_common_instance_metadata(
&mut self,
request: impl tonic::IntoRequest<
super::SetCommonInstanceMetadataProjectRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Projects/SetCommonInstanceMetadata",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Projects",
"SetCommonInstanceMetadata",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the default network tier of the project. The default network tier is used when an address/forwardingRule/instance is created without specifying the network tier field.
pub async fn set_default_network_tier(
&mut self,
request: impl tonic::IntoRequest<super::SetDefaultNetworkTierProjectRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Projects/SetDefaultNetworkTier",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Projects",
"SetDefaultNetworkTier",
),
);
self.inner.unary(req, path, codec).await
}
/// Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.
pub async fn set_usage_export_bucket(
&mut self,
request: impl tonic::IntoRequest<super::SetUsageExportBucketProjectRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Projects/SetUsageExportBucket",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Projects",
"SetUsageExportBucket",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod public_advertised_prefixes_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The PublicAdvertisedPrefixes API.
#[derive(Debug, Clone)]
pub struct PublicAdvertisedPrefixesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> PublicAdvertisedPrefixesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> PublicAdvertisedPrefixesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
PublicAdvertisedPrefixesClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Announces the specified PublicAdvertisedPrefix
pub async fn announce(
&mut self,
request: impl tonic::IntoRequest<
super::AnnouncePublicAdvertisedPrefixeRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PublicAdvertisedPrefixes/Announce",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.PublicAdvertisedPrefixes",
"Announce",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified PublicAdvertisedPrefix
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeletePublicAdvertisedPrefixeRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PublicAdvertisedPrefixes/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.PublicAdvertisedPrefixes",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified PublicAdvertisedPrefix resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetPublicAdvertisedPrefixeRequest>,
) -> std::result::Result<
tonic::Response<super::PublicAdvertisedPrefix>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PublicAdvertisedPrefixes/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.PublicAdvertisedPrefixes",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a PublicAdvertisedPrefix in the specified project using the parameters that are included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertPublicAdvertisedPrefixeRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PublicAdvertisedPrefixes/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.PublicAdvertisedPrefixes",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists the PublicAdvertisedPrefixes for a project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListPublicAdvertisedPrefixesRequest>,
) -> std::result::Result<
tonic::Response<super::PublicAdvertisedPrefixList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PublicAdvertisedPrefixes/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.PublicAdvertisedPrefixes",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchPublicAdvertisedPrefixeRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PublicAdvertisedPrefixes/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.PublicAdvertisedPrefixes",
"Patch",
),
);
self.inner.unary(req, path, codec).await
}
/// Withdraws the specified PublicAdvertisedPrefix
pub async fn withdraw(
&mut self,
request: impl tonic::IntoRequest<
super::WithdrawPublicAdvertisedPrefixeRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PublicAdvertisedPrefixes/Withdraw",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.PublicAdvertisedPrefixes",
"Withdraw",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod public_delegated_prefixes_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The PublicDelegatedPrefixes API.
#[derive(Debug, Clone)]
pub struct PublicDelegatedPrefixesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> PublicDelegatedPrefixesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> PublicDelegatedPrefixesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
PublicDelegatedPrefixesClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<
super::AggregatedListPublicDelegatedPrefixesRequest,
>,
) -> std::result::Result<
tonic::Response<super::PublicDelegatedPrefixAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PublicDelegatedPrefixes/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.PublicDelegatedPrefixes",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Announces the specified PublicDelegatedPrefix in the given region.
pub async fn announce(
&mut self,
request: impl tonic::IntoRequest<
super::AnnouncePublicDelegatedPrefixeRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PublicDelegatedPrefixes/Announce",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.PublicDelegatedPrefixes",
"Announce",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified PublicDelegatedPrefix in the given region.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeletePublicDelegatedPrefixeRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PublicDelegatedPrefixes/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.PublicDelegatedPrefixes",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified PublicDelegatedPrefix resource in the given region.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetPublicDelegatedPrefixeRequest>,
) -> std::result::Result<
tonic::Response<super::PublicDelegatedPrefix>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PublicDelegatedPrefixes/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.PublicDelegatedPrefixes",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters that are included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertPublicDelegatedPrefixeRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PublicDelegatedPrefixes/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.PublicDelegatedPrefixes",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists the PublicDelegatedPrefixes for a project in the given region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListPublicDelegatedPrefixesRequest>,
) -> std::result::Result<
tonic::Response<super::PublicDelegatedPrefixList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PublicDelegatedPrefixes/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.PublicDelegatedPrefixes",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified PublicDelegatedPrefix resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchPublicDelegatedPrefixeRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PublicDelegatedPrefixes/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.PublicDelegatedPrefixes",
"Patch",
),
);
self.inner.unary(req, path, codec).await
}
/// Withdraws the specified PublicDelegatedPrefix in the given region.
pub async fn withdraw(
&mut self,
request: impl tonic::IntoRequest<
super::WithdrawPublicDelegatedPrefixeRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.PublicDelegatedPrefixes/Withdraw",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.PublicDelegatedPrefixes",
"Withdraw",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_autoscalers_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionAutoscalers API.
#[derive(Debug, Clone)]
pub struct RegionAutoscalersClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionAutoscalersClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionAutoscalersClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionAutoscalersClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified autoscaler.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteRegionAutoscalerRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionAutoscalers/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionAutoscalers",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified autoscaler.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionAutoscalerRequest>,
) -> std::result::Result<tonic::Response<super::Autoscaler>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionAutoscalers/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionAutoscalers", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Creates an autoscaler in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertRegionAutoscalerRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionAutoscalers/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionAutoscalers",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of autoscalers contained within the specified region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionAutoscalersRequest>,
) -> std::result::Result<
tonic::Response<super::RegionAutoscalerList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionAutoscalers/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionAutoscalers", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchRegionAutoscalerRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionAutoscalers/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionAutoscalers", "Patch"),
);
self.inner.unary(req, path, codec).await
}
/// Updates an autoscaler in the specified project using the data included in the request.
pub async fn update(
&mut self,
request: impl tonic::IntoRequest<super::UpdateRegionAutoscalerRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionAutoscalers/Update",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionAutoscalers",
"Update",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_backend_services_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionBackendServices API.
#[derive(Debug, Clone)]
pub struct RegionBackendServicesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionBackendServicesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionBackendServicesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionBackendServicesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified regional BackendService resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteRegionBackendServiceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionBackendServices/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionBackendServices",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified regional BackendService resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionBackendServiceRequest>,
) -> std::result::Result<tonic::Response<super::BackendService>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionBackendServices/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionBackendServices",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Gets the most recent health check results for this regional BackendService.
pub async fn get_health(
&mut self,
request: impl tonic::IntoRequest<super::GetHealthRegionBackendServiceRequest>,
) -> std::result::Result<
tonic::Response<super::BackendServiceGroupHealth>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionBackendServices/GetHealth",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionBackendServices",
"GetHealth",
),
);
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<
super::GetIamPolicyRegionBackendServiceRequest,
>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionBackendServices/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionBackendServices",
"GetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a regional BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertRegionBackendServiceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionBackendServices/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionBackendServices",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of regional BackendService resources available to the specified project in the given region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionBackendServicesRequest>,
) -> std::result::Result<
tonic::Response<super::BackendServiceList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionBackendServices/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionBackendServices",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves an aggregated list of all usable backend services in the specified project in the given region.
pub async fn list_usable(
&mut self,
request: impl tonic::IntoRequest<
super::ListUsableRegionBackendServicesRequest,
>,
) -> std::result::Result<
tonic::Response<super::BackendServiceListUsable>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionBackendServices/ListUsable",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionBackendServices",
"ListUsable",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates the specified regional BackendService resource with the data included in the request. For more information, see Understanding backend services This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchRegionBackendServiceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionBackendServices/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionBackendServices",
"Patch",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<
super::SetIamPolicyRegionBackendServiceRequest,
>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionBackendServices/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionBackendServices",
"SetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview
pub async fn set_security_policy(
&mut self,
request: impl tonic::IntoRequest<
super::SetSecurityPolicyRegionBackendServiceRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionBackendServices/SetSecurityPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionBackendServices",
"SetSecurityPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<
super::TestIamPermissionsRegionBackendServiceRequest,
>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionBackendServices/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionBackendServices",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates the specified regional BackendService resource with the data included in the request. For more information, see Backend services overview .
pub async fn update(
&mut self,
request: impl tonic::IntoRequest<super::UpdateRegionBackendServiceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionBackendServices/Update",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionBackendServices",
"Update",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_commitments_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionCommitments API.
#[derive(Debug, Clone)]
pub struct RegionCommitmentsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionCommitmentsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionCommitmentsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionCommitmentsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of commitments by region. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<
super::AggregatedListRegionCommitmentsRequest,
>,
) -> std::result::Result<
tonic::Response<super::CommitmentAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionCommitments/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionCommitments",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified commitment resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionCommitmentRequest>,
) -> std::result::Result<tonic::Response<super::Commitment>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionCommitments/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionCommitments", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a commitment in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertRegionCommitmentRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionCommitments/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionCommitments",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of commitments contained within the specified region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionCommitmentsRequest>,
) -> std::result::Result<tonic::Response<super::CommitmentList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionCommitments/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionCommitments", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Updates the specified commitment with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: auto_renew.
pub async fn update(
&mut self,
request: impl tonic::IntoRequest<super::UpdateRegionCommitmentRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionCommitments/Update",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionCommitments",
"Update",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_disk_types_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionDiskTypes API.
#[derive(Debug, Clone)]
pub struct RegionDiskTypesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionDiskTypesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionDiskTypesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionDiskTypesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Returns the specified regional disk type.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionDiskTypeRequest>,
) -> std::result::Result<tonic::Response<super::DiskType>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionDiskTypes/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionDiskTypes", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of regional disk types available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionDiskTypesRequest>,
) -> std::result::Result<
tonic::Response<super::RegionDiskTypeList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionDiskTypes/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionDiskTypes", "List"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_disks_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionDisks API.
#[derive(Debug, Clone)]
pub struct RegionDisksClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionDisksClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionDisksClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionDisksClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Adds existing resource policies to a regional disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation.
pub async fn add_resource_policies(
&mut self,
request: impl tonic::IntoRequest<super::AddResourcePoliciesRegionDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionDisks/AddResourcePolicies",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionDisks",
"AddResourcePolicies",
),
);
self.inner.unary(req, path, codec).await
}
/// Bulk create a set of disks.
pub async fn bulk_insert(
&mut self,
request: impl tonic::IntoRequest<super::BulkInsertRegionDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionDisks/BulkInsert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionDisks", "BulkInsert"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project.
pub async fn create_snapshot(
&mut self,
request: impl tonic::IntoRequest<super::CreateSnapshotRegionDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionDisks/CreateSnapshot",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionDisks",
"CreateSnapshot",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteRegionDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionDisks/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionDisks", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Returns a specified regional persistent disk.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionDiskRequest>,
) -> std::result::Result<tonic::Response<super::Disk>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionDisks/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.RegionDisks", "Get"));
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::GetIamPolicyRegionDiskRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionDisks/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionDisks",
"GetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a persistent regional disk in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertRegionDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionDisks/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionDisks", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of persistent disks contained within the specified region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionDisksRequest>,
) -> std::result::Result<tonic::Response<super::DiskList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionDisks/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.RegionDisks", "List"));
self.inner.unary(req, path, codec).await
}
/// Removes resource policies from a regional disk.
pub async fn remove_resource_policies(
&mut self,
request: impl tonic::IntoRequest<
super::RemoveResourcePoliciesRegionDiskRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionDisks/RemoveResourcePolicies",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionDisks",
"RemoveResourcePolicies",
),
);
self.inner.unary(req, path, codec).await
}
/// Resizes the specified regional persistent disk.
pub async fn resize(
&mut self,
request: impl tonic::IntoRequest<super::ResizeRegionDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionDisks/Resize",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionDisks", "Resize"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetIamPolicyRegionDiskRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionDisks/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionDisks",
"SetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the labels on the target regional disk.
pub async fn set_labels(
&mut self,
request: impl tonic::IntoRequest<super::SetLabelsRegionDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionDisks/SetLabels",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionDisks", "SetLabels"),
);
self.inner.unary(req, path, codec).await
}
/// Starts asynchronous replication. Must be invoked on the primary disk.
pub async fn start_async_replication(
&mut self,
request: impl tonic::IntoRequest<
super::StartAsyncReplicationRegionDiskRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionDisks/StartAsyncReplication",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionDisks",
"StartAsyncReplication",
),
);
self.inner.unary(req, path, codec).await
}
/// Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk.
pub async fn stop_async_replication(
&mut self,
request: impl tonic::IntoRequest<
super::StopAsyncReplicationRegionDiskRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionDisks/StopAsyncReplication",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionDisks",
"StopAsyncReplication",
),
);
self.inner.unary(req, path, codec).await
}
/// Stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope.
pub async fn stop_group_async_replication(
&mut self,
request: impl tonic::IntoRequest<
super::StopGroupAsyncReplicationRegionDiskRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionDisks/StopGroupAsyncReplication",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionDisks",
"StopGroupAsyncReplication",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<super::TestIamPermissionsRegionDiskRequest>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionDisks/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionDisks",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
/// Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license.
pub async fn update(
&mut self,
request: impl tonic::IntoRequest<super::UpdateRegionDiskRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionDisks/Update",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionDisks", "Update"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_health_check_services_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionHealthCheckServices API.
#[derive(Debug, Clone)]
pub struct RegionHealthCheckServicesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionHealthCheckServicesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionHealthCheckServicesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionHealthCheckServicesClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified regional HealthCheckService.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<
super::DeleteRegionHealthCheckServiceRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionHealthCheckServices/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionHealthCheckServices",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified regional HealthCheckService resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionHealthCheckServiceRequest>,
) -> std::result::Result<
tonic::Response<super::HealthCheckService>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionHealthCheckServices/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionHealthCheckServices",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a regional HealthCheckService resource in the specified project and region using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<
super::InsertRegionHealthCheckServiceRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionHealthCheckServices/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionHealthCheckServices",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists all the HealthCheckService resources that have been configured for the specified project in the given region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionHealthCheckServicesRequest>,
) -> std::result::Result<
tonic::Response<super::HealthCheckServicesList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionHealthCheckServices/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionHealthCheckServices",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates the specified regional HealthCheckService resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchRegionHealthCheckServiceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionHealthCheckServices/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionHealthCheckServices",
"Patch",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_health_checks_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionHealthChecks API.
#[derive(Debug, Clone)]
pub struct RegionHealthChecksClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionHealthChecksClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionHealthChecksClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionHealthChecksClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified HealthCheck resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteRegionHealthCheckRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionHealthChecks/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionHealthChecks",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified HealthCheck resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionHealthCheckRequest>,
) -> std::result::Result<tonic::Response<super::HealthCheck>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionHealthChecks/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionHealthChecks", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a HealthCheck resource in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertRegionHealthCheckRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionHealthChecks/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionHealthChecks",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of HealthCheck resources available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionHealthChecksRequest>,
) -> std::result::Result<
tonic::Response<super::HealthCheckList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionHealthChecks/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionHealthChecks", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchRegionHealthCheckRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionHealthChecks/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionHealthChecks",
"Patch",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates a HealthCheck resource in the specified project using the data included in the request.
pub async fn update(
&mut self,
request: impl tonic::IntoRequest<super::UpdateRegionHealthCheckRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionHealthChecks/Update",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionHealthChecks",
"Update",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_instance_group_managers_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionInstanceGroupManagers API.
#[derive(Debug, Clone)]
pub struct RegionInstanceGroupManagersClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionInstanceGroupManagersClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionInstanceGroupManagersClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionInstanceGroupManagersClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Flags the specified instances to be immediately removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.
pub async fn abandon_instances(
&mut self,
request: impl tonic::IntoRequest<
super::AbandonInstancesRegionInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroupManagers/AbandonInstances",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroupManagers",
"AbandonInstances",
),
);
self.inner.unary(req, path, codec).await
}
/// Apply updates to selected instances the managed instance group.
pub async fn apply_updates_to_instances(
&mut self,
request: impl tonic::IntoRequest<
super::ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroupManagers/ApplyUpdatesToInstances",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroupManagers",
"ApplyUpdatesToInstances",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates instances with per-instance configurations in this regional managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of the creating or actions with the listmanagedinstances method.
pub async fn create_instances(
&mut self,
request: impl tonic::IntoRequest<
super::CreateInstancesRegionInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroupManagers/CreateInstances",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroupManagers",
"CreateInstances",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified managed instance group and all of the instances in that group.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<
super::DeleteRegionInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroupManagers/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroupManagers",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Flags the specified instances in the managed instance group to be immediately deleted. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. The deleteInstances operation is marked DONE if the deleteInstances request is successful. The underlying actions take additional time. You must separately verify the status of the deleting action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.
pub async fn delete_instances(
&mut self,
request: impl tonic::IntoRequest<
super::DeleteInstancesRegionInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroupManagers/DeleteInstances",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroupManagers",
"DeleteInstances",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes selected per-instance configurations for the managed instance group.
pub async fn delete_per_instance_configs(
&mut self,
request: impl tonic::IntoRequest<
super::DeletePerInstanceConfigsRegionInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroupManagers/DeletePerInstanceConfigs",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroupManagers",
"DeletePerInstanceConfigs",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns all of the details about the specified managed instance group.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionInstanceGroupManagerRequest>,
) -> std::result::Result<
tonic::Response<super::InstanceGroupManager>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroupManagers/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroupManagers",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method. A regional managed instance group can contain up to 2000 instances.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<
super::InsertRegionInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroupManagers/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroupManagers",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of managed instance groups that are contained within the specified region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<
super::ListRegionInstanceGroupManagersRequest,
>,
) -> std::result::Result<
tonic::Response<super::RegionInstanceGroupManagerList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroupManagers/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroupManagers",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists all errors thrown by actions on instances for a given regional managed instance group. The filter and orderBy query parameters are not supported.
pub async fn list_errors(
&mut self,
request: impl tonic::IntoRequest<
super::ListErrorsRegionInstanceGroupManagersRequest,
>,
) -> std::result::Result<
tonic::Response<super::RegionInstanceGroupManagersListErrorsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroupManagers/ListErrors",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroupManagers",
"ListErrors",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.
pub async fn list_managed_instances(
&mut self,
request: impl tonic::IntoRequest<
super::ListManagedInstancesRegionInstanceGroupManagersRequest,
>,
) -> std::result::Result<
tonic::Response<super::RegionInstanceGroupManagersListInstancesResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroupManagers/ListManagedInstances",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroupManagers",
"ListManagedInstances",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists all of the per-instance configurations defined for the managed instance group. The orderBy query parameter is not supported.
pub async fn list_per_instance_configs(
&mut self,
request: impl tonic::IntoRequest<
super::ListPerInstanceConfigsRegionInstanceGroupManagersRequest,
>,
) -> std::result::Result<
tonic::Response<super::RegionInstanceGroupManagersListInstanceConfigsResp>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroupManagers/ListPerInstanceConfigs",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroupManagers",
"ListPerInstanceConfigs",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listmanagedinstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<
super::PatchRegionInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroupManagers/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroupManagers",
"Patch",
),
);
self.inner.unary(req, path, codec).await
}
/// Inserts or patches per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.
pub async fn patch_per_instance_configs(
&mut self,
request: impl tonic::IntoRequest<
super::PatchPerInstanceConfigsRegionInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroupManagers/PatchPerInstanceConfigs",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroupManagers",
"PatchPerInstanceConfigs",
),
);
self.inner.unary(req, path, codec).await
}
/// Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.
pub async fn recreate_instances(
&mut self,
request: impl tonic::IntoRequest<
super::RecreateInstancesRegionInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroupManagers/RecreateInstances",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroupManagers",
"RecreateInstances",
),
);
self.inner.unary(req, path, codec).await
}
/// Changes the intended size of the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances. The resize operation is marked DONE if the resize request is successful. The underlying actions take additional time. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.
pub async fn resize(
&mut self,
request: impl tonic::IntoRequest<
super::ResizeRegionInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroupManagers/Resize",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroupManagers",
"Resize",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the instance template to use when creating new instances or recreating instances in this group. Existing instances are not affected.
pub async fn set_instance_template(
&mut self,
request: impl tonic::IntoRequest<
super::SetInstanceTemplateRegionInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroupManagers/SetInstanceTemplate",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroupManagers",
"SetInstanceTemplate",
),
);
self.inner.unary(req, path, codec).await
}
/// Modifies the target pools to which all new instances in this group are assigned. Existing instances in the group are not affected.
pub async fn set_target_pools(
&mut self,
request: impl tonic::IntoRequest<
super::SetTargetPoolsRegionInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroupManagers/SetTargetPools",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroupManagers",
"SetTargetPools",
),
);
self.inner.unary(req, path, codec).await
}
/// Inserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.
pub async fn update_per_instance_configs(
&mut self,
request: impl tonic::IntoRequest<
super::UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroupManagers/UpdatePerInstanceConfigs",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroupManagers",
"UpdatePerInstanceConfigs",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_instance_groups_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionInstanceGroups API.
#[derive(Debug, Clone)]
pub struct RegionInstanceGroupsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionInstanceGroupsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionInstanceGroupsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionInstanceGroupsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Returns the specified instance group resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionInstanceGroupRequest>,
) -> std::result::Result<tonic::Response<super::InstanceGroup>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroups/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroups",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of instance group resources contained within the specified region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionInstanceGroupsRequest>,
) -> std::result::Result<
tonic::Response<super::RegionInstanceGroupList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroups/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroups",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists the instances in the specified instance group and displays information about the named ports. Depending on the specified options, this method can list all instances or only the instances that are running. The orderBy query parameter is not supported.
pub async fn list_instances(
&mut self,
request: impl tonic::IntoRequest<
super::ListInstancesRegionInstanceGroupsRequest,
>,
) -> std::result::Result<
tonic::Response<super::RegionInstanceGroupsListInstances>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroups/ListInstances",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroups",
"ListInstances",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the named ports for the specified regional instance group.
pub async fn set_named_ports(
&mut self,
request: impl tonic::IntoRequest<
super::SetNamedPortsRegionInstanceGroupRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceGroups/SetNamedPorts",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceGroups",
"SetNamedPorts",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_instance_templates_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionInstanceTemplates API.
#[derive(Debug, Clone)]
pub struct RegionInstanceTemplatesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionInstanceTemplatesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionInstanceTemplatesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionInstanceTemplatesClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteRegionInstanceTemplateRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceTemplates/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceTemplates",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified instance template.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionInstanceTemplateRequest>,
) -> std::result::Result<
tonic::Response<super::InstanceTemplate>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceTemplates/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceTemplates",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates an instance template in the specified project and region using the global instance template whose URL is included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertRegionInstanceTemplateRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceTemplates/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceTemplates",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of instance templates that are contained within the specified project and region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionInstanceTemplatesRequest>,
) -> std::result::Result<
tonic::Response<super::InstanceTemplateList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstanceTemplates/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstanceTemplates",
"List",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_instances_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionInstances API.
#[derive(Debug, Clone)]
pub struct RegionInstancesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionInstancesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionInstancesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionInstancesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Creates multiple instances in a given region. Count specifies the number of instances to create.
pub async fn bulk_insert(
&mut self,
request: impl tonic::IntoRequest<super::BulkInsertRegionInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstances/BulkInsert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstances",
"BulkInsert",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_instant_snapshots_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionInstantSnapshots API.
#[derive(Debug, Clone)]
pub struct RegionInstantSnapshotsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionInstantSnapshotsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionInstantSnapshotsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionInstantSnapshotsClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteRegionInstantSnapshotRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstantSnapshots/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstantSnapshots",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified InstantSnapshot resource in the specified region.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionInstantSnapshotRequest>,
) -> std::result::Result<
tonic::Response<super::InstantSnapshot>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstantSnapshots/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstantSnapshots",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<
super::GetIamPolicyRegionInstantSnapshotRequest,
>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstantSnapshots/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstantSnapshots",
"GetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates an instant snapshot in the specified region.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertRegionInstantSnapshotRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstantSnapshots/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstantSnapshots",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of InstantSnapshot resources contained within the specified region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionInstantSnapshotsRequest>,
) -> std::result::Result<
tonic::Response<super::InstantSnapshotList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstantSnapshots/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstantSnapshots",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<
super::SetIamPolicyRegionInstantSnapshotRequest,
>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstantSnapshots/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstantSnapshots",
"SetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the labels on a instantSnapshot in the given region. To learn more about labels, read the Labeling Resources documentation.
pub async fn set_labels(
&mut self,
request: impl tonic::IntoRequest<
super::SetLabelsRegionInstantSnapshotRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstantSnapshots/SetLabels",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstantSnapshots",
"SetLabels",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<
super::TestIamPermissionsRegionInstantSnapshotRequest,
>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionInstantSnapshots/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionInstantSnapshots",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_network_endpoint_groups_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionNetworkEndpointGroups API.
#[derive(Debug, Clone)]
pub struct RegionNetworkEndpointGroupsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionNetworkEndpointGroupsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionNetworkEndpointGroupsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionNetworkEndpointGroupsClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Attach a list of network endpoints to the specified network endpoint group.
pub async fn attach_network_endpoints(
&mut self,
request: impl tonic::IntoRequest<
super::AttachNetworkEndpointsRegionNetworkEndpointGroupRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkEndpointGroups/AttachNetworkEndpoints",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkEndpointGroups",
"AttachNetworkEndpoints",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified network endpoint group. Note that the NEG cannot be deleted if it is configured as a backend of a backend service.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<
super::DeleteRegionNetworkEndpointGroupRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkEndpointGroups/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkEndpointGroups",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Detach the network endpoint from the specified network endpoint group.
pub async fn detach_network_endpoints(
&mut self,
request: impl tonic::IntoRequest<
super::DetachNetworkEndpointsRegionNetworkEndpointGroupRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkEndpointGroups/DetachNetworkEndpoints",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkEndpointGroups",
"DetachNetworkEndpoints",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified network endpoint group.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionNetworkEndpointGroupRequest>,
) -> std::result::Result<
tonic::Response<super::NetworkEndpointGroup>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkEndpointGroups/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkEndpointGroups",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a network endpoint group in the specified project using the parameters that are included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<
super::InsertRegionNetworkEndpointGroupRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkEndpointGroups/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkEndpointGroups",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of regional network endpoint groups available to the specified project in the given region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<
super::ListRegionNetworkEndpointGroupsRequest,
>,
) -> std::result::Result<
tonic::Response<super::NetworkEndpointGroupList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkEndpointGroups/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkEndpointGroups",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists the network endpoints in the specified network endpoint group.
pub async fn list_network_endpoints(
&mut self,
request: impl tonic::IntoRequest<
super::ListNetworkEndpointsRegionNetworkEndpointGroupsRequest,
>,
) -> std::result::Result<
tonic::Response<super::NetworkEndpointGroupsListNetworkEndpoints>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkEndpointGroups/ListNetworkEndpoints",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkEndpointGroups",
"ListNetworkEndpoints",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_network_firewall_policies_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionNetworkFirewallPolicies API.
#[derive(Debug, Clone)]
pub struct RegionNetworkFirewallPoliciesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionNetworkFirewallPoliciesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionNetworkFirewallPoliciesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionNetworkFirewallPoliciesClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Inserts an association for the specified network firewall policy.
pub async fn add_association(
&mut self,
request: impl tonic::IntoRequest<
super::AddAssociationRegionNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkFirewallPolicies/AddAssociation",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkFirewallPolicies",
"AddAssociation",
),
);
self.inner.unary(req, path, codec).await
}
/// Inserts a rule into a network firewall policy.
pub async fn add_rule(
&mut self,
request: impl tonic::IntoRequest<
super::AddRuleRegionNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkFirewallPolicies/AddRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkFirewallPolicies",
"AddRule",
),
);
self.inner.unary(req, path, codec).await
}
/// Copies rules to the specified network firewall policy.
pub async fn clone_rules(
&mut self,
request: impl tonic::IntoRequest<
super::CloneRulesRegionNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkFirewallPolicies/CloneRules",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkFirewallPolicies",
"CloneRules",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified network firewall policy.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<
super::DeleteRegionNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkFirewallPolicies/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkFirewallPolicies",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified network firewall policy.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<
super::GetRegionNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::FirewallPolicy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkFirewallPolicies/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkFirewallPolicies",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Gets an association with the specified name.
pub async fn get_association(
&mut self,
request: impl tonic::IntoRequest<
super::GetAssociationRegionNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<
tonic::Response<super::FirewallPolicyAssociation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkFirewallPolicies/GetAssociation",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkFirewallPolicies",
"GetAssociation",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the effective firewalls on a given network.
pub async fn get_effective_firewalls(
&mut self,
request: impl tonic::IntoRequest<
super::GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<
tonic::Response<
super::RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse,
>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkFirewallPolicies/GetEffectiveFirewalls",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkFirewallPolicies",
"GetEffectiveFirewalls",
),
);
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<
super::GetIamPolicyRegionNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkFirewallPolicies/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkFirewallPolicies",
"GetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Gets a rule of the specified priority.
pub async fn get_rule(
&mut self,
request: impl tonic::IntoRequest<
super::GetRuleRegionNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<
tonic::Response<super::FirewallPolicyRule>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkFirewallPolicies/GetRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkFirewallPolicies",
"GetRule",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a new network firewall policy in the specified project and region.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<
super::InsertRegionNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkFirewallPolicies/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkFirewallPolicies",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists all the network firewall policies that have been configured for the specified project in the given region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<
super::ListRegionNetworkFirewallPoliciesRequest,
>,
) -> std::result::Result<
tonic::Response<super::FirewallPolicyList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkFirewallPolicies/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkFirewallPolicies",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified network firewall policy.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<
super::PatchRegionNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkFirewallPolicies/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkFirewallPolicies",
"Patch",
),
);
self.inner.unary(req, path, codec).await
}
/// Patches a rule of the specified priority.
pub async fn patch_rule(
&mut self,
request: impl tonic::IntoRequest<
super::PatchRuleRegionNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkFirewallPolicies/PatchRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkFirewallPolicies",
"PatchRule",
),
);
self.inner.unary(req, path, codec).await
}
/// Removes an association for the specified network firewall policy.
pub async fn remove_association(
&mut self,
request: impl tonic::IntoRequest<
super::RemoveAssociationRegionNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkFirewallPolicies/RemoveAssociation",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkFirewallPolicies",
"RemoveAssociation",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes a rule of the specified priority.
pub async fn remove_rule(
&mut self,
request: impl tonic::IntoRequest<
super::RemoveRuleRegionNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkFirewallPolicies/RemoveRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkFirewallPolicies",
"RemoveRule",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<
super::SetIamPolicyRegionNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkFirewallPolicies/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkFirewallPolicies",
"SetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<
super::TestIamPermissionsRegionNetworkFirewallPolicyRequest,
>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNetworkFirewallPolicies/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNetworkFirewallPolicies",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_notification_endpoints_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionNotificationEndpoints API.
#[derive(Debug, Clone)]
pub struct RegionNotificationEndpointsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionNotificationEndpointsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionNotificationEndpointsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionNotificationEndpointsClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified NotificationEndpoint in the given region
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<
super::DeleteRegionNotificationEndpointRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNotificationEndpoints/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNotificationEndpoints",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified NotificationEndpoint resource in the given region.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionNotificationEndpointRequest>,
) -> std::result::Result<
tonic::Response<super::NotificationEndpoint>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNotificationEndpoints/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNotificationEndpoints",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Create a NotificationEndpoint in the specified project in the given region using the parameters that are included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<
super::InsertRegionNotificationEndpointRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNotificationEndpoints/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNotificationEndpoints",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists the NotificationEndpoints for a project in the given region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<
super::ListRegionNotificationEndpointsRequest,
>,
) -> std::result::Result<
tonic::Response<super::NotificationEndpointList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionNotificationEndpoints/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionNotificationEndpoints",
"List",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_operations_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionOperations API.
#[derive(Debug, Clone)]
pub struct RegionOperationsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionOperationsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionOperationsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionOperationsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified region-specific Operations resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteRegionOperationRequest>,
) -> std::result::Result<
tonic::Response<super::DeleteRegionOperationResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionOperations/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionOperations", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the specified region-specific Operations resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionOperationRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionOperations/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionOperations", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of Operation resources contained within the specified region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionOperationsRequest>,
) -> std::result::Result<tonic::Response<super::OperationList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionOperations/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionOperations", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`.
pub async fn wait(
&mut self,
request: impl tonic::IntoRequest<super::WaitRegionOperationRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionOperations/Wait",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionOperations", "Wait"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_security_policies_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionSecurityPolicies API.
#[derive(Debug, Clone)]
pub struct RegionSecurityPoliciesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionSecurityPoliciesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionSecurityPoliciesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionSecurityPoliciesClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Inserts a rule into a security policy.
pub async fn add_rule(
&mut self,
request: impl tonic::IntoRequest<super::AddRuleRegionSecurityPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionSecurityPolicies/AddRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionSecurityPolicies",
"AddRule",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified policy.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteRegionSecurityPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionSecurityPolicies/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionSecurityPolicies",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// List all of the ordered rules present in a single specified policy.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionSecurityPolicyRequest>,
) -> std::result::Result<tonic::Response<super::SecurityPolicy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionSecurityPolicies/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionSecurityPolicies",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Gets a rule at the specified priority.
pub async fn get_rule(
&mut self,
request: impl tonic::IntoRequest<super::GetRuleRegionSecurityPolicyRequest>,
) -> std::result::Result<
tonic::Response<super::SecurityPolicyRule>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionSecurityPolicies/GetRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionSecurityPolicies",
"GetRule",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a new policy in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertRegionSecurityPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionSecurityPolicies/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionSecurityPolicies",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// List all the policies that have been configured for the specified project and region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionSecurityPoliciesRequest>,
) -> std::result::Result<
tonic::Response<super::SecurityPolicyList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionSecurityPolicies/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionSecurityPolicies",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchRegionSecurityPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionSecurityPolicies/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionSecurityPolicies",
"Patch",
),
);
self.inner.unary(req, path, codec).await
}
/// Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.
pub async fn patch_rule(
&mut self,
request: impl tonic::IntoRequest<super::PatchRuleRegionSecurityPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionSecurityPolicies/PatchRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionSecurityPolicies",
"PatchRule",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes a rule at the specified priority.
pub async fn remove_rule(
&mut self,
request: impl tonic::IntoRequest<
super::RemoveRuleRegionSecurityPolicyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionSecurityPolicies/RemoveRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionSecurityPolicies",
"RemoveRule",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_ssl_certificates_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionSslCertificates API.
#[derive(Debug, Clone)]
pub struct RegionSslCertificatesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionSslCertificatesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionSslCertificatesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionSslCertificatesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified SslCertificate resource in the region.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteRegionSslCertificateRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionSslCertificates/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionSslCertificates",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified SslCertificate resource in the specified region. Get a list of available SSL certificates by making a list() request.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionSslCertificateRequest>,
) -> std::result::Result<tonic::Response<super::SslCertificate>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionSslCertificates/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionSslCertificates",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a SslCertificate resource in the specified project and region using the data included in the request
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertRegionSslCertificateRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionSslCertificates/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionSslCertificates",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of SslCertificate resources available to the specified project in the specified region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionSslCertificatesRequest>,
) -> std::result::Result<
tonic::Response<super::SslCertificateList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionSslCertificates/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionSslCertificates",
"List",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_ssl_policies_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionSslPolicies API.
#[derive(Debug, Clone)]
pub struct RegionSslPoliciesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionSslPoliciesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionSslPoliciesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionSslPoliciesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteRegionSslPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionSslPolicies/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionSslPolicies",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists all of the ordered rules present in a single specified policy.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionSslPolicyRequest>,
) -> std::result::Result<tonic::Response<super::SslPolicy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionSslPolicies/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionSslPolicies", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a new policy in the specified project and region using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertRegionSslPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionSslPolicies/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionSslPolicies",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists all the SSL policies that have been configured for the specified project and region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionSslPoliciesRequest>,
) -> std::result::Result<
tonic::Response<super::SslPoliciesList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionSslPolicies/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionSslPolicies", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Lists all features that can be specified in the SSL policy when using custom profile.
pub async fn list_available_features(
&mut self,
request: impl tonic::IntoRequest<
super::ListAvailableFeaturesRegionSslPoliciesRequest,
>,
) -> std::result::Result<
tonic::Response<super::SslPoliciesListAvailableFeaturesResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionSslPolicies/ListAvailableFeatures",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionSslPolicies",
"ListAvailableFeatures",
),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified SSL policy with the data included in the request.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchRegionSslPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionSslPolicies/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionSslPolicies", "Patch"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_target_http_proxies_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionTargetHttpProxies API.
#[derive(Debug, Clone)]
pub struct RegionTargetHttpProxiesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionTargetHttpProxiesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionTargetHttpProxiesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionTargetHttpProxiesClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified TargetHttpProxy resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteRegionTargetHttpProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionTargetHttpProxies/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionTargetHttpProxies",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified TargetHttpProxy resource in the specified region.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionTargetHttpProxyRequest>,
) -> std::result::Result<
tonic::Response<super::TargetHttpProxy>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionTargetHttpProxies/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionTargetHttpProxies",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a TargetHttpProxy resource in the specified project and region using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertRegionTargetHttpProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionTargetHttpProxies/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionTargetHttpProxies",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of TargetHttpProxy resources available to the specified project in the specified region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionTargetHttpProxiesRequest>,
) -> std::result::Result<
tonic::Response<super::TargetHttpProxyList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionTargetHttpProxies/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionTargetHttpProxies",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Changes the URL map for TargetHttpProxy.
pub async fn set_url_map(
&mut self,
request: impl tonic::IntoRequest<
super::SetUrlMapRegionTargetHttpProxyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionTargetHttpProxies/SetUrlMap",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionTargetHttpProxies",
"SetUrlMap",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_target_https_proxies_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionTargetHttpsProxies API.
#[derive(Debug, Clone)]
pub struct RegionTargetHttpsProxiesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionTargetHttpsProxiesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionTargetHttpsProxiesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionTargetHttpsProxiesClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified TargetHttpsProxy resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteRegionTargetHttpsProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionTargetHttpsProxies/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionTargetHttpsProxies",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified TargetHttpsProxy resource in the specified region.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionTargetHttpsProxyRequest>,
) -> std::result::Result<
tonic::Response<super::TargetHttpsProxy>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionTargetHttpsProxies/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionTargetHttpsProxies",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a TargetHttpsProxy resource in the specified project and region using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertRegionTargetHttpsProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionTargetHttpsProxies/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionTargetHttpsProxies",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of TargetHttpsProxy resources available to the specified project in the specified region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionTargetHttpsProxiesRequest>,
) -> std::result::Result<
tonic::Response<super::TargetHttpsProxyList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionTargetHttpsProxies/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionTargetHttpsProxies",
"List",
),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified regional TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchRegionTargetHttpsProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionTargetHttpsProxies/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionTargetHttpsProxies",
"Patch",
),
);
self.inner.unary(req, path, codec).await
}
/// Replaces SslCertificates for TargetHttpsProxy.
pub async fn set_ssl_certificates(
&mut self,
request: impl tonic::IntoRequest<
super::SetSslCertificatesRegionTargetHttpsProxyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionTargetHttpsProxies/SetSslCertificates",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionTargetHttpsProxies",
"SetSslCertificates",
),
);
self.inner.unary(req, path, codec).await
}
/// Changes the URL map for TargetHttpsProxy.
pub async fn set_url_map(
&mut self,
request: impl tonic::IntoRequest<
super::SetUrlMapRegionTargetHttpsProxyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionTargetHttpsProxies/SetUrlMap",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionTargetHttpsProxies",
"SetUrlMap",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_target_tcp_proxies_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionTargetTcpProxies API.
#[derive(Debug, Clone)]
pub struct RegionTargetTcpProxiesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionTargetTcpProxiesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionTargetTcpProxiesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionTargetTcpProxiesClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified TargetTcpProxy resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteRegionTargetTcpProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionTargetTcpProxies/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionTargetTcpProxies",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified TargetTcpProxy resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionTargetTcpProxyRequest>,
) -> std::result::Result<tonic::Response<super::TargetTcpProxy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionTargetTcpProxies/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionTargetTcpProxies",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a TargetTcpProxy resource in the specified project and region using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertRegionTargetTcpProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionTargetTcpProxies/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionTargetTcpProxies",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of TargetTcpProxy resources available to the specified project in a given region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionTargetTcpProxiesRequest>,
) -> std::result::Result<
tonic::Response<super::TargetTcpProxyList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionTargetTcpProxies/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.RegionTargetTcpProxies",
"List",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_url_maps_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionUrlMaps API.
#[derive(Debug, Clone)]
pub struct RegionUrlMapsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionUrlMapsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionUrlMapsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionUrlMapsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified UrlMap resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteRegionUrlMapRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionUrlMaps/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionUrlMaps", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified UrlMap resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionUrlMapRequest>,
) -> std::result::Result<tonic::Response<super::UrlMap>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionUrlMaps/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.RegionUrlMaps", "Get"));
self.inner.unary(req, path, codec).await
}
/// Creates a UrlMap resource in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertRegionUrlMapRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionUrlMaps/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionUrlMaps", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of UrlMap resources available to the specified project in the specified region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionUrlMapsRequest>,
) -> std::result::Result<tonic::Response<super::UrlMapList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionUrlMaps/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionUrlMaps", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchRegionUrlMapRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionUrlMaps/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionUrlMaps", "Patch"),
);
self.inner.unary(req, path, codec).await
}
/// Updates the specified UrlMap resource with the data included in the request.
pub async fn update(
&mut self,
request: impl tonic::IntoRequest<super::UpdateRegionUrlMapRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionUrlMaps/Update",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionUrlMaps", "Update"),
);
self.inner.unary(req, path, codec).await
}
/// Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.
pub async fn validate(
&mut self,
request: impl tonic::IntoRequest<super::ValidateRegionUrlMapRequest>,
) -> std::result::Result<
tonic::Response<super::UrlMapsValidateResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionUrlMaps/Validate",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.RegionUrlMaps", "Validate"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod region_zones_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The RegionZones API.
#[derive(Debug, Clone)]
pub struct RegionZonesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionZonesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionZonesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionZonesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves the list of Zone resources under the specific region available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionZonesRequest>,
) -> std::result::Result<tonic::Response<super::ZoneList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.RegionZones/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.RegionZones", "List"));
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod regions_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The Regions API.
#[derive(Debug, Clone)]
pub struct RegionsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RegionsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RegionsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RegionsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRegionRequest>,
) -> std::result::Result<tonic::Response<super::Region>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Regions/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Regions", "Get"));
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of region resources available to the specified project. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `items.quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRegionsRequest>,
) -> std::result::Result<tonic::Response<super::RegionList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Regions/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Regions", "List"));
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod reservations_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The Reservations API.
#[derive(Debug, Clone)]
pub struct ReservationsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> ReservationsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ReservationsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
ReservationsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of reservations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListReservationsRequest>,
) -> std::result::Result<
tonic::Response<super::ReservationAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Reservations/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Reservations",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified reservation.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteReservationRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Reservations/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Reservations", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves information about the specified reservation.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetReservationRequest>,
) -> std::result::Result<tonic::Response<super::Reservation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Reservations/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Reservations", "Get"));
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::GetIamPolicyReservationRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Reservations/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Reservations",
"GetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a new reservation. For more information, read Reserving zonal resources.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertReservationRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Reservations/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Reservations", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// A list of all the reservations that have been configured for the specified project in specified zone.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListReservationsRequest>,
) -> std::result::Result<
tonic::Response<super::ReservationList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Reservations/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Reservations", "List"));
self.inner.unary(req, path, codec).await
}
/// Resizes the reservation (applicable to standalone reservations only). For more information, read Modifying reservations.
pub async fn resize(
&mut self,
request: impl tonic::IntoRequest<super::ResizeReservationRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Reservations/Resize",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Reservations", "Resize"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetIamPolicyReservationRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Reservations/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Reservations",
"SetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<super::TestIamPermissionsReservationRequest>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Reservations/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Reservations",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
/// Update share settings of the reservation.
pub async fn update(
&mut self,
request: impl tonic::IntoRequest<super::UpdateReservationRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Reservations/Update",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Reservations", "Update"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod resource_policies_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The ResourcePolicies API.
#[derive(Debug, Clone)]
pub struct ResourcePoliciesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> ResourcePoliciesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ResourcePoliciesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
ResourcePoliciesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of resource policies. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<
super::AggregatedListResourcePoliciesRequest,
>,
) -> std::result::Result<
tonic::Response<super::ResourcePolicyAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ResourcePolicies/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.ResourcePolicies",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified resource policy.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteResourcePolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ResourcePolicies/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.ResourcePolicies", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves all information of the specified resource policy.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetResourcePolicyRequest>,
) -> std::result::Result<tonic::Response<super::ResourcePolicy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ResourcePolicies/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.ResourcePolicies", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::GetIamPolicyResourcePolicyRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ResourcePolicies/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.ResourcePolicies",
"GetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a new resource policy.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertResourcePolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ResourcePolicies/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.ResourcePolicies", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// A list all the resource policies that have been configured for the specified project in specified region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListResourcePoliciesRequest>,
) -> std::result::Result<
tonic::Response<super::ResourcePolicyList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ResourcePolicies/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.ResourcePolicies", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Modify the specified resource policy.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchResourcePolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ResourcePolicies/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.ResourcePolicies", "Patch"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetIamPolicyResourcePolicyRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ResourcePolicies/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.ResourcePolicies",
"SetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<
super::TestIamPermissionsResourcePolicyRequest,
>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ResourcePolicies/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.ResourcePolicies",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod routers_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The Routers API.
#[derive(Debug, Clone)]
pub struct RoutersClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RoutersClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RoutersClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RoutersClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of routers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListRoutersRequest>,
) -> std::result::Result<
tonic::Response<super::RouterAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Routers/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Routers", "AggregatedList"),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified Router resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteRouterRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Routers/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Routers", "Delete"));
self.inner.unary(req, path, codec).await
}
/// Returns the specified Router resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRouterRequest>,
) -> std::result::Result<tonic::Response<super::Router>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Routers/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Routers", "Get"));
self.inner.unary(req, path, codec).await
}
/// Retrieves runtime NAT IP information.
pub async fn get_nat_ip_info(
&mut self,
request: impl tonic::IntoRequest<super::GetNatIpInfoRouterRequest>,
) -> std::result::Result<
tonic::Response<super::NatIpInfoResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Routers/GetNatIpInfo",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Routers", "GetNatIpInfo"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves runtime Nat mapping information of VM endpoints.
pub async fn get_nat_mapping_info(
&mut self,
request: impl tonic::IntoRequest<super::GetNatMappingInfoRoutersRequest>,
) -> std::result::Result<
tonic::Response<super::VmEndpointNatMappingsList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Routers/GetNatMappingInfo",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Routers",
"GetNatMappingInfo",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves runtime information of the specified router.
pub async fn get_router_status(
&mut self,
request: impl tonic::IntoRequest<super::GetRouterStatusRouterRequest>,
) -> std::result::Result<
tonic::Response<super::RouterStatusResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Routers/GetRouterStatus",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Routers", "GetRouterStatus"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a Router resource in the specified project and region using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertRouterRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Routers/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Routers", "Insert"));
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of Router resources available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRoutersRequest>,
) -> std::result::Result<tonic::Response<super::RouterList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Routers/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Routers", "List"));
self.inner.unary(req, path, codec).await
}
/// Patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchRouterRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Routers/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Routers", "Patch"));
self.inner.unary(req, path, codec).await
}
/// Preview fields auto-generated during router create and update operations. Calling this method does NOT create or update the router.
pub async fn preview(
&mut self,
request: impl tonic::IntoRequest<super::PreviewRouterRequest>,
) -> std::result::Result<
tonic::Response<super::RoutersPreviewResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Routers/Preview",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Routers", "Preview"));
self.inner.unary(req, path, codec).await
}
/// Updates the specified Router resource with the data included in the request. This method conforms to PUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload.
pub async fn update(
&mut self,
request: impl tonic::IntoRequest<super::UpdateRouterRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Routers/Update",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Routers", "Update"));
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod routes_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The Routes API.
#[derive(Debug, Clone)]
pub struct RoutesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> RoutesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RoutesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
RoutesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified Route resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteRouteRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Routes/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Routes", "Delete"));
self.inner.unary(req, path, codec).await
}
/// Returns the specified Route resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetRouteRequest>,
) -> std::result::Result<tonic::Response<super::Route>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Routes/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Routes", "Get"));
self.inner.unary(req, path, codec).await
}
/// Creates a Route resource in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertRouteRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Routes/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Routes", "Insert"));
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of Route resources available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListRoutesRequest>,
) -> std::result::Result<tonic::Response<super::RouteList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Routes/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Routes", "List"));
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod security_policies_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The SecurityPolicies API.
#[derive(Debug, Clone)]
pub struct SecurityPoliciesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> SecurityPoliciesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> SecurityPoliciesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
SecurityPoliciesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Inserts a rule into a security policy.
pub async fn add_rule(
&mut self,
request: impl tonic::IntoRequest<super::AddRuleSecurityPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SecurityPolicies/AddRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.SecurityPolicies",
"AddRule",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<
super::AggregatedListSecurityPoliciesRequest,
>,
) -> std::result::Result<
tonic::Response<super::SecurityPoliciesAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SecurityPolicies/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.SecurityPolicies",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified policy.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteSecurityPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SecurityPolicies/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.SecurityPolicies", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// List all of the ordered rules present in a single specified policy.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetSecurityPolicyRequest>,
) -> std::result::Result<tonic::Response<super::SecurityPolicy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SecurityPolicies/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.SecurityPolicies", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Gets a rule at the specified priority.
pub async fn get_rule(
&mut self,
request: impl tonic::IntoRequest<super::GetRuleSecurityPolicyRequest>,
) -> std::result::Result<
tonic::Response<super::SecurityPolicyRule>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SecurityPolicies/GetRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.SecurityPolicies",
"GetRule",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a new policy in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertSecurityPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SecurityPolicies/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.SecurityPolicies", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// List all the policies that have been configured for the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListSecurityPoliciesRequest>,
) -> std::result::Result<
tonic::Response<super::SecurityPolicyList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SecurityPolicies/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.SecurityPolicies", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Gets the current list of preconfigured Web Application Firewall (WAF) expressions.
pub async fn list_preconfigured_expression_sets(
&mut self,
request: impl tonic::IntoRequest<
super::ListPreconfiguredExpressionSetsSecurityPoliciesRequest,
>,
) -> std::result::Result<
tonic::Response<
super::SecurityPoliciesListPreconfiguredExpressionSetsResponse,
>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SecurityPolicies/ListPreconfiguredExpressionSets",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.SecurityPolicies",
"ListPreconfiguredExpressionSets",
),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchSecurityPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SecurityPolicies/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.SecurityPolicies", "Patch"),
);
self.inner.unary(req, path, codec).await
}
/// Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.
pub async fn patch_rule(
&mut self,
request: impl tonic::IntoRequest<super::PatchRuleSecurityPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SecurityPolicies/PatchRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.SecurityPolicies",
"PatchRule",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes a rule at the specified priority.
pub async fn remove_rule(
&mut self,
request: impl tonic::IntoRequest<super::RemoveRuleSecurityPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SecurityPolicies/RemoveRule",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.SecurityPolicies",
"RemoveRule",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation.
pub async fn set_labels(
&mut self,
request: impl tonic::IntoRequest<super::SetLabelsSecurityPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SecurityPolicies/SetLabels",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.SecurityPolicies",
"SetLabels",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod service_attachments_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The ServiceAttachments API.
#[derive(Debug, Clone)]
pub struct ServiceAttachmentsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> ServiceAttachmentsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ServiceAttachmentsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
ServiceAttachmentsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<
super::AggregatedListServiceAttachmentsRequest,
>,
) -> std::result::Result<
tonic::Response<super::ServiceAttachmentAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ServiceAttachments/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.ServiceAttachments",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified ServiceAttachment in the given scope
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteServiceAttachmentRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ServiceAttachments/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.ServiceAttachments",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified ServiceAttachment resource in the given scope.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetServiceAttachmentRequest>,
) -> std::result::Result<
tonic::Response<super::ServiceAttachment>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ServiceAttachments/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.ServiceAttachments", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::GetIamPolicyServiceAttachmentRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ServiceAttachments/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.ServiceAttachments",
"GetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a ServiceAttachment in the specified project in the given scope using the parameters that are included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertServiceAttachmentRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ServiceAttachments/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.ServiceAttachments",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists the ServiceAttachments for a project in the given scope.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListServiceAttachmentsRequest>,
) -> std::result::Result<
tonic::Response<super::ServiceAttachmentList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ServiceAttachments/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.ServiceAttachments", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified ServiceAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchServiceAttachmentRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ServiceAttachments/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.ServiceAttachments",
"Patch",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetIamPolicyServiceAttachmentRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ServiceAttachments/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.ServiceAttachments",
"SetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<
super::TestIamPermissionsServiceAttachmentRequest,
>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ServiceAttachments/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.ServiceAttachments",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod snapshot_settings_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The SnapshotSettings API.
#[derive(Debug, Clone)]
pub struct SnapshotSettingsServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> SnapshotSettingsServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> SnapshotSettingsServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
SnapshotSettingsServiceClient::new(
InterceptedService::new(inner, interceptor),
)
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Get snapshot settings.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetSnapshotSettingRequest>,
) -> std::result::Result<
tonic::Response<super::SnapshotSettings>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SnapshotSettingsService/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.SnapshotSettingsService",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
/// Patch snapshot settings.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchSnapshotSettingRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SnapshotSettingsService/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.SnapshotSettingsService",
"Patch",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod snapshots_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The Snapshots API.
#[derive(Debug, Clone)]
pub struct SnapshotsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> SnapshotsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> SnapshotsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
SnapshotsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, see Deleting snapshots.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteSnapshotRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Snapshots/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Snapshots", "Delete"));
self.inner.unary(req, path, codec).await
}
/// Returns the specified Snapshot resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetSnapshotRequest>,
) -> std::result::Result<tonic::Response<super::Snapshot>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Snapshots/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Snapshots", "Get"));
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::GetIamPolicySnapshotRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Snapshots/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Snapshots", "GetIamPolicy"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a snapshot in the specified project using the data included in the request. For regular snapshot creation, consider using this method instead of disks.createSnapshot, as this method supports more features, such as creating snapshots in a project different from the source disk project.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertSnapshotRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Snapshots/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Snapshots", "Insert"));
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of Snapshot resources contained within the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListSnapshotsRequest>,
) -> std::result::Result<tonic::Response<super::SnapshotList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Snapshots/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Snapshots", "List"));
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetIamPolicySnapshotRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Snapshots/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Snapshots", "SetIamPolicy"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the labels on a snapshot. To learn more about labels, read the Labeling Resources documentation.
pub async fn set_labels(
&mut self,
request: impl tonic::IntoRequest<super::SetLabelsSnapshotRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Snapshots/SetLabels",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Snapshots", "SetLabels"),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<super::TestIamPermissionsSnapshotRequest>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Snapshots/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Snapshots",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod ssl_certificates_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The SslCertificates API.
#[derive(Debug, Clone)]
pub struct SslCertificatesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> SslCertificatesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> SslCertificatesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
SslCertificatesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves the list of all SslCertificate resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListSslCertificatesRequest>,
) -> std::result::Result<
tonic::Response<super::SslCertificateAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SslCertificates/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.SslCertificates",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified SslCertificate resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteSslCertificateRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SslCertificates/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.SslCertificates", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified SslCertificate resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetSslCertificateRequest>,
) -> std::result::Result<tonic::Response<super::SslCertificate>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SslCertificates/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.SslCertificates", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a SslCertificate resource in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertSslCertificateRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SslCertificates/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.SslCertificates", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of SslCertificate resources available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListSslCertificatesRequest>,
) -> std::result::Result<
tonic::Response<super::SslCertificateList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SslCertificates/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.SslCertificates", "List"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod ssl_policies_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The SslPolicies API.
#[derive(Debug, Clone)]
pub struct SslPoliciesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> SslPoliciesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> SslPoliciesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
SslPoliciesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves the list of all SslPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListSslPoliciesRequest>,
) -> std::result::Result<
tonic::Response<super::SslPoliciesAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SslPolicies/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.SslPolicies",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteSslPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SslPolicies/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.SslPolicies", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Lists all of the ordered rules present in a single specified policy.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetSslPolicyRequest>,
) -> std::result::Result<tonic::Response<super::SslPolicy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SslPolicies/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.SslPolicies", "Get"));
self.inner.unary(req, path, codec).await
}
/// Returns the specified SSL policy resource.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertSslPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SslPolicies/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.SslPolicies", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Lists all the SSL policies that have been configured for the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListSslPoliciesRequest>,
) -> std::result::Result<
tonic::Response<super::SslPoliciesList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SslPolicies/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.SslPolicies", "List"));
self.inner.unary(req, path, codec).await
}
/// Lists all features that can be specified in the SSL policy when using custom profile.
pub async fn list_available_features(
&mut self,
request: impl tonic::IntoRequest<
super::ListAvailableFeaturesSslPoliciesRequest,
>,
) -> std::result::Result<
tonic::Response<super::SslPoliciesListAvailableFeaturesResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SslPolicies/ListAvailableFeatures",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.SslPolicies",
"ListAvailableFeatures",
),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified SSL policy with the data included in the request.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchSslPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.SslPolicies/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.SslPolicies", "Patch"));
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod subnetworks_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The Subnetworks API.
#[derive(Debug, Clone)]
pub struct SubnetworksClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> SubnetworksClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> SubnetworksClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
SubnetworksClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of subnetworks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListSubnetworksRequest>,
) -> std::result::Result<
tonic::Response<super::SubnetworkAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Subnetworks/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Subnetworks",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified subnetwork.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteSubnetworkRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Subnetworks/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Subnetworks", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Expands the IP CIDR range of the subnetwork to a specified value.
pub async fn expand_ip_cidr_range(
&mut self,
request: impl tonic::IntoRequest<super::ExpandIpCidrRangeSubnetworkRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Subnetworks/ExpandIpCidrRange",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Subnetworks",
"ExpandIpCidrRange",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified subnetwork.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetSubnetworkRequest>,
) -> std::result::Result<tonic::Response<super::Subnetwork>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Subnetworks/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Subnetworks", "Get"));
self.inner.unary(req, path, codec).await
}
/// Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::GetIamPolicySubnetworkRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Subnetworks/GetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Subnetworks",
"GetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a subnetwork in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertSubnetworkRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Subnetworks/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Subnetworks", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of subnetworks available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListSubnetworksRequest>,
) -> std::result::Result<tonic::Response<super::SubnetworkList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Subnetworks/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Subnetworks", "List"));
self.inner.unary(req, path, codec).await
}
/// Retrieves an aggregated list of all usable subnetworks in the project.
pub async fn list_usable(
&mut self,
request: impl tonic::IntoRequest<super::ListUsableSubnetworksRequest>,
) -> std::result::Result<
tonic::Response<super::UsableSubnetworksAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Subnetworks/ListUsable",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.Subnetworks", "ListUsable"),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified subnetwork with the data included in the request. Only certain fields can be updated with a patch request as indicated in the field descriptions. You must specify the current fingerprint of the subnetwork resource being patched.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchSubnetworkRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Subnetworks/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Subnetworks", "Patch"));
self.inner.unary(req, path, codec).await
}
/// Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_iam_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetIamPolicySubnetworkRequest>,
) -> std::result::Result<tonic::Response<super::Policy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Subnetworks/SetIamPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Subnetworks",
"SetIamPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Set whether VMs in this subnet can access Google services without assigning external IP addresses through Private Google Access.
pub async fn set_private_ip_google_access(
&mut self,
request: impl tonic::IntoRequest<
super::SetPrivateIpGoogleAccessSubnetworkRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Subnetworks/SetPrivateIpGoogleAccess",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Subnetworks",
"SetPrivateIpGoogleAccess",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<super::TestIamPermissionsSubnetworkRequest>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Subnetworks/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.Subnetworks",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod target_grpc_proxies_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The TargetGrpcProxies API.
#[derive(Debug, Clone)]
pub struct TargetGrpcProxiesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> TargetGrpcProxiesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> TargetGrpcProxiesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
TargetGrpcProxiesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified TargetGrpcProxy in the given scope
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteTargetGrpcProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetGrpcProxies/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetGrpcProxies",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified TargetGrpcProxy resource in the given scope.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetTargetGrpcProxyRequest>,
) -> std::result::Result<
tonic::Response<super::TargetGrpcProxy>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetGrpcProxies/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetGrpcProxies", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a TargetGrpcProxy in the specified project in the given scope using the parameters that are included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertTargetGrpcProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetGrpcProxies/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetGrpcProxies",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists the TargetGrpcProxies for a project in the given scope.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListTargetGrpcProxiesRequest>,
) -> std::result::Result<
tonic::Response<super::TargetGrpcProxyList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetGrpcProxies/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetGrpcProxies", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified TargetGrpcProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchTargetGrpcProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetGrpcProxies/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetGrpcProxies", "Patch"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod target_http_proxies_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The TargetHttpProxies API.
#[derive(Debug, Clone)]
pub struct TargetHttpProxiesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> TargetHttpProxiesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> TargetHttpProxiesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
TargetHttpProxiesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<
super::AggregatedListTargetHttpProxiesRequest,
>,
) -> std::result::Result<
tonic::Response<super::TargetHttpProxyAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetHttpProxies/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetHttpProxies",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified TargetHttpProxy resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteTargetHttpProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetHttpProxies/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetHttpProxies",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified TargetHttpProxy resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetTargetHttpProxyRequest>,
) -> std::result::Result<
tonic::Response<super::TargetHttpProxy>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetHttpProxies/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetHttpProxies", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a TargetHttpProxy resource in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertTargetHttpProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetHttpProxies/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetHttpProxies",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of TargetHttpProxy resources available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListTargetHttpProxiesRequest>,
) -> std::result::Result<
tonic::Response<super::TargetHttpProxyList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetHttpProxies/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetHttpProxies", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified TargetHttpProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchTargetHttpProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetHttpProxies/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetHttpProxies", "Patch"),
);
self.inner.unary(req, path, codec).await
}
/// Changes the URL map for TargetHttpProxy.
pub async fn set_url_map(
&mut self,
request: impl tonic::IntoRequest<super::SetUrlMapTargetHttpProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetHttpProxies/SetUrlMap",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetHttpProxies",
"SetUrlMap",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod target_https_proxies_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The TargetHttpsProxies API.
#[derive(Debug, Clone)]
pub struct TargetHttpsProxiesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> TargetHttpsProxiesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> TargetHttpsProxiesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
TargetHttpsProxiesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<
super::AggregatedListTargetHttpsProxiesRequest,
>,
) -> std::result::Result<
tonic::Response<super::TargetHttpsProxyAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetHttpsProxies/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetHttpsProxies",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified TargetHttpsProxy resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteTargetHttpsProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetHttpsProxies/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetHttpsProxies",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified TargetHttpsProxy resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetTargetHttpsProxyRequest>,
) -> std::result::Result<
tonic::Response<super::TargetHttpsProxy>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetHttpsProxies/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetHttpsProxies", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a TargetHttpsProxy resource in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertTargetHttpsProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetHttpsProxies/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetHttpsProxies",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of TargetHttpsProxy resources available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListTargetHttpsProxiesRequest>,
) -> std::result::Result<
tonic::Response<super::TargetHttpsProxyList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetHttpsProxies/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetHttpsProxies", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Patches the specified TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchTargetHttpsProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetHttpsProxies/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetHttpsProxies",
"Patch",
),
);
self.inner.unary(req, path, codec).await
}
/// Changes the Certificate Map for TargetHttpsProxy.
pub async fn set_certificate_map(
&mut self,
request: impl tonic::IntoRequest<
super::SetCertificateMapTargetHttpsProxyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetHttpsProxies/SetCertificateMap",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetHttpsProxies",
"SetCertificateMap",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the QUIC override policy for TargetHttpsProxy.
pub async fn set_quic_override(
&mut self,
request: impl tonic::IntoRequest<
super::SetQuicOverrideTargetHttpsProxyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetHttpsProxies/SetQuicOverride",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetHttpsProxies",
"SetQuicOverride",
),
);
self.inner.unary(req, path, codec).await
}
/// Replaces SslCertificates for TargetHttpsProxy.
pub async fn set_ssl_certificates(
&mut self,
request: impl tonic::IntoRequest<
super::SetSslCertificatesTargetHttpsProxyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetHttpsProxies/SetSslCertificates",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetHttpsProxies",
"SetSslCertificates",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the HTTPS proxy load balancer. They do not affect the connection between the load balancer and the backends.
pub async fn set_ssl_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetSslPolicyTargetHttpsProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetHttpsProxies/SetSslPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetHttpsProxies",
"SetSslPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Changes the URL map for TargetHttpsProxy.
pub async fn set_url_map(
&mut self,
request: impl tonic::IntoRequest<super::SetUrlMapTargetHttpsProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetHttpsProxies/SetUrlMap",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetHttpsProxies",
"SetUrlMap",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod target_instances_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The TargetInstances API.
#[derive(Debug, Clone)]
pub struct TargetInstancesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> TargetInstancesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> TargetInstancesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
TargetInstancesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of target instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListTargetInstancesRequest>,
) -> std::result::Result<
tonic::Response<super::TargetInstanceAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetInstances/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetInstances",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified TargetInstance resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteTargetInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetInstances/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetInstances", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified TargetInstance resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetTargetInstanceRequest>,
) -> std::result::Result<tonic::Response<super::TargetInstance>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetInstances/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetInstances", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a TargetInstance resource in the specified project and zone using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertTargetInstanceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetInstances/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetInstances", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of TargetInstance resources available to the specified project and zone.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListTargetInstancesRequest>,
) -> std::result::Result<
tonic::Response<super::TargetInstanceList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetInstances/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetInstances", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the Google Cloud Armor security policy for the specified target instance. For more information, see Google Cloud Armor Overview
pub async fn set_security_policy(
&mut self,
request: impl tonic::IntoRequest<
super::SetSecurityPolicyTargetInstanceRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetInstances/SetSecurityPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetInstances",
"SetSecurityPolicy",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod target_pools_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The TargetPools API.
#[derive(Debug, Clone)]
pub struct TargetPoolsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> TargetPoolsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> TargetPoolsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
TargetPoolsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Adds health check URLs to a target pool.
pub async fn add_health_check(
&mut self,
request: impl tonic::IntoRequest<super::AddHealthCheckTargetPoolRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetPools/AddHealthCheck",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetPools",
"AddHealthCheck",
),
);
self.inner.unary(req, path, codec).await
}
/// Adds an instance to a target pool.
pub async fn add_instance(
&mut self,
request: impl tonic::IntoRequest<super::AddInstanceTargetPoolRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetPools/AddInstance",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetPools", "AddInstance"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves an aggregated list of target pools. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListTargetPoolsRequest>,
) -> std::result::Result<
tonic::Response<super::TargetPoolAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetPools/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetPools",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified target pool.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteTargetPoolRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetPools/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetPools", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified target pool.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetTargetPoolRequest>,
) -> std::result::Result<tonic::Response<super::TargetPool>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetPools/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.TargetPools", "Get"));
self.inner.unary(req, path, codec).await
}
/// Gets the most recent health check results for each IP for the instance that is referenced by the given target pool.
pub async fn get_health(
&mut self,
request: impl tonic::IntoRequest<super::GetHealthTargetPoolRequest>,
) -> std::result::Result<
tonic::Response<super::TargetPoolInstanceHealth>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetPools/GetHealth",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetPools", "GetHealth"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a target pool in the specified project and region using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertTargetPoolRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetPools/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetPools", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of target pools available to the specified project and region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListTargetPoolsRequest>,
) -> std::result::Result<tonic::Response<super::TargetPoolList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetPools/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.TargetPools", "List"));
self.inner.unary(req, path, codec).await
}
/// Removes health check URL from a target pool.
pub async fn remove_health_check(
&mut self,
request: impl tonic::IntoRequest<super::RemoveHealthCheckTargetPoolRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetPools/RemoveHealthCheck",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetPools",
"RemoveHealthCheck",
),
);
self.inner.unary(req, path, codec).await
}
/// Removes instance URL from a target pool.
pub async fn remove_instance(
&mut self,
request: impl tonic::IntoRequest<super::RemoveInstanceTargetPoolRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetPools/RemoveInstance",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetPools",
"RemoveInstance",
),
);
self.inner.unary(req, path, codec).await
}
/// Changes a backup target pool's configurations.
pub async fn set_backup(
&mut self,
request: impl tonic::IntoRequest<super::SetBackupTargetPoolRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetPools/SetBackup",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetPools", "SetBackup"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the Google Cloud Armor security policy for the specified target pool. For more information, see Google Cloud Armor Overview
pub async fn set_security_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetSecurityPolicyTargetPoolRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetPools/SetSecurityPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetPools",
"SetSecurityPolicy",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod target_ssl_proxies_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The TargetSslProxies API.
#[derive(Debug, Clone)]
pub struct TargetSslProxiesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> TargetSslProxiesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> TargetSslProxiesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
TargetSslProxiesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified TargetSslProxy resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteTargetSslProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetSslProxies/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetSslProxies", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified TargetSslProxy resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetTargetSslProxyRequest>,
) -> std::result::Result<tonic::Response<super::TargetSslProxy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetSslProxies/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetSslProxies", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a TargetSslProxy resource in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertTargetSslProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetSslProxies/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetSslProxies", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of TargetSslProxy resources available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListTargetSslProxiesRequest>,
) -> std::result::Result<
tonic::Response<super::TargetSslProxyList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetSslProxies/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetSslProxies", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Changes the BackendService for TargetSslProxy.
pub async fn set_backend_service(
&mut self,
request: impl tonic::IntoRequest<
super::SetBackendServiceTargetSslProxyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetSslProxies/SetBackendService",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetSslProxies",
"SetBackendService",
),
);
self.inner.unary(req, path, codec).await
}
/// Changes the Certificate Map for TargetSslProxy.
pub async fn set_certificate_map(
&mut self,
request: impl tonic::IntoRequest<
super::SetCertificateMapTargetSslProxyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetSslProxies/SetCertificateMap",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetSslProxies",
"SetCertificateMap",
),
);
self.inner.unary(req, path, codec).await
}
/// Changes the ProxyHeaderType for TargetSslProxy.
pub async fn set_proxy_header(
&mut self,
request: impl tonic::IntoRequest<super::SetProxyHeaderTargetSslProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetSslProxies/SetProxyHeader",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetSslProxies",
"SetProxyHeader",
),
);
self.inner.unary(req, path, codec).await
}
/// Changes SslCertificates for TargetSslProxy.
pub async fn set_ssl_certificates(
&mut self,
request: impl tonic::IntoRequest<
super::SetSslCertificatesTargetSslProxyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetSslProxies/SetSslCertificates",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetSslProxies",
"SetSslCertificates",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the load balancer. They do not affect the connection between the load balancer and the backends.
pub async fn set_ssl_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetSslPolicyTargetSslProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetSslProxies/SetSslPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetSslProxies",
"SetSslPolicy",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod target_tcp_proxies_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The TargetTcpProxies API.
#[derive(Debug, Clone)]
pub struct TargetTcpProxiesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> TargetTcpProxiesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> TargetTcpProxiesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
TargetTcpProxiesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<
super::AggregatedListTargetTcpProxiesRequest,
>,
) -> std::result::Result<
tonic::Response<super::TargetTcpProxyAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetTcpProxies/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetTcpProxies",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified TargetTcpProxy resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteTargetTcpProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetTcpProxies/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetTcpProxies", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified TargetTcpProxy resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetTargetTcpProxyRequest>,
) -> std::result::Result<tonic::Response<super::TargetTcpProxy>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetTcpProxies/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetTcpProxies", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a TargetTcpProxy resource in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertTargetTcpProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetTcpProxies/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetTcpProxies", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of TargetTcpProxy resources available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListTargetTcpProxiesRequest>,
) -> std::result::Result<
tonic::Response<super::TargetTcpProxyList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetTcpProxies/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetTcpProxies", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Changes the BackendService for TargetTcpProxy.
pub async fn set_backend_service(
&mut self,
request: impl tonic::IntoRequest<
super::SetBackendServiceTargetTcpProxyRequest,
>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetTcpProxies/SetBackendService",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetTcpProxies",
"SetBackendService",
),
);
self.inner.unary(req, path, codec).await
}
/// Changes the ProxyHeaderType for TargetTcpProxy.
pub async fn set_proxy_header(
&mut self,
request: impl tonic::IntoRequest<super::SetProxyHeaderTargetTcpProxyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetTcpProxies/SetProxyHeader",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetTcpProxies",
"SetProxyHeader",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod target_vpn_gateways_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The TargetVpnGateways API.
#[derive(Debug, Clone)]
pub struct TargetVpnGatewaysClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> TargetVpnGatewaysClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> TargetVpnGatewaysClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
TargetVpnGatewaysClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of target VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<
super::AggregatedListTargetVpnGatewaysRequest,
>,
) -> std::result::Result<
tonic::Response<super::TargetVpnGatewayAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetVpnGateways/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetVpnGateways",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified target VPN gateway.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteTargetVpnGatewayRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetVpnGateways/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetVpnGateways",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified target VPN gateway.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetTargetVpnGatewayRequest>,
) -> std::result::Result<
tonic::Response<super::TargetVpnGateway>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetVpnGateways/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetVpnGateways", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a target VPN gateway in the specified project and region using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertTargetVpnGatewayRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetVpnGateways/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetVpnGateways",
"Insert",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of target VPN gateways available to the specified project and region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListTargetVpnGatewaysRequest>,
) -> std::result::Result<
tonic::Response<super::TargetVpnGatewayList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetVpnGateways/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.TargetVpnGateways", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Sets the labels on a TargetVpnGateway. To learn more about labels, read the Labeling Resources documentation.
pub async fn set_labels(
&mut self,
request: impl tonic::IntoRequest<super::SetLabelsTargetVpnGatewayRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.TargetVpnGateways/SetLabels",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.TargetVpnGateways",
"SetLabels",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod url_maps_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The UrlMaps API.
#[derive(Debug, Clone)]
pub struct UrlMapsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> UrlMapsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> UrlMapsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
UrlMapsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves the list of all UrlMap resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListUrlMapsRequest>,
) -> std::result::Result<
tonic::Response<super::UrlMapsAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.UrlMaps/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.UrlMaps", "AggregatedList"),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified UrlMap resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteUrlMapRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.UrlMaps/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.UrlMaps", "Delete"));
self.inner.unary(req, path, codec).await
}
/// Returns the specified UrlMap resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetUrlMapRequest>,
) -> std::result::Result<tonic::Response<super::UrlMap>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.UrlMaps/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.UrlMaps", "Get"));
self.inner.unary(req, path, codec).await
}
/// Creates a UrlMap resource in the specified project using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertUrlMapRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.UrlMaps/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.UrlMaps", "Insert"));
self.inner.unary(req, path, codec).await
}
/// Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap. For more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content).
pub async fn invalidate_cache(
&mut self,
request: impl tonic::IntoRequest<super::InvalidateCacheUrlMapRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.UrlMaps/InvalidateCache",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.UrlMaps", "InvalidateCache"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of UrlMap resources available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListUrlMapsRequest>,
) -> std::result::Result<tonic::Response<super::UrlMapList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.UrlMaps/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.UrlMaps", "List"));
self.inner.unary(req, path, codec).await
}
/// Patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
pub async fn patch(
&mut self,
request: impl tonic::IntoRequest<super::PatchUrlMapRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.UrlMaps/Patch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.UrlMaps", "Patch"));
self.inner.unary(req, path, codec).await
}
/// Updates the specified UrlMap resource with the data included in the request.
pub async fn update(
&mut self,
request: impl tonic::IntoRequest<super::UpdateUrlMapRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.UrlMaps/Update",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.UrlMaps", "Update"));
self.inner.unary(req, path, codec).await
}
/// Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.
pub async fn validate(
&mut self,
request: impl tonic::IntoRequest<super::ValidateUrlMapRequest>,
) -> std::result::Result<
tonic::Response<super::UrlMapsValidateResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.UrlMaps/Validate",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.UrlMaps", "Validate"));
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod vpn_gateways_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The VpnGateways API.
#[derive(Debug, Clone)]
pub struct VpnGatewaysClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> VpnGatewaysClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> VpnGatewaysClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
VpnGatewaysClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListVpnGatewaysRequest>,
) -> std::result::Result<
tonic::Response<super::VpnGatewayAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.VpnGateways/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.VpnGateways",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified VPN gateway.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteVpnGatewayRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.VpnGateways/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.VpnGateways", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified VPN gateway.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetVpnGatewayRequest>,
) -> std::result::Result<tonic::Response<super::VpnGateway>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.VpnGateways/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.VpnGateways", "Get"));
self.inner.unary(req, path, codec).await
}
/// Returns the status for the specified VPN gateway.
pub async fn get_status(
&mut self,
request: impl tonic::IntoRequest<super::GetStatusVpnGatewayRequest>,
) -> std::result::Result<
tonic::Response<super::VpnGatewaysGetStatusResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.VpnGateways/GetStatus",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.VpnGateways", "GetStatus"),
);
self.inner.unary(req, path, codec).await
}
/// Creates a VPN gateway in the specified project and region using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertVpnGatewayRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.VpnGateways/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.VpnGateways", "Insert"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of VPN gateways available to the specified project and region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListVpnGatewaysRequest>,
) -> std::result::Result<tonic::Response<super::VpnGatewayList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.VpnGateways/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.VpnGateways", "List"));
self.inner.unary(req, path, codec).await
}
/// Sets the labels on a VpnGateway. To learn more about labels, read the Labeling Resources documentation.
pub async fn set_labels(
&mut self,
request: impl tonic::IntoRequest<super::SetLabelsVpnGatewayRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.VpnGateways/SetLabels",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.VpnGateways", "SetLabels"),
);
self.inner.unary(req, path, codec).await
}
/// Returns permissions that a caller has on the specified resource.
pub async fn test_iam_permissions(
&mut self,
request: impl tonic::IntoRequest<super::TestIamPermissionsVpnGatewayRequest>,
) -> std::result::Result<
tonic::Response<super::TestPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.VpnGateways/TestIamPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.VpnGateways",
"TestIamPermissions",
),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod vpn_tunnels_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The VpnTunnels API.
#[derive(Debug, Clone)]
pub struct VpnTunnelsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> VpnTunnelsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> VpnTunnelsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
VpnTunnelsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Retrieves an aggregated list of VPN tunnels. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
pub async fn aggregated_list(
&mut self,
request: impl tonic::IntoRequest<super::AggregatedListVpnTunnelsRequest>,
) -> std::result::Result<
tonic::Response<super::VpnTunnelAggregatedList>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.VpnTunnels/AggregatedList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.compute.v1.VpnTunnels",
"AggregatedList",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified VpnTunnel resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteVpnTunnelRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.VpnTunnels/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.VpnTunnels", "Delete"));
self.inner.unary(req, path, codec).await
}
/// Returns the specified VpnTunnel resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetVpnTunnelRequest>,
) -> std::result::Result<tonic::Response<super::VpnTunnel>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.VpnTunnels/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.VpnTunnels", "Get"));
self.inner.unary(req, path, codec).await
}
/// Creates a VpnTunnel resource in the specified project and region using the data included in the request.
pub async fn insert(
&mut self,
request: impl tonic::IntoRequest<super::InsertVpnTunnelRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.VpnTunnels/Insert",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.VpnTunnels", "Insert"));
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of VpnTunnel resources contained in the specified project and region.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListVpnTunnelsRequest>,
) -> std::result::Result<tonic::Response<super::VpnTunnelList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.VpnTunnels/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.VpnTunnels", "List"));
self.inner.unary(req, path, codec).await
}
/// Sets the labels on a VpnTunnel. To learn more about labels, read the Labeling Resources documentation.
pub async fn set_labels(
&mut self,
request: impl tonic::IntoRequest<super::SetLabelsVpnTunnelRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.VpnTunnels/SetLabels",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.VpnTunnels", "SetLabels"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod zone_operations_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The ZoneOperations API.
#[derive(Debug, Clone)]
pub struct ZoneOperationsClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> ZoneOperationsClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ZoneOperationsClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
ZoneOperationsClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Deletes the specified zone-specific Operations resource.
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteZoneOperationRequest>,
) -> std::result::Result<
tonic::Response<super::DeleteZoneOperationResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ZoneOperations/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.ZoneOperations", "Delete"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the specified zone-specific Operations resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetZoneOperationRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ZoneOperations/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.ZoneOperations", "Get"),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves a list of Operation resources contained within the specified zone.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListZoneOperationsRequest>,
) -> std::result::Result<tonic::Response<super::OperationList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ZoneOperations/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.ZoneOperations", "List"),
);
self.inner.unary(req, path, codec).await
}
/// Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method waits for no more than the 2 minutes and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`.
pub async fn wait(
&mut self,
request: impl tonic::IntoRequest<super::WaitZoneOperationRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.ZoneOperations/Wait",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.compute.v1.ZoneOperations", "Wait"),
);
self.inner.unary(req, path, codec).await
}
}
}
/// Generated client implementations.
pub mod zones_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// The Zones API.
#[derive(Debug, Clone)]
pub struct ZonesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> ZonesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ZonesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
ZonesClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Returns the specified Zone resource.
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetZoneRequest>,
) -> std::result::Result<tonic::Response<super::Zone>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Zones/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Zones", "Get"));
self.inner.unary(req, path, codec).await
}
/// Retrieves the list of Zone resources available to the specified project.
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListZonesRequest>,
) -> std::result::Result<tonic::Response<super::ZoneList>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.compute.v1.Zones/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.cloud.compute.v1.Zones", "List"));
self.inner.unary(req, path, codec).await
}
}
}