make regen-apis

This commit is contained in:
OMGeeky
2023-10-23 12:55:17 +02:00
parent a4b0f56b8c
commit 4a258a57a6
1025 changed files with 29943 additions and 28980 deletions

View File

@@ -70,7 +70,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -334,7 +334,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("resource", self._resource);
params.push("resource", &self._resource);
if let Some(value) = self._options_requested_policy_version.as_ref() {
params.push("options.requestedPolicyVersion", value.to_string());
}
@@ -614,7 +614,7 @@ where
}
let mut params = Params::with_capacity(7 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}
@@ -927,7 +927,7 @@ where
}
let mut params = Params::with_capacity(6 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
if let Some(value) = self._update_mask.as_ref() {
params.push("updateMask", value.to_string());
}
@@ -1239,7 +1239,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("resource", self._resource);
params.push("resource", &self._resource);
params.extend(self._additional_params.iter());
@@ -1531,7 +1531,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("resource", self._resource);
params.push("resource", &self._resource);
params.extend(self._additional_params.iter());
@@ -1823,7 +1823,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -2119,7 +2119,7 @@ where
}
let mut params = Params::with_capacity(6 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
if let Some(value) = self._request_id.as_ref() {
params.push("requestId", value);
}
@@ -2430,7 +2430,7 @@ where
}
let mut params = Params::with_capacity(6 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
if let Some(value) = self._skip_grace_period.as_ref() {
params.push("skipGracePeriod", value.to_string());
}
@@ -2729,7 +2729,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -3021,7 +3021,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -3306,7 +3306,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -3568,7 +3568,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -3838,7 +3838,7 @@ where
}
let mut params = Params::with_capacity(7 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}
@@ -4151,7 +4151,7 @@ where
}
let mut params = Params::with_capacity(6 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
if let Some(value) = self._update_mask.as_ref() {
params.push("updateMask", value.to_string());
}
@@ -4463,7 +4463,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -4763,7 +4763,7 @@ where
}
let mut params = Params::with_capacity(8 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
if let Some(value) = self._validate_only.as_ref() {
params.push("validateOnly", value.to_string());
}
@@ -5088,7 +5088,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -5358,7 +5358,7 @@ where
}
let mut params = Params::with_capacity(7 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}
@@ -5671,7 +5671,7 @@ where
}
let mut params = Params::with_capacity(6 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
if let Some(value) = self._update_mask.as_ref() {
params.push("updateMask", value.to_string());
}
@@ -5983,7 +5983,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -6279,7 +6279,7 @@ where
}
let mut params = Params::with_capacity(6 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
if let Some(value) = self._request_id.as_ref() {
params.push("requestId", value);
}
@@ -6586,7 +6586,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
if let Some(value) = self._request_id.as_ref() {
params.push("requestId", value);
}
@@ -6865,7 +6865,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("caPool", self._ca_pool);
params.push("caPool", &self._ca_pool);
params.extend(self._additional_params.iter());
@@ -7150,7 +7150,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -7414,7 +7414,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("resource", self._resource);
params.push("resource", &self._resource);
if let Some(value) = self._options_requested_policy_version.as_ref() {
params.push("options.requestedPolicyVersion", value.to_string());
}
@@ -7694,7 +7694,7 @@ where
}
let mut params = Params::with_capacity(7 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}
@@ -8007,7 +8007,7 @@ where
}
let mut params = Params::with_capacity(6 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
if let Some(value) = self._update_mask.as_ref() {
params.push("updateMask", value.to_string());
}
@@ -8319,7 +8319,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("resource", self._resource);
params.push("resource", &self._resource);
params.extend(self._additional_params.iter());
@@ -8611,7 +8611,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("resource", self._resource);
params.push("resource", &self._resource);
params.extend(self._additional_params.iter());
@@ -8907,7 +8907,7 @@ where
}
let mut params = Params::with_capacity(6 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
if let Some(value) = self._request_id.as_ref() {
params.push("requestId", value);
}
@@ -9214,7 +9214,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
if let Some(value) = self._request_id.as_ref() {
params.push("requestId", value);
}
@@ -9486,7 +9486,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -9750,7 +9750,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("resource", self._resource);
params.push("resource", &self._resource);
if let Some(value) = self._options_requested_policy_version.as_ref() {
params.push("options.requestedPolicyVersion", value.to_string());
}
@@ -10030,7 +10030,7 @@ where
}
let mut params = Params::with_capacity(7 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}
@@ -10343,7 +10343,7 @@ where
}
let mut params = Params::with_capacity(6 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
if let Some(value) = self._update_mask.as_ref() {
params.push("updateMask", value.to_string());
}
@@ -10655,7 +10655,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("resource", self._resource);
params.push("resource", &self._resource);
params.extend(self._additional_params.iter());
@@ -10947,7 +10947,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("resource", self._resource);
params.push("resource", &self._resource);
params.extend(self._additional_params.iter());
@@ -11239,7 +11239,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -11524,7 +11524,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -11786,7 +11786,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -12054,7 +12054,7 @@ where
}
let mut params = Params::with_capacity(6 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}
@@ -12346,7 +12346,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -12614,7 +12614,7 @@ where
}
let mut params = Params::with_capacity(6 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}

View File

@@ -30,3 +30,6 @@ pub use method_builders::*;
mod call_builders;
pub use call_builders::*;
mod enums;
pub use enums::*;

View File

@@ -99,7 +99,7 @@ pub struct AuditLogConfig {
/// The log type that this config enables.
#[serde(rename="logType")]
pub log_type: Option<String>,
pub log_type: Option<AuditLogConfigLogTypeEnum>,
}
impl client::Part for AuditLogConfig {}
@@ -175,7 +175,7 @@ pub struct CaPool {
pub publishing_options: Option<PublishingOptions>,
/// Required. Immutable. The Tier of this CaPool.
pub tier: Option<String>,
pub tier: Option<CaPoolTierEnum>,
}
impl client::RequestValue for CaPool {}
@@ -274,7 +274,7 @@ pub struct Certificate {
/// Immutable. Specifies how the Certificate's identity fields are to be decided. If this is omitted, the `DEFAULT` subject mode will be used.
#[serde(rename="subjectMode")]
pub subject_mode: Option<String>,
pub subject_mode: Option<CertificateSubjectModeEnum>,
/// Output only. The time at which this Certificate was updated.
#[serde(rename="updateTime")]
@@ -345,18 +345,18 @@ pub struct CertificateAuthority {
pub pem_ca_certificates: Option<Vec<String>>,
/// Output only. The State for this CertificateAuthority.
pub state: Option<String>,
pub state: Option<CertificateAuthorityStateEnum>,
/// Optional. If this is a subordinate CertificateAuthority, this field will be set with the subordinate configuration, which describes its issuers. This may be updated, but this CertificateAuthority must continue to validate.
#[serde(rename="subordinateConfig")]
pub subordinate_config: Option<SubordinateConfig>,
/// Output only. The CaPool.Tier of the CaPool that includes this CertificateAuthority.
pub tier: Option<String>,
pub tier: Option<CertificateAuthorityTierEnum>,
/// Required. Immutable. The Type of this CertificateAuthority.
#[serde(rename="type")]
pub type_: Option<String>,
pub type_: Option<CertificateAuthorityTypeEnum>,
/// Output only. The time at which this CertificateAuthority was last updated.
#[serde(rename="updateTime")]
@@ -449,7 +449,7 @@ pub struct CertificateExtensionConstraints {
/// Optional. A set of named X.509 extensions. Will be combined with additional_extensions to determine the full set of X.509 extensions.
#[serde(rename="knownExtensions")]
pub known_extensions: Option<Vec<String>>,
pub known_extensions: Option<Vec<CertificateExtensionConstraintKnownExtensionsEnum>>,
}
impl client::Part for CertificateExtensionConstraints {}
@@ -540,7 +540,7 @@ pub struct CertificateRevocationList {
pub sequence_number: Option<i64>,
/// Output only. The State for this CertificateRevocationList.
pub state: Option<String>,
pub state: Option<CertificateRevocationListStateEnum>,
/// Output only. The time at which this CertificateRevocationList was updated.
#[serde(rename="updateTime")]
@@ -629,7 +629,7 @@ pub struct EcKeyType {
/// Optional. A signature algorithm that must be used. If this is omitted, any EC-based signature algorithm will be allowed.
#[serde(rename="signatureAlgorithm")]
pub signature_algorithm: Option<String>,
pub signature_algorithm: Option<EcKeyTypeSignatureAlgorithmEnum>,
}
impl client::Part for EcKeyType {}
@@ -945,7 +945,7 @@ impl client::Part for KeyUsageOptions {}
pub struct KeyVersionSpec {
/// The algorithm to use for creating a managed Cloud KMS key for a for a simplified experience. All managed keys will be have their ProtectionLevel as `HSM`.
pub algorithm: Option<String>,
pub algorithm: Option<KeyVersionSpecAlgorithmEnum>,
/// The resource name for an existing Cloud KMS CryptoKeyVersion in the format `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. This option enables full flexibility in the key's capabilities and properties.
#[serde(rename="cloudKmsKeyVersion")]
@@ -1273,7 +1273,7 @@ impl client::ResponseResult for Policy {}
pub struct PublicKey {
/// Required. The format of the public key.
pub format: Option<String>,
pub format: Option<PublicKeyFormatEnum>,
/// Required. A public key. The padding and encoding must match with the `KeyFormat` value specified for the `format` field.
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
@@ -1313,7 +1313,7 @@ pub struct RevocationDetails {
/// Indicates why a Certificate was revoked.
#[serde(rename="revocationState")]
pub revocation_state: Option<String>,
pub revocation_state: Option<RevocationDetailRevocationStateEnum>,
/// The time at which this Certificate was revoked.
#[serde(rename="revocationTime")]
@@ -1336,7 +1336,7 @@ impl client::Part for RevocationDetails {}
pub struct RevokeCertificateRequest {
/// Required. The RevocationReason for revoking this certificate.
pub reason: Option<String>,
pub reason: Option<RevokeCertificateRequestReasonEnum>,
/// Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
#[serde(rename="requestId")]
@@ -1363,7 +1363,7 @@ pub struct RevokedCertificate {
/// The reason the Certificate was revoked.
#[serde(rename="revocationReason")]
pub revocation_reason: Option<String>,
pub revocation_reason: Option<RevokedCertificateRevocationReasonEnum>,
}
impl client::Part for RevokedCertificate {}